I'm use the latest version of 'ngx-editor' in my Angular App, but when I use inline style in the div
of content, it's not showing correctly. I mean, ngx-editor remove that style in the wysiwyg editor.
I've been try with this example below.
app.component.ts
// my typescript
const content = `
<div style="background: orange; display: flex; width: 100%; height: 64px">
Example text with example custom container with inline style
</div>
<div style="background: #000000; width: 100%; height: 30px; text-align: center">
Example footer
</div>
`
this.formGroup = this.formBuilder.group({
content: [toDoc(content)],
});
app.component.html
<div class="row">
<div class="col-12">
<form [formGroup]="formGroup">
<ngx-editor formControlName="content"></ngx-editor>
<button class="btn btn-primary btn-sm" (click)="doSubmit()">Submit</button>
</form>
</div>
</div>
But when I click the submit button and console that result, I don't get that inline style.
Maybe, someone now how to use inline style on the content of ngx-editor. Thanks for your help.