Sha256: af3b5a33ac3f9d8ab431a2edef892075515c530ed3382a4c3179ba637a077b62

Contents?: true

Size: 721 Bytes

Versions: 21

Compression:

Stored size: 721 Bytes

Contents

tinymce.PluginManager.add("code",function(e){function t(){var t=e.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:e.getParam("code_dialog_width",600),minHeight:e.getParam("code_dialog_height",Math.min(tinymce.DOM.getViewPort().h-200,500)),spellcheck:!1,style:"direction: ltr; text-align: left"},onSubmit:function(t){e.focus(),e.undoManager.transact(function(){e.setContent(t.data.code)}),e.selection.setCursorLocation(),e.nodeChanged()}});t.find("#code").value(e.getContent({source_view:!0}))}e.addCommand("mceCodeEditor",t),e.addButton("code",{icon:"code",tooltip:"Source code",onclick:t}),e.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:t})});

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
mosaico-2.0.0 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/code/plugin.min.js
mosaico-1.1.1 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/code/plugin.min.js
mosaico-1.1.0 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/code/plugin.min.js
mosaico-1.0.2 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/code/plugin.min.js
mosaico-1.0.1 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/code/plugin.min.js
mosaico-1.0.0 vendor/assets/mosaico-0.16.0/mosaico/dist/vendor/plugins/code/plugin.min.js
tinymce-rails-4.5.7 vendor/assets/javascripts/tinymce/plugins/code/plugin.js
tinymce-rails-4.5.6 vendor/assets/javascripts/tinymce/plugins/code/plugin.js
tinymce-rails-4.5.5 vendor/assets/javascripts/tinymce/plugins/code/plugin.js
tinymce-rails-4.5.4 vendor/assets/javascripts/tinymce/plugins/code/plugin.js
tinymce-rails-4.5.3 vendor/assets/javascripts/tinymce/plugins/code/plugin.js
tinymce-rails-4.5.2 vendor/assets/javascripts/tinymce/plugins/code/plugin.js
tinymce-rails-4.5.1 vendor/assets/javascripts/tinymce/plugins/code/plugin.js
guts-1.1.1 app/assets/javascripts/guts/vendor/tinymce/plugins/code/plugin.min.js
guts-1.1.0 app/assets/javascripts/guts/vendor/tinymce/plugins/code/plugin.min.js
guts-1.0.8 app/assets/javascripts/guts/vendor/tinymce/plugins/code/plugin.min.js
guts-1.0.7 app/assets/javascripts/guts/vendor/tinymce/plugins/code/plugin.min.js
guts-1.0.5 app/assets/javascripts/guts/vendor/tinymce/plugins/code/plugin.min.js
guts-1.0.3 app/assets/javascripts/guts/vendor/tinymce/plugins/code/plugin.min.js
tinymce-rails-4.3.3 vendor/assets/javascripts/tinymce/plugins/code/plugin.js