mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +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
14
library/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js
vendored
Executable file → Normal file
14
library/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/del.js
vendored
Executable file → Normal file
|
@ -21,17 +21,17 @@ function setElementAttribs(elm) {
|
|||
setAllCommonAttribs(elm);
|
||||
setAttrib(elm, 'datetime');
|
||||
setAttrib(elm, 'cite');
|
||||
elm.removeAttribute('data-mce-new');
|
||||
}
|
||||
|
||||
function insertDel() {
|
||||
var elm = tinyMCEPopup.editor.dom.getParent(SXE.focusElement, 'DEL');
|
||||
|
||||
tinyMCEPopup.execCommand('mceBeginUndoLevel');
|
||||
if (elm == null) {
|
||||
var s = SXE.inst.selection.getContent();
|
||||
if(s.length > 0) {
|
||||
insertInlineElement('del');
|
||||
var elementArray = tinymce.grep(SXE.inst.dom.select('del'), function(n) {return n.id == '#sxe_temp_del#';});
|
||||
var elementArray = SXE.inst.dom.select('del[data-mce-new]');
|
||||
for (var i=0; i<elementArray.length; i++) {
|
||||
var elm = elementArray[i];
|
||||
setElementAttribs(elm);
|
||||
|
@ -45,16 +45,6 @@ function insertDel() {
|
|||
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);
|
||||
});
|
||||
}
|
||||
|
||||
function removeDel() {
|
||||
SXE.removeElement('del');
|
||||
tinyMCEPopup.close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue