Fixing an mceInsertContent bug, the execCommand is now the mceInsertRawHTML
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -31,7 +31,7 @@
|
|||||||
// this function can get called from the plugin inint (above) or from the callback on advlink/advimg plugins..
|
// this function can get called from the plugin inint (above) or from the callback on advlink/advimg plugins..
|
||||||
// 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 pmGrids(field_name, url, type, win) {
|
function pmGrids(field_name, win) {
|
||||||
//tinyMCE.activeEditor.anyVariable='path/to/ProcessMaker'
|
//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";
|
var strScriptURL = strPluginPath + "/pmGrids.html";
|
||||||
@@ -61,6 +61,7 @@ function closePluginPopup(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateEditorContent(serializedHTML){
|
function updateEditorContent(serializedHTML){
|
||||||
tinyMCE.activeEditor.execCommand('mceInsertContent', false, serializedHTML);
|
tinyMCE.activeEditor.execCommand('mceInsertRawHTML', false, serializedHTML);
|
||||||
|
closePluginPopup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
// this function can get called from the plugin inint (above) or from the callback on advlink/advimg plugins..
|
// this function can get called from the plugin inint (above) or from the callback on advlink/advimg plugins..
|
||||||
// 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 pmGrids(field_name, url, type, win) {
|
function pmGrids(field_name, win) {
|
||||||
//tinyMCE.activeEditor.anyVariable='path/to/ProcessMaker'
|
//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";
|
var strScriptURL = strPluginPath + "/pmGrids.html";
|
||||||
@@ -61,7 +61,7 @@ function closePluginPopup(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateEditorContent(serializedHTML){
|
function updateEditorContent(serializedHTML){
|
||||||
tinyMCE.activeEditor.execCommand('mceInsertContent', false, serializedHTML);
|
tinyMCE.activeEditor.execCommand('mceInsertRawHTML', false, serializedHTML);
|
||||||
closePluginPopup();
|
closePluginPopup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -65,13 +65,13 @@ $(document).ready(function () {
|
|||||||
var insertFormatedGrid = function(){
|
var insertFormatedGrid = function(){
|
||||||
var gridName = $("#gridList option:selected").text();
|
var gridName = $("#gridList option:selected").text();
|
||||||
var tableCode = "<table>"
|
var tableCode = "<table>"
|
||||||
var gridCode = "<!--"+gridName+"@>-->";
|
var gridCode = "<!--@>"+gridName+"-->";
|
||||||
var headerCode = "<tr>";
|
var headerCode = "<tr>";
|
||||||
var fieldCode = "<tr>";
|
var fieldCode = "<tr>";
|
||||||
|
|
||||||
$('#listContainer .headerField').each(function(i){
|
$('#listContainer .headerField').each(function(i){
|
||||||
if (this.checked == true) {
|
if (this.checked == true) {
|
||||||
headerCode += "<td>"+$('#'+this.value).val()+"</td>";
|
headerCode += "<th>"+$('#'+this.value).val()+"</th>";
|
||||||
fieldCode += "<td>"+$('#prefixList').val()+$('#field_'+this.value).val()+"</td>";
|
fieldCode += "<td>"+$('#prefixList').val()+$('#field_'+this.value).val()+"</td>";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
"name": "tinymce",
|
"name": "tinymce",
|
||||||
"full": "gulliver/js/tinymce/jscripts/tiny_mce/tiny_mce_src.js",
|
"full": "gulliver/js/tinymce/jscripts/tiny_mce/tiny_mce_src.js",
|
||||||
"mini": "gulliver/js/tinymce/jscripts/tiny_mce/tiny_mce_src.js",
|
"mini": "gulliver/js/tinymce/jscripts/tiny_mce/tiny_mce_src.js",
|
||||||
"minify": true
|
"minify": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"build" : true,
|
"build" : true,
|
||||||
|
|||||||
Reference in New Issue
Block a user