From 27863146c425c09836fb3d5223163a4811eb7996 Mon Sep 17 00:00:00 2001 From: Christoph Luig Date: Tue, 30 May 2023 08:39:16 +0200 Subject: [PATCH] remove tags --- ckeditor/plugins/msword/dialogs/bak/msword.js | 138 +++++++++--------- 1 file changed, 70 insertions(+), 68 deletions(-) diff --git a/ckeditor/plugins/msword/dialogs/bak/msword.js b/ckeditor/plugins/msword/dialogs/bak/msword.js index 04225b4a..ed383ac4 100755 --- a/ckeditor/plugins/msword/dialogs/bak/msword.js +++ b/ckeditor/plugins/msword/dialogs/bak/msword.js @@ -14,7 +14,7 @@ CKEDITOR.dialog.add( 'mswordDialog', function( editor ) { /*top right bottom left*/ // var olstyle ='list-style: decimal-leading-zero; font-size: 1.1em; margin: 0 0 0 .25em'; var olstyle ='font-size: 1.1em;'; - return { + return { // Basic properties of the dialog window: title, minimum size. title: 'MS Word', minWidth: 600, @@ -29,11 +29,11 @@ CKEDITOR.dialog.add( 'mswordDialog', function( editor ) { // The tab content. elements: [ - { + { type: 'html', html: '
', minWidth: 350, - minHeight: 350, + minHeight: 350, }, { type: 'hbox', @@ -41,134 +41,136 @@ CKEDITOR.dialog.add( 'mswordDialog', function( editor ) { children: [ { type: 'html', - html: editor.lang.msword.info, + html: editor.lang.msword.info, } - + ] //hbox children - }, //hbox - + }, //hbox + ], //elements - + }, //contents { id: 'Info', label: editor.lang.msword.instructionsLabel, - + elements: [ - { - type: 'html', + { + type: 'html', html: "
  1. "+ ed_lang.instructions +'
  2. ' + ed_lang.instructions_2 +'
    • '+ed_lang.instructions_3 + '
    • '+ed_lang.instructions_4 + '
  3. ' + ed_lang.instructions_5 + '
', - + }, - ] - } + ] + } ], //contents onShow : function() { - var dialog = this; + var dialog = this; geshi_dialog = dialog; - selection = editor.getSelection(); + selection = editor.getSelection(); var selected=editor.getSelectedHtml(true) ; if(selected) { var data_id = document.getElementById('ckgedit_mswin'); - data_id.innerHTML = selected; - } - jQuery( "#ckgedit_mswin" ).keydown(function(ev) { - if (ev.which == 13 ) { + data_id.innerHTML = selected; + } + jQuery( "#ckgedit_mswin" ).keydown(function(ev) { + if (ev.which == 13 ) { ev.stopPropagation(); - } + } }); }, - - + + onOk: function() { // The context of this function is the dialog object itself. // http://docs.ckeditor.com/#!/api/CKEDITOR.dialog var data_id = document.getElementById('ckgedit_mswin'); - var inner = data_id.innerHTML; - inner = inner.replace(/</gm,'<'); + var inner = data_id.innerHTML; + inner = inner.replace(/</gm,'<'); inner = inner.replace(/>/mg,'>'); //if(confirm("exit now") { //jQuery('.cke_dialog_ui_button_cancel').children().click(); // } - var regex = new RegExp('([^]*)<\/xml>','gm'); - inner = inner.replace(regex, function(m,n) { + var regex = new RegExp('([^]*)<\/xml>','gm'); + inner = inner.replace(regex, function(m,n) { return ""; }); - - - var regex = new RegExp('