PluginProbe ʕ •ᴥ•ʔ
Shortcoder — Create Shortcodes for Anything / 5.6
Shortcoder — Create Shortcodes for Anything v5.6
trunk 3.0 3.0.1 3.1 3.2 3.3 3.4 3.4.1 4.0 4.0.1 4.0.2 4.0.3 4.1 4.1.1 4.1.2 4.1.3 4.1.4 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2 4.3 4.4 4.5 4.6 5.0 5.0.1 5.0.2 5.0.3 5.0.4 5.1 5.2 5.2.1 5.3 5.3.1 5.3.2 5.3.3 5.3.4 5.4 5.5 5.6 5.7 5.8 6.0 6.1 6.2 6.3 6.3.1 6.3.2 6.4 6.5 6.5.1 6.5.2 6.5.3
shortcoder / admin / js / script-settings.js
shortcoder / admin / js Last commit date
blocks 4 years ago tinymce 4 years ago script-insert.js 4 years ago script-settings.js 4 years ago script-tools.js 4 years ago script.js 4 years ago
script-settings.js
31 lines
1 (function($){
2 $(document).ready(function(){
3
4 var init = function(){
5
6 load_codemirror();
7
8 }
9
10 var load_codemirror = function(){
11
12 try{
13 var editor = wp.codeEditor.initialize(document.getElementById('sc_default_content'));
14
15 editor.codemirror.setSize( null, null );
16 editor.codemirror.on('change', function(){
17 editor.codemirror.save();
18 });
19
20 window.sc_cm = editor.codemirror;
21 }catch(error){
22 console.error('Shortcoder: Unable to load code editor.', error);
23 return false;
24 }
25
26 }
27
28 init();
29
30 });
31 })( jQuery );