Closed Tazaf closed 1 year ago
Ref: INT-2997
As a workaround you could write const DEFAULT_EDITOR_CONFIG: EditorComponent['init']
You can import all the Editor
types from tinymce
. E.g: import { RawEditorSettings } from 'tinymce';
You can import all the
Editor
types fromtinymce
. E.g:import { RawEditorSettings } from 'tinymce';
Hum... tried that, but tinymce
doesn't seem to be something I can import
from. At least that's what my IDE tells me.
What versions are you using? The @tinymce/tinymce-angular
should include tinymce
so all types are available. Older versions did not include that and you would have to manually include the types.
Here's an example: https://codesandbox.io/s/brave-pascal-74g1l5?file=/src/app/app.component.ts
Well I apparently did something wrong in my initial test, because the import from tinymce
is now working as expected 🤷
Thanks 👍
Is your feature request related to a problem? Please describe. The type of the editor component's
init
property is currently not exported by this package, which prevent declaring a global constant configuration that could then be imported and used in other custom components.Describe the solution you'd like I'd like to be able to create constant typed as editor options: