diff --git a/js/link/plugin.js b/js/link/plugin.js index f4b0ff08f41bd7c3dd3c85f742d0cbf587d8c242..76a00513f22454641a7717e79fd21e74461eea87 100644 --- a/js/link/plugin.js +++ b/js/link/plugin.js @@ -15,6 +15,10 @@ hidpi: true, // %REMOVE_LINE_CORE% onLoad: function() { + // Add the CSS styles for anchor placeholders. + var iconPath = CKEDITOR.getUrl( this.path + 'images' + ( CKEDITOR.env.hidpi ? '/hidpi' : '' ) + '/anchor.png' ), + baseStyle = 'background:url(' + iconPath + ') no-repeat %1 center;border:1px dotted #00f;background-size:16px;'; + var template = '.%2 a.cke_anchor,' + '.%2 a.cke_anchor_empty' + ',.cke_editable.%2 a[name]' + diff --git a/js/unlink/plugin.js b/js/unlink/plugin.js index 935382674c53ed2e886509c22090767cd03c674f..26401c2f56c700090ad82487139f5b04c3b36092 100644 --- a/js/unlink/plugin.js +++ b/js/unlink/plugin.js @@ -15,6 +15,10 @@ hidpi: true, // %REMOVE_LINE_CORE% onLoad: function() { + // Add the CSS styles for anchor placeholders. + var iconPath = CKEDITOR.getUrl( this.path + 'images' + ( CKEDITOR.env.hidpi ? '/hidpi' : '' ) + '/anchor.png' ), + baseStyle = 'background:url(' + iconPath + ') no-repeat %1 center;border:1px dotted #00f;background-size:16px;'; + var template = '.%2 a.cke_anchor,' + '.%2 a.cke_anchor_empty' + ',.cke_editable.%2 a[name]' +