Custom tinyMCE Plugin
Permalink
Hi guys,
I'm trying to create a custom plugin for the tinyMCE WYSIWYG editor and I'm kinda stuck.
I just want to allow a user to wrap a selected word in a commonly used snippet of code to create an inline tooltip without going into HTML view and adding it by hand. I've found the tiny_mce folder with the plugin files, but when I make a change to an existing plugin or try to create my own nothing seems to "stick".
I have some familiarity with creating/manipulating plugin's for these js editors, but I can't seem to get anything to work.
Any thoughts? Am I just looking in the wrong place or am I way off I wonder?
Thanks,
ry
I'm trying to create a custom plugin for the tinyMCE WYSIWYG editor and I'm kinda stuck.
I just want to allow a user to wrap a selected word in a commonly used snippet of code to create an inline tooltip without going into HTML view and adding it by hand. I've found the tiny_mce folder with the plugin files, but when I make a change to an existing plugin or try to create my own nothing seems to "stick".
I have some familiarity with creating/manipulating plugin's for these js editors, but I can't seem to get anything to work.
Any thoughts? Am I just looking in the wrong place or am I way off I wonder?
Thanks,
ry
Thanks for the link, that wiki is super helpful.
Just to clarify, I'm OK creating the plugin I just don't know where exactly to place it in C5 to get it picked up by the editor. (Also, I'm aware it will require me to make a custom toolbar as well.)
I've tried placing it in here:
/concrete/js/tiny_mce/plugins/<my_plugin>
and
/concrete/js/tiny_mce_309/plugins/<my_plugin>
but no joy.
I'm sure it's something silly that I'm missing, just can't see the forest through the trees at the moment.
Just to clarify, I'm OK creating the plugin I just don't know where exactly to place it in C5 to get it picked up by the editor. (Also, I'm aware it will require me to make a custom toolbar as well.)
I've tried placing it in here:
/concrete/js/tiny_mce/plugins/<my_plugin>
and
/concrete/js/tiny_mce_309/plugins/<my_plugin>
but no joy.
I'm sure it's something silly that I'm missing, just can't see the forest through the trees at the moment.
I seem to remember that when I was originally adapting tinymce for concrete that I ran into some stubborn caching that wouldn't clear with the normal "hard" refreshes. Try clearing your cache completely, then refresh.
You also may want to try getting your plugin working without concrete in the mix. Just use one of the sample pages from tinymce and refresh it locally while your developing. Then once that's in a spot you like it, pop it into c5.
After fully clearing my browser cache I was able to see the modifications to the editor. Why didn't start there in the first place? I have no idea, but thanks a lot!
Just look at this example:http://wiki.moxiecode.com/index.php/TinyMCE:Create_plugin/3.x...
Their wiki was a bit confusing for me at the beginning but if you take a few minutes it's not too difficult to find the information you need to build a plugin