From e3966e627351296b5688d3168419d38f3d71477a Mon Sep 17 00:00:00 2001 From: ebremner <ebremner@uwaterloo.ca> Date: Thu, 27 Apr 2023 14:14:36 -0400 Subject: [PATCH] Issue 3356944: fixing undefined variable so that ckeditor plugin settings load --- js/link/plugin.js | 4 ++++ js/unlink/plugin.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/js/link/plugin.js b/js/link/plugin.js index f4b0ff0..76a0051 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 9353826..26401c2 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]' + -- GitLab