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, biapar, Willr, Ingo, swaiba, simon_w

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


Reply


2 Posts   2292 Views

Avatar
duskydesigns

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..

Avatar
swaiba

Forum Moderator, 1799 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