diff --git a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/VariablePicker.html b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/VariablePicker.html deleted file mode 100644 index 1210d28e6..000000000 --- a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/VariablePicker.html +++ /dev/null @@ -1,66 +0,0 @@ - - -
- - - - - - - - \ No newline at end of file diff --git a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/editor_plugin.js b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/editor_plugin.js index 655d90fd3..a22b6d6fb 100644 --- a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/editor_plugin.js +++ b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/editor_plugin.js @@ -13,7 +13,7 @@ }); ed.addButton('pmGrids', { title: 'pmGrids', - label : ' @# Grids', + label : ' @#', cmd: 'mcepmGrids', image: url + '/img/grids.png' }); @@ -33,11 +33,14 @@ // with the path of the uploaded file function pmGrids(field_name, url, type, win) { //tinyMCE.activeEditor.anyVariable='path/to/ProcessMaker' - tinyMCE.activeEditor.windowManager.open({ // open the plugin popup - file : '/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/pmGrids.html', - title : '', + var strPluginPath = tinyMCE.activeEditor.plugins.pmGrids.getPluginURL(); // get the path to the uploader plugin + var strScriptURL = strPluginPath + "/pmGrids.html"; + +tinyMCE.activeEditor.windowManager.open({ // open the plugin popup + file : strScriptURL, + title : 'ProcessMaker Grid Wizard', width : '600px', - height : '330px', + height : '230px', resizable : "yes", scrollbars : "no", overflow : false, diff --git a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/editor_plugin_src.js b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/editor_plugin_src.js index 655d90fd3..a79d0a8dc 100644 --- a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/editor_plugin_src.js +++ b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/editor_plugin_src.js @@ -13,7 +13,7 @@ }); ed.addButton('pmGrids', { title: 'pmGrids', - label : ' @# Grids', + label : ' @#', cmd: 'mcepmGrids', image: url + '/img/grids.png' }); @@ -33,11 +33,14 @@ // with the path of the uploaded file function pmGrids(field_name, url, type, win) { //tinyMCE.activeEditor.anyVariable='path/to/ProcessMaker' + var strPluginPath = tinyMCE.activeEditor.plugins.pmGrids.getPluginURL(); // get the path to the uploader plugin + var strScriptURL = strPluginPath + "/pmGrids.html"; + tinyMCE.activeEditor.windowManager.open({ // open the plugin popup - file : '/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/pmGrids.html', - title : '', + file : strScriptURL, + title : 'ProcessMaker Grid Wizard', width : '600px', - height : '330px', + height : '230px', resizable : "yes", scrollbars : "no", overflow : false, diff --git a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/pmGrids.html b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/pmGrids.html index 003b4ebc7..88adc2e3b 100644 --- a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/pmGrids.html +++ b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/pmGrids.html @@ -10,33 +10,29 @@ and open the template in the editor. - + +