Closed lostinthemist closed 8 months ago
Ref: INT-3094
Looks like a typescript issue. You need to check where are you getting your RawEditorOptions
types and make sure you have the correct version with the correct types
What should help is typing your DescriptionTextEditor
prop. So like: DescriptionTextEditor: EditorComponent['init']
Because at the moment Typescript is complaining of a mismatched type in toolbar_location
.
I am using TinyMCE text editor in Angular project. I have followed all steps in TinyMCE Angular integration quick start guide and used TinyMCE Self-hosted method. So far following these steps went nice and fairly simple text editor pops up in my project as it should. My project uses the version "@tinymce/tinymce-angular": "^7.0.0" and Angular itself is version 15.
I am having a problem with toolbar location. I need to set it below the text editor, not above as it is by default. The guide tells me to include toolbar_location: 'bottom' in the options. But if I do that I get an error.
HTML template:
<editor [init]="DescriptionTextEditor"></editor>
Typescript file:
If I save the file as above, I get an error:
If I remove toolbar_location: 'bottom' remove the options in TS file then text editor works fine. Only adding this feature breaks it.