tinymce-angular icon indicating copy to clipboard operation
tinymce-angular copied to clipboard

toolbar_mode seems now type ToolbarMode and not string anymore?

Open Martin-Eckleben opened this issue 2 years ago • 1 comments

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/[email protected]

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

Martin-Eckleben avatar Sep 09 '22 09:09 Martin-Eckleben

Ref: INT-3007

exalate-issue-sync[bot] avatar Sep 09 '22 09:09 exalate-issue-sync[bot]

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

jscasca avatar Oct 21 '22 06:10 jscasca

Closing due to lack of activity

jscasca avatar Nov 03 '22 23:11 jscasca

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

dderakhshani avatar Nov 04 '22 19:11 dderakhshani

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.

muberraduman avatar Dec 05 '23 16:12 muberraduman