Try our conversational search powered by Generative AI!

How to get translation text for button title in TinyMCE Plugin?



I create sample button to add to TinyMce editor. Could you please to enlighten me how to get translation text for button title from resource file?

I'm using EPiServer 11.9.2, EPiServer.Cms.TinyMce 2.6.0

//Path: Business/Initialization/MyAwesomeTinyMcePluginInitialization.cs
public class MyAwesomeTinyMcePluginInitialization : IConfigurableModule
	public void Initialize(InitializationEngine context){}

	public void Uninitialize(InitializationEngine context){}

	public void ConfigureContainer(ServiceConfigurationContext context)
		context.Services.Configure(config =>
			config.Default().AddExternalPlugin("myawesometinymceplugin", "/ClientResources/Scripts/Editors/myawesometinymceplugin.js")
//File path: /ClientResources/Scripts/Editors/myawesometinymceplugin.js
    function (editor) {
        // Register buttons
                title: "myawesometinymceplugin.myawesometinymceplugin_desc",
                cmd: "mceMyAwesomeTinyMcePlugin",
                image: "/ClientResources/Images/icons/myawesometinymcepluginicon.png",
                onPostRender: function () {

            function () {

        return {
            getMetadata: function () {
                return {
                    longname: "my awesome tiny mce plugin",
                    author: "Me",
                    version: "1.0"

Path: Resources/LanguageFiles/myawesometinymceplugin.xml

        Create a hightlight Link (Ctrl+P)
        Here you can create a hightlight Link

Path: web.config

Jul 25, 2018 9:37
* 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.