Added the CKEditor link dialog fixes to the email templates

pull/1334/head
Jordan Wright 2018-12-27 15:04:24 -06:00
parent ea97d6257d
commit 191ec6e436
2 changed files with 16 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -388,6 +388,21 @@ $(document).ready(function () {
$("#importEmailModal").on('hidden.bs.modal', function (event) { $("#importEmailModal").on('hidden.bs.modal', function (event) {
$("#email_content").val("") $("#email_content").val("")
}) })
CKEDITOR.on('dialogDefinition', function (ev) {
// Take the dialog name and its definition from the event data.
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
// Check if the definition is from the dialog window you are interested in (the "Link" dialog window).
if (dialogName == 'link') {
dialogDefinition.minWidth = 500
dialogDefinition.minHeight = 100
// Remove the linkType field
var infoTab = dialogDefinition.getContents('info');
infoTab.get('linkType').hidden = true;
}
});
load() load()
}) })