/** * Copyright (c) 2014-2016, CKSource - Frederico Knabben. All rights reserved. * Licensed under the terms of the MIT License (see LICENSE.md). * * The abbr plugin dialog window definition. * * Created out of the CKEditor Plugin SDK: * http://docs.ckeditor.com/#!/guide/plugin_sdk_sample_1 */ // Our dialog definition. CKEDITOR.dialog.add( 'mswordDialog', function( editor ) { var ed_lang = editor.lang.msword; /*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;'; var oli = '
");
inner = inner.replace(/style="([^>]+)"/gm,function(m,i){
matches = i.match(/level(\d)/);
if(matches) {
return 'L_'+matches[1]; }
return m;
});
inner = inner.replace(/style="[^>]+"/gm,"");
inner = inner.replace(/ ([\s\S]+) .*?\n(.*?)\/p>/gm, function(m,w){
var n = m;
n = n.replace(/ /gm,"");
var ar = n.split(/\n/);
var str = "";
var list_type = "ul";
for(j=0;j |