ImperialTrader Posted January 23, 2015 Share Posted January 23, 2015 (edited) Hello I would like to add iframe as HTML code in CMS page and to open in a parent window Example: <iframe src="http://google.com/" width="100%" height="400" frameborder="0" scrolling="no" target="_parent"></iframe> When I write the code above and press OK .. I see (target="_parent") has been removed automatic I disabled the "HTML Purifier" from Preferences -> General .. Also I still couldn't add this code! How can I do that..? Edited January 23, 2015 by ImperialTrader (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 24, 2015 Share Posted January 24, 2015 its because of tinymce, you have to extend it 1 Link to comment Share on other sites More sharing options...
ImperialTrader Posted January 24, 2015 Author Share Posted January 24, 2015 Got it .. thank you Link to comment Share on other sites More sharing options...
shniurs Posted January 31, 2015 Share Posted January 31, 2015 its because of tinymce, you have to extend it Hi vekia, I've followed your tutorial and I see the extended text editor, though when adding a target="_parent" to the link and saving the CMS page - it is being removed. Any thoughts on this? Link to comment Share on other sites More sharing options...
vekia Posted January 31, 2015 Share Posted January 31, 2015 Hi vekia, I've followed your tutorial and I see the extended text editor, though when adding a target="_parent" to the link and saving the CMS page - it is being removed. Any thoughts on this? hello in my guide you can find this line: valid_children: "+body[style|script],pre[script|div|p|br|span|img|style|h1|h2|h3|h4|h5],*[*]", add there target valid_children: "+body[style|script|target],pre[script|div|p|br|span|img|style|h1|h2|h3|h4|h5],*[*]", should work Link to comment Share on other sites More sharing options...
shniurs Posted January 31, 2015 Share Posted January 31, 2015 Thanks! It works now, though I noticed HTML Purifier was ON, probably causing target tag to remove after saving. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now