Update documentation to include custom plugin example
See original GitHub issueOverview
I am working on a react application and am using this wrapper to integrate tinymce as an editor. I have written a simple plugin that I would like to add to the editor.
The tinymce documentation shows how to include a custom plugin using the PluginManager.add
function.
How do I add my custom plugin using this wrapper?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Developing Custom Gradle Plugins
In our examples, we are going to use Java as the implementation language for standalone plugin project and Groovy or Kotlin in the...
Read more >Creating a Basic Plugin - CKEditor 4 Documentation
Learn how to install, integrate and configure CKEditor 4. More complex aspects, like creating plugins, widgets and skins are explained here, too.
Read more >Create a plugin for TinyMCE | Docs
A short introduction to creating plugins for TinyMCE along with an example ... If a custom plugin includes any custom UI created using...
Read more >How to Create a Custom WordPress Plugin From Scratch
In this guide, I'll show you how to create a custom WordPress plugin. Also, you'll learn how to use best practices in WordPress...
Read more >Custom plugins - Budibase Docs
You can import a plugin by pressing the. Add plugin button. This will display a dialog box from which you choose a Source....
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 FreeTop 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
Top GitHub Comments
@vctormb When TinyMCE(not the editor) is loaded a global object called
tinymce
is created. That is the object that’s being refered to in this example. If you make sure thattinymce.PluginManager.add('customPlugin', (editor) => { /* Do stuff here */ });
is being run before the editor is being set up, that is before this part -the editor instance will load the plugin(run the code) previously added to the global
tinymce
object. Doing it this way with the PluginManager ensures that everything in the editor instance is being set up in the right order.That’s how I’m creating a custom plugin.
I don’t even know if this is a correct way to do it. That’s the only way that I’ve found that works good.