mirror of https://github.com/gophish/gophish
Added the CKEditor link dialog fixes to the email templates
parent
ea97d6257d
commit
191ec6e436
File diff suppressed because one or more lines are too long
|
@ -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()
|
||||||
|
|
||||||
})
|
})
|
Loading…
Reference in New Issue