when I add the dhtml editor ckeditor (phpmaker2022.11) and add a <a href=“http://google.com” target=“_blank”
ckeditor removes the target so it only saves <a href="http://google.com"I tried to change the settings in
Client Scripts → Global → Page with header/footer → Client Script
$(document).on("create.editor", function(e, args) {
args.settings.toolbarGroups = [
{ name: 'clipboard', groups: [ 'undo', 'clipboard' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
{ name: 'forms', groups: [ 'forms' ] },
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
{ name: 'links', groups: [ 'links' ] },
{ name: 'insert', groups: [ 'insert' ] },
{ name: 'document', groups: [ 'document', 'doctools', 'mode' ] },
{ name: 'styles', groups: [ 'styles' ] },
{ name: 'colors', groups: [ 'colors' ] },
{ name: 'tools', groups: [ 'tools' ] },
{ name: 'others', groups: [ 'others' ] },
{ name: 'about', groups: [ 'about' ] }
];
args.settings.removeButtons = 'NewPage,Save,ExportPdf,Preview,Print,Templates,Find,Replace,SelectAll,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,Strike,Subscript,Superscript,CopyFormatting,NumberedList,BulletedList,Indent,Outdent,CreateDiv,JustifyLeft,JustifyCenter,BidiRtl,BidiLtr,Language,JustifyRight,JustifyBlock,Anchor,Image,Table,HorizontalRule,Smiley,SpecialChar,PageBreak,Iframe,Styles,Format,Font,FontSize,TextColor,BGColor,About,Blockquote,Cut,Copy,ShowBlocks';
});
Also autogrow is not working when I add;
args.settings.extraPlugins = 'autogrow';
args.settings.autoGrow_minHeight = 250;
args.settings.autoGrow_maxHeight = 600;