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

rygar
 
Remo replied on at Permalink Reply
Remo
Building a plugin for TinyMCE is very easy.. But wouldn't it be better to post this question somewhere at the tinymce forums? I'm sure they have more experience with it..

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
rygar replied on at Permalink Reply
rygar
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.
ryan replied on at Permalink Reply
ryan
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.
ryan replied on at Permalink Reply
ryan
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.
rygar replied on at Permalink Reply
rygar
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!