mirror of
https://github.com/processwire/processwire.git
synced 2025-08-21 14:02:59 +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 widthHidden = 0; // amount of width in row occupied by hidden field(s)
|
||||||
var w = 0; // current Inputfield width
|
var w = 0; // current Inputfield width
|
||||||
var lastW = 0; // last Inputfield non-hidden 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) {
|
function consoleLog(msg, $in) {
|
||||||
if(!debug) return;
|
if(!debug) return;
|
||||||
|
File diff suppressed because one or more lines are too long
@@ -103,9 +103,12 @@
|
|||||||
var $figureCaption = null;
|
var $figureCaption = null;
|
||||||
var nodeParentName = nodeParent.$.nodeName.toUpperCase();
|
var nodeParentName = nodeParent.$.nodeName.toUpperCase();
|
||||||
var nodeGrandparentName = nodeGrandparent ? nodeGrandparent.$.nodeName.toUpperCase() : '';
|
var nodeGrandparentName = nodeGrandparent ? nodeGrandparent.$.nodeName.toUpperCase() : '';
|
||||||
var pwCkeSettings = ckeGetProcessWireConfig(editor);
|
|
||||||
|
if(typeof ckeGetProcessWireConfig != "undefined") {
|
||||||
if(pwCkeSettings && pwCkeSettings['pwAssetPageID']) page_id = pwCkeSettings['pwAssetPageID'];
|
// note: ckeGetProcessWireConfig not yet present in front-end editor
|
||||||
|
var pwCkeSettings = ckeGetProcessWireConfig(editor);
|
||||||
|
if(pwCkeSettings && pwCkeSettings['pwAssetPageID']) page_id = pwCkeSettings['pwAssetPageID'];
|
||||||
|
}
|
||||||
|
|
||||||
selection.lock();
|
selection.lock();
|
||||||
editor.lockSelection();
|
editor.lockSelection();
|
||||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user