Try our conversational search powered by Generative AI!

epi_page_context in TinyMCE



TL;DR: Is it possible to get the Episerver context in a custom TinyMCE plugin?

I'm trying to migrate a custom plugin in TinyMCE after upgrading to Episerver 11 and TinyMCE 2.8.0. 

The plugin uses epi_page_context which is available but empty in editor.settings after upgrading. In Episerver 10, SetPageDataContext could be used to set the context based on the supplied page

Are there any equivalent methods of getting the Episerver context in a custom TinyMCE plugin? 

Jun 04, 2019 14:52


Have you tried just using the _ContextMixin?

], function (    
) {

    tinymce.PluginManager.add("custom-plugin", function (editor) {
        var context = new _ContextMixin();

        when(context.getCurrentContext()).then(function (content) {
            //TODO: custom code
        return {
            getMetadata: function () {
                return {
                    name: "custom plugin",
                    url: ""
Nov 21, 2019 12:42
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.