edit/page: hide type input on link dialog
authorMischa POSLAWSKY <perl@shiar.org>
Thu, 9 Aug 2018 12:29:18 +0000 (14:29 +0200)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 10 Aug 2018 23:27:44 +0000 (01:27 +0200)
Improved implementation of commit v3.0-24-g48ed0c2512 (2018-06-16)
[edit: omit type input from link dialog] without breaking url saves.

edit/page.js

index 45f0104e022d8136b96efadbe5f754cb8a3ce42e..2fd9d353666f07ad8eca760431882663e6158c8e 100644 (file)
@@ -58,8 +58,8 @@ CKEDITOR.on('dialogDefinition', function (event) {
                infoTab.get('txtCellPad').default = '';
                break;
        case 'link':
-               //TODO: remove unneeded widgets from the Link Info tab
-               var infotab = event.data.definition.getContents('info');
+               // hide unneeded widgets from the Link Info tab
+               event.data.definition.getContents('info').get('linkType').hidden = true;
                break;
        }
 });