21278 Posts in 5728 Topics by 2599 members
General Questions
SilverStripe Forums » General Questions » Changing WYSIWYG editor to do rel="external" instead of target="_blank"
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 2101 Views |
-
Changing WYSIWYG editor to do rel="external" instead of target="_blank"

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..
-
Re: Changing WYSIWYG editor to do rel="external" instead of target="_blank"

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
| 2101 Views | ||
|
Page:
1
|
Go to Top |


