Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Changing WYSIWYG editor to do rel="external" instead of target="_blank"

Go to End

2 Posts   2441 Views


Community Member, 15 Posts

14 February 2011 at 3:05am

Hi all,

I'm trying to make my Silverstripe theme XHTML Strict W3C compliant. However _target is not allowed, the easy fix for this is to change this to rel="external" and let a js do the legwork. However i have to change the way the WYSIWYG editor adds external pages. I have to change that from _blank to rel=external.

Does anyone know where to find the line to edit this, i have checked around and found some JS files wich did some of the WYSIWYG code but couldnt find it so far..


Forum Moderator, 1848 Posts

14 February 2011 at 5:46am

Could be in C:\wamp\www\aoa\sapphire\javascript\tiny_mce_improvements.js
I'd advise searching the files, for example with textpad...

Search -> find in files
find "_blank"
in files "*.php *.ss *.js *.css"
in folder "C:\wamp\www\aoa\sapphire"

gives me loads of results, just forwarded the one that seems most likely