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

Version Path
esp-ckeditor-0.1.7 vendor/assets/javascripts/plugins/pastetext/plugin.js
esp-ckeditor-0.1.6 vendor/assets/javascripts/esp-ckeditor/plugins/pastetext/plugin.js
esp-ckeditor-0.1.4 vendor/assets/javascripts/esp-ckeditor/plugins/pastetext/plugin.js
esp-ckeditor-0.1.3 app/assets/javascripts/esp-ckeditor/plugins/pastetext/plugin.js
esp-ckeditor-0.1.2 app/assets/javascripts/esp-ckeditor/plugins/pastetext/plugin.js
esp-ckeditor-0.1.1 app/assets/javascripts/esp-ckeditor/plugins/pastetext/plugin.js
esp-ckeditor-0.1.0 app/assets/javascripts/esp-ckeditor/plugins/pastetext/plugin.js