From aca28de01e7327a45ce025303fc2acc5c3813406 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 9 Jun 2018 19:25:33 +0200 Subject: Use WYMeditor as the article text editor. WYMeditor produces much better XHTML than Trumbowyg. --- static-files/journal/trumbowyg/trumbowyg.preformatted.min.js | 1 - 1 file changed, 1 deletion(-) delete mode 100755 static-files/journal/trumbowyg/trumbowyg.preformatted.min.js (limited to 'static-files/journal/trumbowyg/trumbowyg.preformatted.min.js') diff --git a/static-files/journal/trumbowyg/trumbowyg.preformatted.min.js b/static-files/journal/trumbowyg/trumbowyg.preformatted.min.js deleted file mode 100755 index b0d9e3f..0000000 --- a/static-files/journal/trumbowyg/trumbowyg.preformatted.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){"use strict";function t(){var e,t=null;return window.getSelection?(e=window.getSelection(),e.rangeCount&&(t=e.getRangeAt(0).commonAncestorContainer,1!==t.nodeType&&(t=t.parentNode))):(e=document.selection)&&"Control"!==e.type&&(t=e.createRange().parentElement()),t}function n(e){var t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}function r(){var t=null;if(document.selection)t=document.selection.createRange().parentElement();else{var n=window.getSelection();n.rangeCount>0&&(t=n.getRangeAt(0).startContainer.parentNode)}var r=e(t).contents().closest("pre").length,o=e(t).contents().closest("code").length;r&&o?e(t).contents().unwrap("code").unwrap("pre"):r?e(t).contents().unwrap("pre"):o&&e(t).contents().unwrap("code")}e.extend(!0,e.trumbowyg,{langs:{en:{preformatted:"Code sample
"},fr:{preformatted:"Exemple de code"},it:{preformatted:"Codice 
"},zh_cn:{preformatted:"代码示例 
"}},plugins:{preformatted:{init:function(e){var o={fn:function(){e.saveRange();var o=e.getRangeText();if(""!==o.replace(/\s/g,""))try{var a=t().tagName.toLowerCase();if("code"===a||"pre"===a)return r();e.execCmd("insertHTML","
"+n(o)+"
")}catch(c){}},tag:"pre"};e.addBtnDef("preformatted",o)}}}})}(jQuery); \ No newline at end of file -- cgit v1.2.3