Filtering out htmlentities in rich text field
This commit is contained in:
@@ -44,6 +44,7 @@ export class RichtextTypeComponent extends FormlyFieldInput implements OnInit {
|
||||
autoresize_bottom_margin: 0,
|
||||
body_class: "contract-body",
|
||||
content_style: ".contract-body { font-family: 'Century Schoolbook', 'sans-serif' }",
|
||||
entity_encoding: 'raw',
|
||||
paste_preprocess: function (plugin: any, args: any) {
|
||||
console.log(args.content)
|
||||
let container = document.createElement('div');
|
||||
@@ -80,7 +81,7 @@ export class RichtextTypeComponent extends FormlyFieldInput implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
getInitConfig() {
|
||||
getInitConfig(): any {
|
||||
return {...this.init_common, ...( this.multiline ? this.init_multiline : this.init_singleline)};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user