Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1172015
D89.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Sep 28, 10:20 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Mon, Sep 29, 10:20 PM (14 h, 21 m)
Engine
blob
Format
Raw Data
Handle
759516
Attached To
D89: INP-1441 - Fix JavaScript error during link editing in the CKEditor
D89.id.diff
View Options
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
Log In to Comment