question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Export editor option type

See original GitHub issue

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:

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:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sbschorercommented, Sep 16, 2022

As a workaround you could write const DEFAULT_EDITOR_CONFIG: EditorComponent['init']

0reactions
Tazafcommented, Oct 27, 2022

Well I apparently did something wrong in my initial test, because the import from tinymce is now working as expected 🤷

Thanks 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found