I'm confused as to why the dnd-caption-wrapper div is always output when dragging an atom into a ckeditor field.

In the code it says this:

// Note: The 'dnd-caption-wrapper' class is used by the CKEditor plugin to
// identify the editable zone and should not be modified by theme overrides.

mee.module, line 559

But why use the caption div to determine the editable zone (I'm guessing this is the zone where you can right-click and hit "edit atom properties") and not the wrapper above that (dnd-atom-wrapper I believe)?

And it does still output that caption-wrapper no matter what. Right now it seems to insert the legend there, but if I do a prerender_alter and set $atom->omit_legend = true it still outputs that div, it's just empty then.

So, I guess why and if it isn't vital is there a way I can get rid of it?

CommentFileSizeAuthor
#1 fix-caption-check-2528996-1.patch765 bytesnagy.balint

Comments

nagy.balint’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Status: Active » Needs review
StatusFileSize
new765 bytes

I believe the problem is that the check is not with empty.

Here is a patch to fix that.

nagy.balint’s picture

Status: Needs review » Fixed

  • nagy.balint committed 56b35b7 on 7.x-1.x
    Issue #2528996 by nagy.balint, Grayle: dnd-caption-wrapper question
    

Status: Fixed » Closed (fixed)

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