v14 - TinyMCE premium pro key
m
Has any one a good example on how to add and configure TinyMCE in Umbraco v14? - how to add a premium Key - how to add plugins to TinyMCE settings
h
Pretty sure someone posted about this the other day
m
Cool - I will try to search for it
But how do I add the Key to the configuration?
j
The configuration for the Rich Text Editor has moved to a client extension type called "tinyMcePlugin". Specifically for the premium plugins, we are still preparing the documentation article on how to do that, but it will involve setting up a tinyMcePlugin and loading the extra script needed for premium plugins through that.
Essentially what V13 did was load an extra script off of Tiny's CDN when you entered the API key. That enables any Tiny instance to load premium plugins. The rest is simply about configuring Tinymce and instruct it which plugins to load.
b
@Jacob Overgaard any updates on this?
j
b
@Jacob Overgaard Yes, and that is awesome; we have added two different plugins, and they are working. However, we are struggling with how to add a configuration to the TinyMCE editor itself. For example, I want to add keep_styles: false as a configuration option. Where should I implement this configuration?
j
You can add that in the meta object of your extension, just like the article explains for the powerpaste options:
Copy code
"meta": {
                "config": {
                    "plugins": ["powerpaste"],
                    "powerpaste_allow_local_images": "true",
                    "powerpaste_word_import": "clean"
                }
            }
add
"keep_styles": false
to the config list
b
@Jacob Overgaard I just figured it out and then you posted it 🙂 From the documentation I did not understand that I could add *normal * configuration there. Thanx
j
glad you were able to figure it out 💪
m
Glad to know about it, thanks team!
29 Views