Page MenuHomeIn-Portal Phabricator

D89.id326.diff
No OneTemporary

File Metadata

Created
Wed, Feb 26, 9:02 AM

D89.id326.diff

Index: branches/5.2.x/core/ckeditor/plugins/my_link/plugin.js
===================================================================
--- branches/5.2.x/core/ckeditor/plugins/my_link/plugin.js
+++ branches/5.2.x/core/ckeditor/plugins/my_link/plugin.js
@@ -359,7 +359,7 @@
},
setup : function( data ) {
var $me = this;
- var $link_url = data.url.url;
+ var $link_url = data.url ? data.url.url : '';
var $ajax_url = CKEDITOR.basePath.replace( /core.*$/, 'admin/index.php?events[fck]=OnLoadCmsTree&admin=1' );
var $internal_page_anchors = this.getDialog().getContentElement( 'info', 'internalPageAnchors' );
@@ -388,7 +388,7 @@
if ( $link_url && $link_url.match(cms_page + '$') ) {
$me.setValue(cms_page);
- load_page_anchors( cms_page, this.getDialog() );
+ load_page_anchors( cms_page, $me.getDialog() );
}
}
);
@@ -700,4 +700,4 @@
}
);
}
-)();
\ No newline at end of file
+)();

Event Timeline