SaaS CMS has officially launched! Learn more now.

How to programmatically add buttons to TinyMCE

Vote:
 

HI!

 

I want to add the table tools (insert table delte table etc) to a Xhtml field (TinyMCE) programmatically in order to ensure that the same tools are available across all environments. The only documentation I have been able to find is:

http://cjsharp.com/blog/2013/04/15/how-to-add-valid-elements-like-iframes-to-tinymce-in-episerver-7/

which only describes how to avoid that <iframe> is deleted when saving.

 

Does anyone have experience adding tools (built-in tools like the table-designer) in EPiServer 7.5?

 

Best regards

Jesper

#81095
Feb 10, 2014 11:19
Vote:
 

http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-CMS/75/Editing/Customizing-the-TinyMCE-editor/

Check for `TinyMCEPluginButton'.

Also I've been working on ImageMap plugin refresh - so you can grab some code as well.

http://www.tech-fellow.net/2013/04/episerver-imagemap-revisited/

#81101
Edited, Feb 10, 2014 12:12
Vote:
 

i'm also intresting in creating a plugin for inserting snippets or templates in editor.

The usual templates plugin for tinymce does not seem to me included in EPi Framework.

 

The problem for me is that it's unclear how the javascript for the plugin should look like. 
I took a look at Valdis plugin and think I'll steal som ideas from there  :)

#81360
Feb 14, 2014 16:42
Vote:
 

Jonas - feel free, it's open sourced under coderesort anyway :)

#81361
Feb 14, 2014 16:49
Vote:
 

Hi Jonas,

Did you end up getting the templates plugin installed/working? I've been able to add the plugin and button to the editor following the guide in the link above, however I can't work out how to define the .htm templates or snippets for it to pick from.

http://world.episerver.com/forum/developer-forum/-EPiServer-75-CMS/Thread-Container/2015/12/tinymce-template-plugin/

Thanks

Mark

#142161
Dec 03, 2015 4:28
* 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.