mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07:10:11 +00:00
update tinymce to 3.5b2 to fix issues with FF 11 and pasting into code blocks
This commit is contained in:
parent
810e69ef0a
commit
f55779fd83
296 changed files with 17157 additions and 10477 deletions
17
library/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js
vendored
Executable file → Normal file
17
library/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/attributes.js
vendored
Executable file → Normal file
|
@ -53,7 +53,6 @@ function insertAction() {
|
|||
var inst = tinyMCEPopup.editor;
|
||||
var elm = inst.selection.getNode();
|
||||
|
||||
tinyMCEPopup.execCommand("mceBeginUndoLevel");
|
||||
setAllAttribs(elm);
|
||||
tinyMCEPopup.execCommand("mceEndUndoLevel");
|
||||
tinyMCEPopup.close();
|
||||
|
@ -72,21 +71,7 @@ function setAttrib(elm, attrib, value) {
|
|||
value = valueElm.value;
|
||||
}
|
||||
|
||||
if (value != "") {
|
||||
dom.setAttrib(elm, attrib.toLowerCase(), value);
|
||||
|
||||
if (attrib == "style")
|
||||
attrib = "style.cssText";
|
||||
|
||||
if (attrib.substring(0, 2) == 'on')
|
||||
value = 'return true;' + value;
|
||||
|
||||
if (attrib == "class")
|
||||
attrib = "className";
|
||||
|
||||
elm[attrib]=value;
|
||||
} else
|
||||
elm.removeAttribute(attrib);
|
||||
dom.setAttrib(elm, attrib.toLowerCase(), value);
|
||||
}
|
||||
|
||||
function setAllAttribs(elm) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue