TinyMCE tweaking

58 views
Skip to first unread message

Jeff

unread,
Mar 11, 2015, 12:27:09 AM3/11/15
to gots-d...@googlegroups.com
Where are the TinyMCE options defined? I'd like to tweak them a bit and I can't figure out where the configuration is.

Specifically, I'm trying to allow tutorial creators to select "_top" as an option. Yes, this removes people from the tutorial, but we are actually integrating GoTS into other tutorial content, so it works out.

Incidentally at first I tried to remedy this by inserting a script into app/View/Tutorials/view.ctp , but I found that while I could select the iframe itself, I couldn't get any of the content in it--elements from inside the iframe back as undefined... I'd be curious to know if there's a way to accomplish that as well.

Mike Hagedon

unread,
Mar 17, 2015, 7:24:09 PM3/17/15
to gots-d...@googlegroups.com
Hi Jeff,
They're defined in app/View/Helper/QuickhelpTinyMceHelper.php:

https://github.com/ualibraries/Guide-on-the-Side/blob/master/app/View/Helper/QuickhelpTinyMceHelper.php

You might be able to extend 'theme_advanced_link_targets' to do what you want. 

Of course, when we release a new version (very soon!), you'll have to redo your change.

Mike

Jeff

unread,
Mar 19, 2015, 1:05:34 AM3/19/15
to gots-d...@googlegroups.com
Thank you, that worked. I changed the line
     
 'theme_advanced_link_targets' => "Site (right) frame=site-frame",

to
     
'theme_advanced_link_targets' => "Site (right) frame=site-frame, Parent frame=_top",

Does "very soon" mean weeks, or months? We haven't launched anything just yet so it seems like a great time for us to update...

-Jeff

William Simpson

unread,
Mar 19, 2015, 12:52:50 PM3/19/15
to gots-d...@googlegroups.com
Jeff,

It should be more like "weeks" since we're really close to finishing the new version.  Pretty much all of the changes for the new release except for the documentation updates and a few styling things are in the master branch on Github.  If you built your installation using Git and haven't launched anything, it might make sense to checkout the master branch and run the database migrations as quite a bit has changed since 1.0-beta3.  If you're using the pre-built package, just keep an eye out and we should have a new version in the not too distant future.

-Will
Reply all
Reply to author
Forward
0 new messages