jejacks0n / mercury

Mercury Editor: The Rails WYSIWYG editor that allows embedding full page editing capabilities directly inline.
http://jejacks0n.github.com/mercury
Other
2.63k stars 531 forks source link

Moving cursor out of the inner element #408

Open infoman opened 10 years ago

infoman commented 10 years ago

For example, I have one full region and the only element inside is a table. By default, when the editor starts, the cursor is before the table and I can insert some text or other element there.

But when I move the cursor inside some table cell, I don't see any way to move it back out. Even more, if some table cell contains a link (or some other element), I can't move out of the link and add more contents to that cell.

There's no way as I can see to add something after the last html element in region, as the cursor is always inside something.

Tested in Firefox version 20, 22, 23, Mercury version is git master.

mercury

upd.: Partially solved by adding some code to injectedStyles:

'[data-mercury]:focus>*:last-child:after, [data-mercury]:focus>*:first-child:before {content: \'\'}'

so I can move out of the table now by pressing Up or Down buttons, but still cannot reach table cell contents outside of the link.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/871322-moving-cursor-out-of-the-inner-element?utm_campaign=plugin&utm_content=tracker%2F134071&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F134071&utm_medium=issues&utm_source=github).
skydan commented 10 years ago

Any updates?