tinymce / tinymce-angular

Official TinyMCE Angular Component
MIT License
320 stars 92 forks source link

toolbar_mode seems now type ToolbarMode and not string anymore? #316

Closed Martin-Eckleben closed 1 year ago

Martin-Eckleben commented 1 year ago

What is the current behavior?

After updating to Angular 13 and "@tinymce/tinymce-angular": "6.0.0" toolbar_mode:'wrap' seems to be of type ToolbarMode and not string anymore?
(can't find a type ToolbarMode anywhere :/ )

image

image

Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar.

Unfortunately trying to create a minimal example did not produce the same result.
That leads me to believe that the mistake is on my side.
But maybe someone still has a clue for me?
Then others with the same problem could read it later. Maybe it's even obvious / trivial to someone.

If so - thank you for your time!

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?

Tested with Firefox. @tinymce/tinymce-angular@6.0.0

It worked with @tinymce/tinymce-angular": "^4.2.4" and Angular 12 before.

exalate-issue-sync[bot] commented 1 year ago

Ref: INT-3007

jscasca commented 1 year ago

If creating a replication case failed, could it be that the TinyMCE types that you were using at the time were outdated?

jscasca commented 1 year ago

Closing due to lack of activity

dderakhshani commented 1 year ago

I have a same exact problem. I can not find definition of ToolbarMode and RawEditorOptions anywhere.

muberraduman commented 7 months ago

I have the same problem with Angular 16 and tinymce 6.7.0 , if I wnat to use toolbar_mode it gives me error saying: is not assignable to type 'RawEditorOptions'. Types of property 'toolbar_mode' are incompatible. Type 'string' is not assignable to type 'ToolbarMode'. Please point me in the right direction.

Ok, on a second attemp, a workaround for me was: toolbar_mode: 'floating' as any It would not be a correct way though.