-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Ok, I'm a n00b on TinyMCE (and JavaScript). The instructions need a little more detail.
I was able to get these things done, so I see the plugin's output:
Extract the whole s_textmetrics directory into your TinyMCE plugins directory,
Make sure the “s_textmetrics/text-utils.js” file is included in your page (this file contains the code that actually generates the metrics)
Register the s_textmetrics plugin with your TinyMCE editor by adding the “s_textmetrics” literal to your plugins string,
But there should be a line in tinyMCE.init for:
s_textmetrics_on : "true"
Or the data doesn't display!
Optional – Add the “toggle_metrics” button to one of your button bars – you can omit this if you don’t want your users to be able to toggle the metrics on and off
Got it.
Make sure your stylesheet has entries for the .mce_toggle_metrics and .metrics classes in order to properly style the toggle button & the metrics bar. An example is included in the ui.css file included with the plugin.
Actually it appears that one should remove the .scriptitoSkin as well as the img/ from img/sum.png and it works!
Metadata
Metadata
Assignees
Labels
No labels