Peter Knight Posted June 9, 2015 Share Posted June 9, 2015 Morning (in my part of the world) I want to manually add a usemap to an existing image in CK Editor turning this: <img alt="" src="/site/assets/files/1151/diagram.gif"> into this <img usemap="#diagram" alt="" src="/site/assets/files/1151/diagram.gif"> When I save my page, the usemap is being stripped out. Having experimented with Content Type, ACF and HTML Purifiers and then investigating the Image field itself, I'm not having much look. A search for the forum and Google turns up nothing. As I am porting across a 6 year old MODX site, I wondered if ImageMaps are no longer really used or am I overlooking a setting? Link to comment Share on other sites More sharing options...
adrian Posted June 9, 2015 Share Posted June 9, 2015 Peter, Some things you'll probably need to add: area[!shape,!coords,!href,!target,alt] map[!name] img[alt,!src,width,height,border,usemap] Also, this imagemap plugin for CkEditor might be useful: http://www.martinezdelizarrondo.com/ckplugins/imagemaps.demo/ Link to comment Share on other sites More sharing options...
Peter Knight Posted June 10, 2015 Author Share Posted June 10, 2015 No joy Adrian. I added those lines to the Extra Allowed Content field. Having Googled the CK Editor forums, it does seem like it should have worked. Link to comment Share on other sites More sharing options...
adrian Posted June 10, 2015 Share Posted June 10, 2015 Those settings work for me, but only if ACF and HTML Purifier are also off. Link to comment Share on other sites More sharing options...
Peter Knight Posted June 10, 2015 Author Share Posted June 10, 2015 Might be worth a shot. Only issue is my client is a professional services firm and prone to pasting all sorts of crud into text fields. 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