Fix type error in rich text

pull/1/head
yflory 4 years ago
parent 1885cecaaa
commit 691aeba1c4

@ -1445,9 +1445,6 @@ define([
editor.setKeystroke( CKEDITOR.CTRL + CKEDITOR.ALT + styleKeys[tag], tag); editor.setKeystroke( CKEDITOR.CTRL + CKEDITOR.ALT + styleKeys[tag], tag);
}); });
var privateData = framework._.cpNfInner.metadataMgr.getPrivateData();
var openLinkSetting = Util.find(privateData, ['settings', 'pad', 'openLink']);
Links.init(Ckeditor, editor, openLinkSetting);
}).nThen(function() { }).nThen(function() {
// Move ckeditor parts to have a structure like the other apps // Move ckeditor parts to have a structure like the other apps
var $contentContainer = $('#cke_1_contents'); var $contentContainer = $('#cke_1_contents');
@ -1491,6 +1488,9 @@ define([
}).nThen(waitFor()); }).nThen(waitFor());
}).nThen(function(waitFor) { }).nThen(function(waitFor) {
var privateData = framework._.cpNfInner.metadataMgr.getPrivateData();
var openLinkSetting = Util.find(privateData, ['settings', 'pad', 'openLink']);
Links.init(Ckeditor, editor, openLinkSetting);
require(['/pad/csp.js'], waitFor()); require(['/pad/csp.js'], waitFor());
}).nThen(function( /*waitFor*/ ) { }).nThen(function( /*waitFor*/ ) {

Loading…
Cancel
Save