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
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | columns_filter-HEAD-wysiwyg-class.patch | 927 bytes | twod |
| #2 | columns_filter-HEAD_drupal-content.patch | 885 bytes | dboulet |
Comments
Comment #1
joachim commentedInteresting. 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
Comment #2
dboulet commentedSomething like this?
Comment #3
dboulet commentedComment #4
twodOf course.
Great module btw!
Comment #5
joachim commentedCommitted, thanks.