Closed ondrejchmelar closed 10 months ago
Ref: INT-2895
Seems to work ok in sandbox, will have to investigate what is different in my project.
Setting angularCompilerOptions.strictTemplates=false
makes it work but is far from ideal.
I managed to resolve this by using the type definition for EditorOptions from /src/main/ts/editor/editor.component.ts in my code as follows...
public tinymceInit: Parameters<TinyMCE['init']>[0] = {
entity_encoding: 'raw',
newline_behavior: 'linebreak'
};
As @digime99 stated, you should have your config
property typed using the correct options type. In TinyMCE 6 it's called TinyMCE.EditorOptions
.
What is the current behavior? When I add
entity_encoding: 'raw'
to my config, I get a compiler error.Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar.
<editor *ngIf="showFull" [init]="config" [formControl]="control"></editor>
Editor is working, until I add
entity_encoding: 'raw'
toconfig
.What is the expected behavior? Should set entity_encoding to
raw
.Which versions of TinyMCE/TinyMCE-Angular, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or TinyMCE-Angular?