Sha256: 820fd0feb1132d495f9dc55e80fd4955a1fd659f8a1a1c7b189e647f85d096ed
Contents?: true
Size: 811 Bytes
Versions: 7
Compression:
Stored size: 811 Bytes
Contents
(function(){var a={exec:function(c){var b=CKEDITOR.tools.tryThese(function(){var d=window.clipboardData.getData("Text");if(!d){throw 0}return d});if(!b){c.openDialog("pastetext");return false}else{c.fire("paste",{text:b})}return true}};CKEDITOR.plugins.add("pastetext",{init:function(c){var b="pastetext",d=c.addCommand(b,a);c.ui.addButton("PasteText",{label:c.lang.pasteText.button,command:b});CKEDITOR.dialog.add(b,CKEDITOR.getUrl(this.path+"dialogs/pastetext.js"));if(c.config.forcePasteAsPlainText){c.on("beforeCommandExec",function(e){var f=e.data.commandData;if(e.data.name=="paste"&&f!="html"){c.execCommand("pastetext");e.cancel()}},null,null,0);c.on("beforePaste",function(e){e.data.mode="text"})}c.on("pasteState",function(e){c.getCommand("pastetext").setState(e.data)})},requires:["clipboard"]})})();
Version data entries
7 entries across 7 versions & 1 rubygems