tinymce / tinymce-react

Offical TinyMCE React component
MIT License
959 stars 156 forks source link

Update Editor.tsx #434

Closed philipp985 closed 1 year ago

philipp985 commented 1 year ago

Hello, for my use case it would be beneficial if the EditorOptions could be exported. By that it would be easier possible to maintain my custom set of options for multiple editors somewhere centrally.

tiny-james commented 1 year ago

TinyMCE 5 exports EditorSettings and TinyMCE 6 exports EditorOptions so they are exported already. The reason for the type here is that we need to support both editor versions and use the same types in our interface for the version in use.

This is an implementation detail that we will likely want to remove in future so we will not be exporting the type. Feel free to copy that line of code into your codebase if it is useful to you.