From 7120495f8a42528b9338639db3d70341edc33e9c Mon Sep 17 00:00:00 2001 From: Jan Wennrich <jan.wennrich@pcsg.de> Date: Thu, 12 Sep 2019 12:56:04 +0200 Subject: [PATCH] feat: turns link-dialog relation-input to a select-input (#28) --- bin/Editor.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/bin/Editor.js b/bin/Editor.js index a1444ab..4e2de98 100644 --- a/bin/Editor.js +++ b/bin/Editor.js @@ -829,6 +829,27 @@ define('package/quiqqer/ckeditor4/bin/Editor', [ oldOnShow = dialogDefinition.onShow; + // Turn "relation" text-input to a select-input (quiqqer/ckeditor4#28) + var RelationInput = dialogDefinition.getContents("advanced").get('advRel'); + + RelationInput.type = 'select'; + RelationInput.items = [ + ['alternate'], + ['author'], + ['bookmark'], + ['external'], + ['help'], + ['license'], + ['next'], + ['nofollow'], + ['noreferrer'], + ['noopener'], + ['prev'], + ['search'], + ['tag'] + ]; + + // Get a reference to the "Link Info" tab. dialogDefinition.onShow = function () { oldOnShow.bind(this)(); -- GitLab