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