When I am editing a box directly on a page, I get the "popup" dialog to edit the box. If I click "Cancel" it closes as expected, however, if I click the "X" close button on the dialog, the content under the popup does not display.

Comments

brenk28’s picture

StatusFileSize
new594 bytes

This patch simply replicates the cancel button action.

I did notice some unexpected behavior whilst testing. For instance, without this page, if I tried to edit the same place twice, the first time I would get the "popup" whereas the second time it would be inline. And the second time ckeditor js throws an error and doesn't render. It seems to happen as well if I edit different blocks on the same page. With the patch, I still have most of this, though the second time I edit the same block, it still with the popup editor, though you can see the inline editor underneath.

So, this patch doesn't address those other items, need to dig into a bit more to figure those out.

jec006’s picture

Status: Active » Needs review
StatusFileSize
new1.03 KB

Updated patch to fix the inline editor problems and some js problems.

tirdadc’s picture

Status: Needs review » Fixed

The patch in #2 fixes the original issue and behaves consistently. Tested and committed, thanks!

tirdadc’s picture

Status: Fixed » Needs work

While this does work with regular boxes and views boxes, it gets stuck in 'loading...' mode with entity boxes. Will need to investigate a bit.

jec006’s picture

StatusFileSize
new1.21 KB

This also doesn't address detaching the wysiwyg - this will cause issues if you try to edit a box 2 times in a row

Here is a patch to fix that issue

jec006’s picture

StatusFileSize
new1.2 KB

And one without the whitespace error

tirdadc’s picture

This does fix the bug that led to the '[CKEDITOR.editor] The instance "edit-body-value" already exists.' when calling method: [nsIDOMEventListener::handleEvent] error message due to the WYSIWYG not getting properly detached before. Committed.

jec006’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

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