[Building Sakai] <map> and <area> tags in FCKEditor

Sam Ottenhoff ottenhoff at longsight.com
Tue Mar 10 08:36:58 PDT 2015


This is a great use case for why you should use AntiSamy.  Without
AntiSamy, you have to modify the goodTags and badTags
in kernel-impl/src/main/java/org/sakaiproject/util/impl/FormattedTextImpl.java
and then re-compile and re-deploy.  With AntiSamy, you can modify the
security policy XML file and place it in your $TOMCAT_HOME/sakai/antisamy/
directory and then restart Sakai.



On Tue, Mar 10, 2015 at 11:32 AM, Shoji Kajita <
kajita.shoji.5z at kyoto-u.ac.jp> wrote:

> Hi there,
>
> We are trying to use <map> and <area> tags in FCK HTML Editor for
> sakai-2.9.3 but these tags are sanitized as follows:
>
> <img alt="s1" src="
> https://FQDN/access/content/group/c7dd12a1-1466-4a0d-ab2a-645eb0f4daf5/xxx.png"
> style="width: 960.0px;height: 720.0px;" usemap="#s1" />&lt;map
> name=&quot;s1&quot;&gt; &lt;area alt=&quot;rireki&quot; href=&quot;
> https://FQDN/access/content/group/xxx.doc&quot; shape=&quot;rect&quot;
> coords=&quot;296,274,356,295&quot;&gt; &lt;area alt=&quot;rei&quot;
> href=&quot;https://FQDN/access/content/group/xxx.xlsx&quot;
> shape=&quot;rect&quot; coords=&quot;355,277,375,295&quot;&gt; &lt;area
> alt=&quot;en&quot; href=&quot;http://FQDN2/wp-content/uploads/ea.docx&quot;
> shape=&quot;rect&quot; coords=&quot;207,302,400,322&quot;&gt; &lt;area
> alt=&quot;setsumei&quot; href=&quot;FQDN3/uploads/setumei.doc&quot;
> shape=&quot;rect&quot; coords=&quot;207,327,284,347&quot;&gt; &lt;area
> alt=&quot;doui&quot; href=&quot;FQDN3/uploads/douisyo_140917.doc&quot;
> shape=&quot;rect&quot; coords=&quot;465,327,544,347&quot;&gt; &lt;area
> alt=&quot;ku&quot; href=&quot;
> http://FQDN2/wp-content/uploads/ebd8.doc&quot; shape=&quot;rect&quot;
> coords=&quot;216,379,363,397&quot;&gt; &lt;area alt=&quot;ha&quot;
> href=&quot;https://FQDN/access/content/group/99.docx&quot;
> shape=&quot;rect&quot; coords=&quot;217,422,424,438&quot;&gt;
> &lt;/map&gt;</p>
>
> The AntiSamy settings are as follows:
>
> ### disable AntiSamy
> content.cleaner.use.legacy.html=true
> content.cleaner.default.low.security=true
>
> So, it is not caused by AntiSamy…
>
> Do you have any suggestions?
>
> Best regards,
> Shoji
> -----
> Shoji Kajita, Ph.D
> http://about.me/shojikajita
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20150310/6f7ce6ad/attachment.html 


More information about the sakai-dev mailing list