1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-20 21:42:23 +02:00

Fix issue processwire/processwire-issues#519 where front-edit editor w/CKEditor inline image action was not working

This commit is contained in:
Ryan Cramer
2018-03-12 09:45:03 -04:00
parent 20f02cddf9
commit afe41773d8
4 changed files with 9 additions and 6 deletions

View File

@@ -613,7 +613,7 @@ var ProcessWireAdminTheme = {
var widthHidden = 0; // amount of width in row occupied by hidden field(s)
var w = 0; // current Inputfield width
var lastW = 0; // last Inputfield non-hidden Inputfield width
var debug = true; // verbose console.log messages
var debug = false; // verbose console.log messages
function consoleLog(msg, $in) {
if(!debug) return;

File diff suppressed because one or more lines are too long

View File

@@ -103,9 +103,12 @@
var $figureCaption = null;
var nodeParentName = nodeParent.$.nodeName.toUpperCase();
var nodeGrandparentName = nodeGrandparent ? nodeGrandparent.$.nodeName.toUpperCase() : '';
var pwCkeSettings = ckeGetProcessWireConfig(editor);
if(pwCkeSettings && pwCkeSettings['pwAssetPageID']) page_id = pwCkeSettings['pwAssetPageID'];
if(typeof ckeGetProcessWireConfig != "undefined") {
// note: ckeGetProcessWireConfig not yet present in front-end editor
var pwCkeSettings = ckeGetProcessWireConfig(editor);
if(pwCkeSettings && pwCkeSettings['pwAssetPageID']) page_id = pwCkeSettings['pwAssetPageID'];
}
selection.lock();
editor.lockSelection();

File diff suppressed because one or more lines are too long