Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 0.5 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
491 changes: 491 additions & 0 deletions edit_area/autocompletion.js

Large diffs are not rendered by default.

530 changes: 530 additions & 0 deletions edit_area/edit_area.css

Large diffs are not rendered by default.

527 changes: 527 additions & 0 deletions edit_area/edit_area.js

Large diffs are not rendered by default.

428 changes: 428 additions & 0 deletions edit_area/edit_area_compressor.php

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions edit_area/edit_area_fooinit.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// with this, you can init a textarea with...
// - a string -> this means, you're passing an ID
// - an element -> this means, your textarea doesn't seem to have an ID yet

editAreaLoader.fooInit = function(configObj) {

// no config object given
if (typeof(configObj) == "undefined") {
console.log("No config object given. Initinalization impossible.");
return false;
}

if (typeof(configObj.id) == "undefined") {
console.log("No element(s) to initialize given. Initinalisation impossible.");
return false;
}

// string means: ID
if (typeof(configObj.id) == "string") {
editAreaLoader.init(configObj);
}

// object can be single element or array
if (typeof(configObj.id) == "object") {
for (var i = 0; i < configObj.id.length; i++) {
// string means ID
if (typeof(configObj.id[i]) == "string") {
var cfgObj = jQuery.extend({}, configObj);
cfgObj.id = configObj.id[i];
editAreaLoader.init(cfgObj);
}

// object means element
if (typeof(configObj.id[i]) == "object") {
if (typeof(jQuery(configObj.id[i]).attr("id")) == "undefined") {
// okay, element without ID? generate a random one
jQuery(configObj.id[i]).attr("id", "editAreaTextArea" + Math.random().toString().replace(".","") + Math.random().toString().replace(".",""));
}
var cfgObj = jQuery.extend({}, configObj);
cfgObj.id = jQuery(configObj.id[i]).attr("id");
editAreaLoader.init(cfgObj);
}
}
}
}
Binary file added edit_area/edit_area_full.gz
Binary file not shown.
38 changes: 38 additions & 0 deletions edit_area/edit_area_full.js

Large diffs are not rendered by default.

Loading