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/ins.js
vendored
Executable file → Normal file
17
library/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/ins.js
vendored
Executable file → Normal file
|
@ -21,16 +21,17 @@ function setElementAttribs(elm) {
|
|||
setAllCommonAttribs(elm);
|
||||
setAttrib(elm, 'datetime');
|
||||
setAttrib(elm, 'cite');
|
||||
elm.removeAttribute('data-mce-new');
|
||||
}
|
||||
|
||||
function insertIns() {
|
||||
var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'INS');
|
||||
tinyMCEPopup.execCommand('mceBeginUndoLevel');
|
||||
|
||||
if (elm == null) {
|
||||
var s = SXE.inst.selection.getContent();
|
||||
if(s.length > 0) {
|
||||
insertInlineElement('INS');
|
||||
var elementArray = tinymce.grep(SXE.inst.dom.select('ins'), function(n) {return n.id == '#sxe_temp_ins#';});
|
||||
insertInlineElement('ins');
|
||||
var elementArray = SXE.inst.dom.select('ins[data-mce-new]');
|
||||
for (var i=0; i<elementArray.length; i++) {
|
||||
var elm = elementArray[i];
|
||||
setElementAttribs(elm);
|
||||
|
@ -49,14 +50,4 @@ function removeIns() {
|
|||
tinyMCEPopup.close();
|
||||
}
|
||||
|
||||
function insertInlineElement(en) {
|
||||
var ed = tinyMCEPopup.editor, dom = ed.dom;
|
||||
|
||||
ed.getDoc().execCommand('FontName', false, 'mceinline');
|
||||
tinymce.each(dom.select(tinymce.isWebKit ? 'span' : 'font'), function(n) {
|
||||
if (n.style.fontFamily == 'mceinline' || n.face == 'mceinline')
|
||||
dom.replace(dom.create(en), n, 1);
|
||||
});
|
||||
}
|
||||
|
||||
tinyMCEPopup.onInit.add(init);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue