Adding the class 'drupal-content' to the placeholder img tag produced by your Drupal plugin will allow editor implementations, like the one for TinyMCE, to find it and tell the editor to exclude the placeholder when checking if the image button should get highlighted when the placeholder is selected.

That must have been the longest sentence ever....
Background here: #400482: editor.instance.prepareContent() breaks editor's native markup handling

Comments

joachim’s picture

Interesting. I'm not sure when I'll find time to look at this -- if you provide a patch it'll get in a lot more quickly :D

dboulet’s picture

StatusFileSize
new885 bytes

Something like this?

dboulet’s picture

Status: Active » Needs review
twod’s picture

StatusFileSize
new927 bytes

Of course.
Great module btw!

joachim’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.