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 a22b6d6fb..d715b8f5a 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 @@ -33,10 +33,10 @@ // 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 + 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', 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 a79d0a8dc..3ddb74098 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 @@ -33,7 +33,7 @@ // 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 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 @@ -62,5 +62,6 @@ function closePluginPopup(){ function updateEditorContent(serializedHTML){ tinyMCE.activeEditor.execCommand('mceInsertContent', false, serializedHTML); + closePluginPopup(); } 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 88adc2e3b..c398521ed 100644 --- a/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/pmGrids.html +++ b/gulliver/js/tinymce/jscripts/tiny_mce/plugins/pmGrids/pmGrids.html @@ -19,26 +19,26 @@ and open the template in the editor. left: 45%; margin-left: -70px; } - #container { + .container { display: table; } - #row { + .row { display: table-row; } - #left, #right, #middle, .gridCell { + .left, .right, .middle, .gridCell { display: table-cell; }
-