X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Ftiny_mce%2Fplugins%2Fxhtmlxtras%2Fjs%2Fdel.js;h=1f957dc786044d69ecf9c2349f4f128a9ecb7c72;hp=9e5d8c5717a629e1d18e62db5c53d4709a101e7d;hb=eb5fb3f6c3b3e1d4d3d7ebbb92b8c60d70d13254;hpb=51c6986e64a4405c3971acd67be1d3528ab69539 diff --git a/webcit/tiny_mce/plugins/xhtmlxtras/js/del.js b/webcit/tiny_mce/plugins/xhtmlxtras/js/del.js index 9e5d8c571..1f957dc78 100644 --- a/webcit/tiny_mce/plugins/xhtmlxtras/js/del.js +++ b/webcit/tiny_mce/plugins/xhtmlxtras/js/del.js @@ -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