Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
4.02k stars 614 forks source link

Doubleclick on picture is hardcoded to Insert Picture, makes upload/other plugin useless for editing #396

Closed sneila closed 8 years ago

sneila commented 8 years ago

Inserting a picture with an upload plugin, double clicking it shows the same Insert Picture. It's even hardcoded in the JS, aka cloned behavior for the insert image (not the same, just a copy of it)

Makes the functionality of plugins obsolete, just to insert, not to edit.

There is a way to insert with the new picture some sort of 'data-button' and trigger the same button again, yet i need a way to know what picture was clicked, to allow edit.

Alex-D commented 8 years ago

Since dblClickHandler is an option: https://github.com/Alex-D/Trumbowyg/blob/develop/src/trumbowyg.js#L379

Feel free to override with what you want.

2braincells2go commented 7 years ago

@sneila Did you ever come up with a solution to this issue?

Really like to use this for kids CMS (school blogs) but not being able to align image left/right to text is killer for us.

Thanks!