PKP Bugzilla – Bug 5882
Add super- and subscript functionality to TinyMCE
Last modified: 2012-12-28 12:45:10 PST
It should be possible to enable superscript and subscript functionality in TinyMCE. Jay on the forums (http://pkp.sfu.ca/support/forum/viewtopic.php?f=9&t=6527&p=25115#p25115) has pointed out that there's often a need, in biology journals, to super- or subscript items. I've posted this against 2.3.3; I'm assuming it's not a huge fix. Any thoughts (probably Matt in particular)?
James, this should be as easy as adding 'sup' and 'sub' to the list of plugins in plugins/generic/tinymce/TinyMCEPlugin.inc.php::callback(). Could you test that out?
Yeah, that works great! Do we have any policy on how we make changes like this, eg. should I just tell Jay how to do this, or do you think it's worth adding?
My only concern was that the button bar was already full--Are you sure adding those two doesn't conceal any of the other plugins (i.e., does it resize the whole tinyMCE editor to fit the new buttons)? If not, then we might as well commit it.
Hrm ... it definitely does stretch the field wider than it was, in some cases at least. I'm a little leery on how this might affect fields here and there that might not have the room to spare, at least at this late a date -- I'll move this to 2.3.4, and will respond on the forum as to how to otherwise fix.
Low priority and has cosmetic implications; deferring to post-UI overhaul.