WYSIWYG EDITOR resize popup Variable Picker
WYSIWYG EDITOR Variable Picker
This commit is contained in:
0
gulliver/js/maborak/core/maborak.js
Executable file → Normal file
0
gulliver/js/maborak/core/maborak.js
Executable file → Normal file
0
gulliver/js/maborak/core/maborak.loader.js
Executable file → Normal file
0
gulliver/js/maborak/core/maborak.loader.js
Executable file → Normal file
@@ -5,7 +5,6 @@
|
||||
(function(){
|
||||
var strPluginURL;
|
||||
tinymce.create('tinymce.plugins.pmVariablePickerPlugin', {
|
||||
|
||||
init: function(ed, url)
|
||||
{
|
||||
strPluginURL = url; // store the URL for future use..
|
||||
@@ -33,7 +32,13 @@
|
||||
// in the latter case, win and type will be set.. In the rist case, we will just update the main editor window
|
||||
// with the path of the uploaded file
|
||||
function pmVariablePicker(field_name, url, type, win) {
|
||||
var strPluginPath = tinyMCE.activeEditor.plugins.pmVariablePicker.getPluginURL(); // get the path to the uploader plugin
|
||||
|
||||
var uloc=String(location);
|
||||
//alert(uloc);
|
||||
var new_text = uloc.split('/');
|
||||
var loc='/'+new_text[3]+'/'+new_text[4]+'/'+new_text[5]+'/controls/varsAjax?displayOption=tinyMCE&sSymbol=@@';
|
||||
|
||||
var strPluginPath = tinyMCE.activeEditor.plugins.pmVariablePicker.getPluginURL(); // get the path to the uploader plugin
|
||||
var strUploaderURL = strPluginPath + "/uploader.php"; // generate the path to the uploader script
|
||||
var strUploadPath = tinyMCE.activeEditor.getParam('plugin_pmVariablePicker_upload_path'); // get the relative upload path
|
||||
var strSubstitutePath = tinyMCE.activeEditor.getParam('plugin_pmVariablePicker_upload_substitute_path'); // get the path we'll substitute for the for the upload path (i.e. fully qualified)
|
||||
@@ -43,12 +48,15 @@ function pmVariablePicker(field_name, url, type, win) {
|
||||
} else {
|
||||
strUploaderURL = strUploaderURL + "&type=" + type + "&d=" + strUploadPath + "&subs=" + strSubstitutePath;
|
||||
}
|
||||
//tinyMCE.activeEditor.anyVariable='path/to/ProcessMaker'
|
||||
tinyMCE.activeEditor.windowManager.open({ // open the plugin popup
|
||||
file : '/sysworkflow/en/classic/controls/varsAjax?displayOption=tinyMCE&sSymbol=@@',
|
||||
title : 'Upload Variable',
|
||||
width : '400px',
|
||||
height : '350px',
|
||||
//file : '/sysworkflow/en/classic/controls/varsAjax?displayOption=tinyMCE&sSymbol=@@',
|
||||
file : loc,
|
||||
title : 'Upload Variable',
|
||||
width : '600px',
|
||||
height : '330px',
|
||||
resizable : "yes",
|
||||
scrollbars : "no",
|
||||
overflow : false,
|
||||
inline : 1, // This parameter only has an effect if you use the inlinepopups plugin!
|
||||
close_previous : "no"
|
||||
@@ -67,10 +75,10 @@ function closePluginPopup(){
|
||||
}
|
||||
|
||||
function updateEditorContent(serializedHTML){
|
||||
tinyMCE.activeEditor.execCommand('mceInsertContent', false, serializedHTML);
|
||||
tinyMCE.activeEditor.execCommand('mceInsertContent', false, serializedHTML);
|
||||
}
|
||||
|
||||
function insertFormVar(fieldName,serializedHTML){
|
||||
tinyMCE.activeEditor.execCommand('mceInsertContent', false, serializedHTML);
|
||||
closePluginPopup();
|
||||
tinyMCE.activeEditor.execCommand('mceInsertContent', false, serializedHTML);
|
||||
closePluginPopup();
|
||||
}
|
||||
@@ -21,10 +21,13 @@
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
$_SERVER["QUERY_STRING"] = isset($_SERVER["QUERY_STRING"])?$_SERVER["QUERY_STRING"]:'';
|
||||
$_POST["sProcess"] = isset($_POST["sProcess"])?$_POST["sProcess"]:'';
|
||||
$_POST["sFieldName"] = isset($_POST["sFieldName"])?$_POST["sFieldName"]:'';
|
||||
$_POST['sSymbol']= isset($_POST["sSymbol"])?$_POST["sSymbol"]:'';
|
||||
|
||||
$html = '<form action="uploader.php?'.$_SERVER["QUERY_STRING"].'&q=upload" onLoad="onLoad()" method="post" enctype="multipart/form-data" onsubmit="">';
|
||||
|
||||
$html .= '<div id="d_variables">';
|
||||
|
||||
$html .= '<table width="90%" align="center">';
|
||||
|
||||
$html .= '<tr style="display:none; visibility:hidden;">';
|
||||
|
||||
@@ -43,7 +43,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:550,h:675},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -48,7 +48,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:550,h:675},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -75,7 +75,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:400,h:600},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -67,7 +67,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:400,h:410},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -57,7 +57,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:400,h:600},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -119,7 +119,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:400,h:410},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -35,7 +35,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:350,h:400},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -36,11 +36,8 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {
|
||||
w : 350,
|
||||
h : 400
|
||||
},
|
||||
position : {
|
||||
size : {w:600,h:420},
|
||||
position : {
|
||||
x : 0,
|
||||
y : 0,
|
||||
center : true
|
||||
|
||||
@@ -117,7 +117,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:400,h:600},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -22,7 +22,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:350,h:400},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -28,7 +28,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:350,h:400},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -37,7 +37,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:400,h:600},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -245,7 +245,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:400,h:600},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -69,7 +69,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:400,h:600},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -39,7 +39,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:400,h:600},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -155,7 +155,7 @@
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:400,h:600},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -36,8 +36,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
//size : {w:550,h:645},
|
||||
size : {w:600,h:340},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -32,8 +32,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
//size : {w:550,h:645},
|
||||
size : {w:600,h:340},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -26,8 +26,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
//size : {w:550,h:645},
|
||||
size : {w:600,h:340},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
@@ -24,7 +24,7 @@ var showDynaformsFormVars = function(sFieldName, sAjaxServer, sProcess, sSymbol)
|
||||
_oVarsPanel_ = new leimnud.module.panel();
|
||||
_oVarsPanel_.options = {
|
||||
limit : true,
|
||||
size : {w:600,h:440},
|
||||
size : {w:600,h:420},
|
||||
position : {x:0,y:0,center:true},
|
||||
title : '',
|
||||
theme : 'processmaker',
|
||||
|
||||
Reference in New Issue
Block a user