rich text editor update
This commit is contained in:
parent
6b33fa2f66
commit
0fe7d693e4
|
@ -57,7 +57,8 @@ export class RichTextEditorComponent implements OnInit, OnChanges, OnDestroy {
|
||||||
{ name: 'H3 header', class: '', tag: 'h3' },
|
{ name: 'H3 header', class: '', tag: 'h3' },
|
||||||
{ name: 'H4 header', class: '', tag: 'h4' },
|
{ name: 'H4 header', class: '', tag: 'h4' },
|
||||||
{ name: 'H5 header', class: '', tag: 'h5' },
|
{ name: 'H5 header', class: '', tag: 'h5' },
|
||||||
{ name: 'H6 header', class: '', tag: 'h6' }
|
{ name: 'H6 header', class: '', tag: 'h6' },
|
||||||
|
{ name: 'Highlight', class: '', tag: 'mark' }
|
||||||
],
|
],
|
||||||
toolbarHiddenButtons: [
|
toolbarHiddenButtons: [
|
||||||
[
|
[
|
||||||
|
@ -66,12 +67,16 @@ export class RichTextEditorComponent implements OnInit, OnChanges, OnDestroy {
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'fontSize',
|
'fontSize',
|
||||||
// 'backgroundColor',
|
'backgroundColor',
|
||||||
// 'customClasses',
|
// 'customClasses',
|
||||||
'insertImage',
|
'insertImage',
|
||||||
'insertVideo',
|
'insertVideo',
|
||||||
// 'removeFormat',
|
// 'removeFormat',
|
||||||
'toggleEditorMode'
|
'toggleEditorMode'
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'indent',
|
||||||
|
'outdent'
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
@ -109,7 +114,7 @@ export class RichTextEditorComponent implements OnInit, OnChanges, OnDestroy {
|
||||||
this.formTouchSubscription = this.formTouchEvent
|
this.formTouchSubscription = this.formTouchEvent
|
||||||
.subscribe(
|
.subscribe(
|
||||||
next => {
|
next => {
|
||||||
if(next) {
|
if (next) {
|
||||||
this.form.markAsTouched();
|
this.form.markAsTouched();
|
||||||
this.form.updateValueAndValidity();
|
this.form.updateValueAndValidity();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue