@oat-sa/tao-core-shared-libs 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ckeditor/ckeditor.js +3 -3
- package/lib/ckeditor/plugins/icons.png +0 -0
- package/lib/ckeditor/plugins/icons_hidpi.png +0 -0
- package/lib/ckeditor/plugins/taolanguage/icons/hidpi/language.png +0 -0
- package/lib/ckeditor/plugins/taolanguage/icons/language.png +0 -0
- package/lib/ckeditor/plugins/taolanguage/lang/ar.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/az.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/bg.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/ca.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/cs.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/cy.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/da.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/de-ch.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/de.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/el.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/en-au.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/en-gb.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/en.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/eo.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/es-mx.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/es.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/et.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/eu.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/fa.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/fi.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/fo.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/fr.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/gl.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/he.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/hr.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/hu.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/id.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/it.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/ja.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/km.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/ko.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/ku.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/lt.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/lv.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/nb.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/nl.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/no.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/oc.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/pl.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/pt-br.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/pt.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/ro.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/ru.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/sk.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/sl.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/sq.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/sr-latn.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/sr.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/sv.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/tr.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/tt.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/ug.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/uk.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/vi.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/zh-cn.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/lang/zh.js +5 -0
- package/lib/ckeditor/plugins/taolanguage/plugin.js +9 -0
- package/lib/ckeditor/skins/kama/editor.css +1 -1
- package/lib/ckeditor/skins/kama/editor_ie.css +1 -1
- package/lib/ckeditor/skins/kama/editor_ie7.css +1 -1
- package/lib/ckeditor/skins/kama/editor_ie8.css +1 -1
- package/lib/ckeditor/skins/kama/editor_iequirks.css +1 -1
- package/lib/ckeditor/skins/kama/icons.png +0 -0
- package/lib/ckeditor/skins/kama/icons_hidpi.png +0 -0
- package/lib/ckeditor/skins/moono/editor.css +1 -1
- package/lib/ckeditor/skins/moono/editor_gecko.css +1 -1
- package/lib/ckeditor/skins/moono/editor_ie.css +1 -1
- package/lib/ckeditor/skins/moono/editor_ie7.css +1 -1
- package/lib/ckeditor/skins/moono/editor_ie8.css +1 -1
- package/lib/ckeditor/skins/moono/editor_iequirks.css +1 -1
- package/lib/ckeditor/skins/moono-lisa/editor.css +1 -1
- package/lib/ckeditor/skins/moono-lisa/editor_gecko.css +1 -1
- package/lib/ckeditor/skins/moono-lisa/editor_ie.css +1 -1
- package/lib/ckeditor/skins/moono-lisa/editor_ie8.css +1 -1
- package/lib/ckeditor/skins/moono-lisa/editor_iequirks.css +1 -1
- package/lib/ckeditor/skins/moono-lisa/icons.png +0 -0
- package/lib/ckeditor/skins/moono-lisa/icons_hidpi.png +0 -0
- package/lib/ckeditor/skins/tao/dialog.css.map +1 -16
- package/lib/ckeditor/skins/tao/editor.css +1 -1
- package/lib/ckeditor/skins/tao/editor.css.map +1 -0
- package/lib/ckeditor/skins/tao/icons.png +0 -0
- package/lib/ckeditor/skins/tao/icons_hidpi.png +0 -0
- package/package.json +1 -1
package/lib/ckeditor/ckeditor.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Copyright (c) 2003-2022, CKSource - Frederico Knabben. All rights reserved.
|
|
3
3
|
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
(function(){if(!window.CKEDITOR||!window.CKEDITOR.dom){window.CKEDITOR||(window.CKEDITOR=function(){var a=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,l={timestamp:"
|
|
5
|
+
(function(){if(!window.CKEDITOR||!window.CKEDITOR.dom){window.CKEDITOR||(window.CKEDITOR=function(){var a=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,l={timestamp:"M6JL",version:"4.14.1 TAO-2 DEV",revision:"6db8a0870",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:a},status:"unloaded",basePath:function(){var f=window.CKEDITOR_BASEPATH||"";if(!f)for(var g=document.getElementsByTagName("script"),k=0;k<g.length;k++){var h=g[k].src.match(a);if(h){f=h[1];break}}-1==f.indexOf(":/")&&
|
|
6
6
|
"//"!=f.slice(0,2)&&(f=0===f.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+f:location.href.match(/^[^\?]*\/(?:)/)[0]+f);if(!f)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return f}(),getUrl:function(a){-1==a.indexOf(":/")&&0!==a.indexOf("/")&&(a=this.basePath+a);this.timestamp&&"/"!=a.charAt(a.length-1)&&!/[&?]t=/.test(a)&&(a+=(0<=a.indexOf("?")?"\x26":"?")+"t\x3d"+this.timestamp);
|
|
7
7
|
return a},domReady:function(){function a(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",a,!1),f()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),f())}catch(h){}}function f(){for(var h;h=k.shift();)h()}var k=[];return function(h){function b(){try{document.documentElement.doScroll("left")}catch(c){setTimeout(b,1);return}a()}k.push(h);"complete"===document.readyState&&setTimeout(a,1);if(1==k.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",
|
|
8
8
|
a,!1),window.addEventListener("load",a,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",a);window.attachEvent("onload",a);h=!1;try{h=!window.frameElement}catch(d){}document.documentElement.doScroll&&h&&b()}}}()},g=window.CKEDITOR_GETURL;if(g){var f=l.getUrl;l.getUrl=function(a){return g.call(l,a)||f.call(l,a)}}return l}());CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(a){var l=CKEDITOR.event.prototype,g;for(g in l)null==a[g]&&(a[g]=l[g])},
|
|
@@ -1144,6 +1144,6 @@ this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:
|
|
|
1144
1144
|
l&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(h+='\x3cscript id\x3d"cke_basetagscrpt"\x3evar baseTag \x3d document.querySelector( "base" );baseTag.href \x3d baseTag.href;\x3c/script\x3e');a=a.replace(/(?=\s*<\/(:?head)>)/,h);this.clearCustomData();this.clearListeners();k.fire("contentDomUnload");var u=this.getDocument();try{u.write(a)}catch(p){setTimeout(function(){u.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();a=this.editor;var f=a.config,g=f.fullPage,h=g&&a.docType,b=g&&a.xmlDeclaration,
|
|
1145
1145
|
d=this.getDocument(),g=g?d.getDocumentElement().getOuterHtml():d.getBody().getHtml();CKEDITOR.env.gecko&&f.enterMode!=CKEDITOR.ENTER_BR&&(g=g.replace(/<br>(?=\s*(:?$|<\/body>))/,""));g=a.dataProcessor.toDataFormat(g);b&&(g=b+"\n"+g);h&&(g=h+"\n"+g);return g},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:f.baseProto.focus.call(this)},detach:function(){var a=this.editor,g=a.document,a=a.container.findOne("iframe.cke_wysiwyg_frame");f.baseProto.detach.call(this);this.clearCustomData(this._.expandoNumber);
|
|
1146
1146
|
g.getDocumentElement().clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);a&&(a.clearCustomData(),(g=a.removeCustomData("onResize"))&&g.removeListener(),a.isDetached()||a.remove())}}})})();CKEDITOR.config.disableObjectResizing=!1;CKEDITOR.config.disableNativeTableHandles=!0;CKEDITOR.config.disableNativeSpellChecker=!0;CKEDITOR.config.plugins="basicstyles,bidi,blockquote,dialogui,dialog,notification,button,toolbar,clipboard,panelbutton,panel,floatpanel,colorbutton,colordialog,copyformatting,menu,contextmenu,confighelper,dialogadvtab,entities,floatingspace,listblock,richcombo,font,format,horizontalrule,htmlwriter,indent,indentlist,indentblock,taotab,taountab,justify,fakeobjects,link,list,liststyle,magicline,pastetools,pastefromlibreoffice,pastefromword,pastetext,removeformat,resize,selectall,sharedspace,sourcearea,specialchar,stylescombo,tab,table,tabletools,tableselection,taoqtiimage,taoqtimaths,taoqtimedia,taoqtitable,taounderline,taotooltip,taohighlight,taoqtiinclude,taoqtiprintedvariable,undo,wysiwygarea";
|
|
1147
|
-
CKEDITOR.config.skin="tao";(function(){var a=function(a,g){var f=CKEDITOR.getUrl("plugins/"+g);a=a.split(",");for(var e=0;e<a.length;e++)CKEDITOR.skin.icons[a[e]]={path:f,offset:-a[++e],bgsize:a[++e]}};CKEDITOR.env.hidpi?a("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,bidiltr,168,,bidirtl,192,,blockquote,216,,copy-rtl,240,,copy,264,,cut-rtl,288,,cut,312,,paste-rtl,336,,paste,360,,codesnippet,384,,bgcolor,408,,textcolor,432,,copyformatting,456,,creatediv,480,,docprops-rtl,504,,docprops,528,,easyimagealigncenter,552,,easyimagealignleft,576,,easyimagealignright,600,,easyimagealt,624,,easyimagefull,648,,easyimageside,672,,easyimageupload,696,,embed,720,,embedsemantic,744,,emojipanel,768,,find-rtl,792,,find,816,,replace,840,,flash,864,,button,888,,checkbox,912,,form,936,,hiddenfield,960,,imagebutton,984,,radio,1008,,select-rtl,1032,,select,1056,,textarea-rtl,1080,,textarea,1104,,textfield-rtl,1128,,textfield,1152,,horizontalrule,1176,,iframe,1200,,image,1224,,indent-rtl,1248,,indent,1272,,outdent-rtl,1296,,outdent,1320,,justifyblock,1344,,justifycenter,1368,,justifyleft,1392,,justifyright,1416,,
|
|
1148
|
-
"icons_hidpi.png"):a("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,bidiltr,168,auto,bidirtl,192,auto,blockquote,216,auto,copy-rtl,240,auto,copy,264,auto,cut-rtl,288,auto,cut,312,auto,paste-rtl,336,auto,paste,360,auto,codesnippet,384,auto,bgcolor,408,auto,textcolor,432,auto,copyformatting,456,auto,creatediv,480,auto,docprops-rtl,504,auto,docprops,528,auto,easyimagealigncenter,552,auto,easyimagealignleft,576,auto,easyimagealignright,600,auto,easyimagealt,624,auto,easyimagefull,648,auto,easyimageside,672,auto,easyimageupload,696,auto,embed,720,auto,embedsemantic,744,auto,emojipanel,768,auto,find-rtl,792,auto,find,816,auto,replace,840,auto,flash,864,auto,button,888,auto,checkbox,912,auto,form,936,auto,hiddenfield,960,auto,imagebutton,984,auto,radio,1008,auto,select-rtl,1032,auto,select,1056,auto,textarea-rtl,1080,auto,textarea,1104,auto,textfield-rtl,1128,auto,textfield,1152,auto,horizontalrule,1176,auto,iframe,1200,auto,image,1224,auto,indent-rtl,1248,auto,indent,1272,auto,outdent-rtl,1296,auto,outdent,1320,auto,justifyblock,1344,auto,justifycenter,1368,auto,justifyleft,1392,auto,justifyright,1416,auto,
|
|
1147
|
+
CKEDITOR.config.skin="tao";(function(){var a=function(a,g){var f=CKEDITOR.getUrl("plugins/"+g);a=a.split(",");for(var e=0;e<a.length;e++)CKEDITOR.skin.icons[a[e]]={path:f,offset:-a[++e],bgsize:a[++e]}};CKEDITOR.env.hidpi?a("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,bidiltr,168,,bidirtl,192,,blockquote,216,,copy-rtl,240,,copy,264,,cut-rtl,288,,cut,312,,paste-rtl,336,,paste,360,,codesnippet,384,,bgcolor,408,,textcolor,432,,copyformatting,456,,creatediv,480,,docprops-rtl,504,,docprops,528,,easyimagealigncenter,552,,easyimagealignleft,576,,easyimagealignright,600,,easyimagealt,624,,easyimagefull,648,,easyimageside,672,,easyimageupload,696,,embed,720,,embedsemantic,744,,emojipanel,768,,find-rtl,792,,find,816,,replace,840,,flash,864,,button,888,,checkbox,912,,form,936,,hiddenfield,960,,imagebutton,984,,radio,1008,,select-rtl,1032,,select,1056,,textarea-rtl,1080,,textarea,1104,,textfield-rtl,1128,,textfield,1152,,horizontalrule,1176,,iframe,1200,,image,1224,,indent-rtl,1248,,indent,1272,,outdent-rtl,1296,,outdent,1320,,justifyblock,1344,,justifycenter,1368,,justifyleft,1392,,justifyright,1416,,anchor-rtl,1440,,anchor,1464,,link,1488,,unlink,1512,,bulletedlist-rtl,1536,,bulletedlist,1560,,numberedlist-rtl,1584,,numberedlist,1608,,mathjax,1632,,maximize,1656,,newpage-rtl,1680,,newpage,1704,,pagebreak-rtl,1728,,pagebreak,1752,,pastefromword-rtl,1776,,pastefromword,1800,,pastetext-rtl,1824,,pastetext,1848,,placeholder,1872,,preview-rtl,1896,,preview,1920,,print,1944,,removeformat,1968,,save,1992,,selectall,2016,,showblocks-rtl,2040,,showblocks,2064,,smiley,2088,,source-rtl,2112,,source,2136,,sourcedialog-rtl,2160,,sourcedialog,2184,,specialchar,2208,,table,2232,,language,2256,,templates-rtl,2280,,templates,2304,,uicolor,2328,,redo-rtl,2352,,redo,2376,,undo-rtl,2400,,undo,2424,,simplebox,4896,auto",
|
|
1148
|
+
"icons_hidpi.png"):a("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,bidiltr,168,auto,bidirtl,192,auto,blockquote,216,auto,copy-rtl,240,auto,copy,264,auto,cut-rtl,288,auto,cut,312,auto,paste-rtl,336,auto,paste,360,auto,codesnippet,384,auto,bgcolor,408,auto,textcolor,432,auto,copyformatting,456,auto,creatediv,480,auto,docprops-rtl,504,auto,docprops,528,auto,easyimagealigncenter,552,auto,easyimagealignleft,576,auto,easyimagealignright,600,auto,easyimagealt,624,auto,easyimagefull,648,auto,easyimageside,672,auto,easyimageupload,696,auto,embed,720,auto,embedsemantic,744,auto,emojipanel,768,auto,find-rtl,792,auto,find,816,auto,replace,840,auto,flash,864,auto,button,888,auto,checkbox,912,auto,form,936,auto,hiddenfield,960,auto,imagebutton,984,auto,radio,1008,auto,select-rtl,1032,auto,select,1056,auto,textarea-rtl,1080,auto,textarea,1104,auto,textfield-rtl,1128,auto,textfield,1152,auto,horizontalrule,1176,auto,iframe,1200,auto,image,1224,auto,indent-rtl,1248,auto,indent,1272,auto,outdent-rtl,1296,auto,outdent,1320,auto,justifyblock,1344,auto,justifycenter,1368,auto,justifyleft,1392,auto,justifyright,1416,auto,anchor-rtl,1440,auto,anchor,1464,auto,link,1488,auto,unlink,1512,auto,bulletedlist-rtl,1536,auto,bulletedlist,1560,auto,numberedlist-rtl,1584,auto,numberedlist,1608,auto,mathjax,1632,auto,maximize,1656,auto,newpage-rtl,1680,auto,newpage,1704,auto,pagebreak-rtl,1728,auto,pagebreak,1752,auto,pastefromword-rtl,1776,auto,pastefromword,1800,auto,pastetext-rtl,1824,auto,pastetext,1848,auto,placeholder,1872,auto,preview-rtl,1896,auto,preview,1920,auto,print,1944,auto,removeformat,1968,auto,save,1992,auto,selectall,2016,auto,showblocks-rtl,2040,auto,showblocks,2064,auto,smiley,2088,auto,source-rtl,2112,auto,source,2136,auto,sourcedialog-rtl,2160,auto,sourcedialog,2184,auto,specialchar,2208,auto,table,2232,auto,language,2256,auto,templates-rtl,2280,auto,templates,2304,auto,uicolor,2328,auto,redo-rtl,2352,auto,redo,2376,auto,undo-rtl,2400,auto,undo,2424,auto,simplebox,2448,auto",
|
|
1149
1149
|
"icons.png")})()}})();
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
CKEDITOR.plugins.setLang("taolanguage","de-ch",{button:"Sprache festlegen",remove:"Sprache entfernen"});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
CKEDITOR.plugins.setLang("taolanguage","de",{button:"Sprache festlegen",remove:"Sprache entfernen"});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
CKEDITOR.plugins.setLang("taolanguage","es-mx",{button:"Establecer idioma",remove:"Remover idioma"});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
CKEDITOR.plugins.setLang("taolanguage","fr",{button:"Définir la langue",remove:"Supprimer la langue"});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
CKEDITOR.plugins.setLang("taolanguage","gl",{button:"Estabelezer o idioma",remove:"Retirar o idioma"});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
CKEDITOR.plugins.setLang("taolanguage","hu",{button:"Nyelv beállítása",remove:"Nyelv eltávolítása"});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
CKEDITOR.plugins.setLang("taolanguage","oc",{button:"Definir la lenga",remove:"Suprimir la lenga"});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
CKEDITOR.plugins.setLang("taolanguage","pt-br",{button:"Configure o Idioma",remove:"Remover Idioma"});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
CKEDITOR.plugins.setLang("taolanguage","ro",{button:"Alege limba",remove:"Șterge limba deja selectată"});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
CKEDITOR.plugins.setLang("taolanguage","vi",{button:"Thiết lập ngôn ngữ",remove:"Loại bỏ ngôn ngữ"});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
|
|
3
|
+
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
(function(){CKEDITOR.plugins.add("taolanguage",{requires:"menubutton",lang:"ar,az,bg,ca,cs,cy,da,de,de-ch,el,en,en-au,en-gb,eo,es,es-mx,et,eu,fa,fi,fo,fr,gl,he,hr,hu,id,it,ja,km,ko,ku,lt,lv,nb,nl,no,oc,pl,pt,pt-br,ro,ru,sk,sl,sq,sr,sr-latn,sv,tr,tt,ug,uk,vi,zh,zh-cn",icons:"language",hidpi:!0,init:function(a){var b=a.config.language_list||["ar:Arabic:rtl","fr:French","es:Spanish"],c=this,d=a.lang.taolanguage,e={},f,h,k,g;a.addCommand("language",{allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",
|
|
6
|
+
contextSensitive:!0,exec:function(a,b){var c=e["language_"+b];if(c)a[c.style.checkActive(a.elementPath(),a)?"removeStyle":"applyStyle"](c.style)},refresh:function(a){document.body.classList.remove("cke_panel_visible");this.setState(c.getCurrentLangElement(a)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}});for(g=0;g<b.length;g++)f=b[g].split(":"),h=f[0],k="language_"+h,e[k]={label:f[1],langId:h,group:"language",order:g,ltr:"rtl"!=(""+f[2]).toLowerCase(),className:"cke_menubutton__"+(""+f[2]).toLowerCase(),
|
|
7
|
+
onClick:function(){a.execCommand("language",this.langId)},role:"menuitemcheckbox"},e[k].style=new CKEDITOR.style({element:"span",attributes:{lang:h,dir:e[k].ltr?"ltr":"rtl"}});e.language_remove={label:d.remove,group:"language_remove",state:CKEDITOR.TRISTATE_DISABLED,order:e.length,className:"cke_menubutton__language_remove",onClick:function(){var b=c.getCurrentLangElement(a);b&&a.execCommand("language",b.getAttribute("lang"))}};a.addMenuGroup("language_remove",1);a.addMenuGroup("language");a.addMenuItems(e);
|
|
8
|
+
a.ui.add("Language",CKEDITOR.UI_MENUBUTTON,{label:d.button,allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",toolbar:"bidi,30",command:"language",className:"cke_button__taolanguage",onMenu:function(){document.body.classList.add("cke_panel_visible");var b={},d=c.getCurrentLangElement(a),f;for(f in e)b[f]=CKEDITOR.TRISTATE_OFF;b.language_remove=d?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;d&&(b["language_"+d.getAttribute("lang")]=CKEDITOR.TRISTATE_ON);return b}});a.addRemoveFormatFilter&&
|
|
9
|
+
a.addRemoveFormatFilter(function(a){return!(a.is("span")&&a.getAttribute("dir")&&a.getAttribute("lang"))})},getCurrentLangElement:function(a){var b=a.elementPath();a=b&&b.elements;var c;if(b)for(var d=0;d<a.length;d++)b=a[d],!c&&"span"==b.getName()&&b.hasAttribute("dir")&&b.hasAttribute("lang")&&(c=b);return c}})})();
|