Quantcast
Channel: General developer forum
Viewing all articles
Browse latest Browse all 37675

Re: TinyMCE plugin tutorial for dummies - documentation?

$
0
0
by Justin Hunt.  

I have written a few plugins for TinyMCE on Moodle now, and the best thing by far to check out the existing plugins to see how they achieve things. I would look at this one, because it is quite simple:
https://moodle.org/plugins/view.php?plugin=tinymce_skim

I wrote a template, more for myself than anything. If you would like to use it as part of your tutorial, or as an add on thats fine.  It certainly isn't perfect but it will get you up and running.

To use it,  do a search and replace on the following upper case strings in each file to turn the template into your plugin. (You should do TEMPLATE_READABLE_NAME before TEMPLATE obviously. Sorry it really was just for me.) And make sure the folder is named correctly also.

AUTHOR => Your name
TEMPLATE_READABLE_NAME => The human readable name of the plugin
TEMPLATE => the plugin component name after tinymce_ eg set to slinky for tinymce_slinky
 
 
 
Good luck

Viewing all articles
Browse latest Browse all 37675

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>