Hi,
Presumably you're following the Customizing the TinyMCE editor guide?
If so, I'm fairly certain you're just missing the translation (Step 3: Handling translations), you just need to add something like the following to your language files:
<?xml version="1.0" encoding="utf-8"?> <languages> <language name="English" id="en"> <tinymce> <wordlength> <wordlength_desc>Word Length</wordlength_desc> </wordlength> </tinymce> </language> </languages>
Hi there,
Thanks for your reply. I am indeed following that guide. I also looked for the language files but i couldnt find them. Where can i find these language files? What do i put as a language path? I was unable to figure this out.
That depends on your solution
But it's probably something like /Resources/LanguageFiles. In your web.config you'll find the path specified under <episerver.framework> (more details here).
My example above is a translation for the TinyMCE editor - where you are missing one. The languagepath is so you can apply localization in Episerver, right now your example will always be called "wordlength" regardless of editor language.
/Jake
This was indeed the solution to my problem! I had to add the virtual path to the web.config and create the language file according to the location of the path. After that I added the LanguagePath attribute to the class and everything is working fine now!
Thanks for your help!
Hi,
I am currently trying to implement a custom TinyMce plugin to episerver.
I've done the following so far
Added The Class to Util/Editor/TinyMCE/Plugins/wordlength/wordlength.cs
Added The JS to Util/Editor/TinyMCE/Plugins/wordlength/editor_plugin.js
The plugin is working in the editor of the CMS and is visible in the pluginmanager as you can see below.
On the propertypage the plugin is showing as a checkbox and the label is left empty
How can I get my label to say wordlength? Why is it not working?
I'm looking forward hearing from you guys!