# Allowing imagemaps

**URL:** <https://talk.getindico.io/t/allowing-imagemaps/2344>\
**Category:** Development\
**Created:** [August 2, 2021, 6:51am UTC](https://talk.getindico.io/t/allowing-imagemaps/2344 "2021-08-02T06:51:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpedersen2](https://talk.getindico.io/user_avatar/talk.getindico.io/bpedersen2/32/25_2.png) [@bpedersen2](https://talk.getindico.io/u/bpedersen2)\
**Post date:** [August 2, 2021, 6:51am UTC](https://talk.getindico.io/t/allowing-imagemaps/2344/1 "2021-08-02T06:51:38Z")

</div>

Hi,

I am currently working on allowing imagemaps (from rich editors only).  
2 questions regarding upstreaming this:

1. In the bleach filters(indico/util/string.py:sanitize\_html) 2 attributes are missing for this to work: coords and usemap, while area and map are already allowed. Should I just provide a core pull request or can this be done from a plugin
2. indico/web/client/js/legacy/libs/indico/Core/Widgets/RichText.js needs also some adjustment. Again can this get incooperated into core or do I need to keep in my version?

---

<div class="post-metadata">

**Author:** ![ThiefMaster](https://talk.getindico.io/user_avatar/talk.getindico.io/thiefmaster/32/509_2.png) [@ThiefMaster](https://talk.getindico.io/u/ThiefMaster)\
**Post date:** [August 2, 2021, 12:51pm UTC](https://talk.getindico.io/t/allowing-imagemaps/2344/2 "2021-08-02T12:51:18Z")

</div>

Are imagemaps still used and not deprecated? I don’t think they are really important, but I don’t see any harm in them either (assuming bleach properly escapes targets so you can’t use `javascript:` and similar urls).

So I’m ±0 on allowing them in the core. Regarding the ckeditor change, I’d need to know what exactly you plan to change there…

Since it’s a simple change maybe just send a PR against the `3.0.x` branch for it - if it works nicely and doesn’t add any problems, I probably wouldn be OK with accepting it in the core…

---

<div class="post-metadata">

**Author:** ![bpedersen2](https://talk.getindico.io/user_avatar/talk.getindico.io/bpedersen2/32/25_2.png) [@bpedersen2](https://talk.getindico.io/u/bpedersen2)\
**Post date:** [August 3, 2021, 6:24am UTC](https://talk.getindico.io/t/allowing-imagemaps/2344/3 "2021-08-03T06:24:12Z")

</div>

I created [Allow imagemaps in advanced RichText editors by bpedersen2 · Pull Request #5027 · indico/indico · GitHub](https://github.com/indico/indico/pull/5027).
