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,
|
autoresize_bottom_margin: 0,
|
||||||
body_class: "contract-body",
|
body_class: "contract-body",
|
||||||
content_style: ".contract-body { font-family: 'Century Schoolbook', 'sans-serif' }",
|
content_style: ".contract-body { font-family: 'Century Schoolbook', 'sans-serif' }",
|
||||||
|
entity_encoding: 'raw',
|
||||||
paste_preprocess: function (plugin: any, args: any) {
|
paste_preprocess: function (plugin: any, args: any) {
|
||||||
console.log(args.content)
|
console.log(args.content)
|
||||||
let container = document.createElement('div');
|
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)};
|
return {...this.init_common, ...( this.multiline ? this.init_multiline : this.init_singleline)};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user