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:
@@ -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
@@ -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
Reference in New Issue
Block a user