Export editor option type
See original GitHub issueIs 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:
import { EditorOptions } from '@tinymce/tinymce-angular';
export const DEFAULT_EDITOR_CONFIG: EditorOptions = {
height: 300,
menubar: false,
file_picker_types: 'image',
file_picker_callback: filePickerCallback,
plugins: ['advlist', 'help', 'wordcount'],
toolbar: 'undo redo'
};
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Editing the Export File | iFIX 6.1 Documentation | GE Digital
As you edit the export file, use the following guidelines: ... Confirm the block type matches one of the types listed in the...
Read more >Editor UI Exported Methods And Properties - PQINA
The Markup editor and the editor Plugins export their own locale objects. Other languages can be imported from the package/locale folder.
Read more >How to save and export files in Adobe Audition CC
Export to OMF. In the Multitrack Editor, choose File > Export > OMF. Specify a filename and location. Set the following options: Sample...
Read more >Export photos, videos, slideshows, and memories in Photos ...
In the Photos app on your Mac, select the item you want to export. Choose File > Export > Export [number] Photos. Click...
Read more >Trying to use export d.ts typings with monaco #276 - GitHub
When I go to the editor, and try to import {Dog} from 'dog'; the dog module is not found. Using module types worked...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
As a workaround you could write
const DEFAULT_EDITOR_CONFIG: EditorComponent['init']
Well I apparently did something wrong in my initial test, because the import from
tinymce
is now working as expected 🤷Thanks 👍