If I've added a table to an empty editor in Firefox, I can't get my cursor below the table whether I try mouse clicking or various keyboard keys like arrows and enter.
Quick steps to reproduce:
- Use firefox
- Go to ckeditor.com/demo
- In the Standard Editor, hit the Source button and enter this:
<table border="1" style="width:100px"> <tbody> <tr> <td></td> </tr> </tbody> </table>
- Switch back to wysiwyg mode (toggle off the Source button)
- Try to get your cursor below the existing table using arrows, typing, or mouse clicks. For that matter try to get the cursor above the table.
Note that I could theoretically use the magicline plug-in to accomplish this, but would have to think there is another way. Chrome handles using the arrow keys or mouse click to exit the table, but it's impossible to do with Firefox.
As I replied on Stackoverflow
As I replied on Stackoverflow, this is why magicline was implemented. In some cases on some browsers it's impossible to place caret at some positions. As you mentioned yourself, magicline solves this issue.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
I see. If magicline is the
I see. If magicline is the best solution, I will pull it in to our editor. I was hoping there would be other alternatives, like overriding keyboard events so that the right arrow in the last cell would create a new break or something similar. Thanks for the reply
You can bind keystrokes to
You can bind keystrokes to magicline. There are two commands 'accessPreviousSpace' and 'accessNextSpace' which are executed on config.magicline_keystrokePrevious and config.magicline_keystrokeNext. You can change them to something simpler, because the defaults are tricky.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Thanks, that helps. I didn't
Thanks, that helps. I didn't see these config options yet. I see the dilemma now with determining whether the cursor can go any farther before deciding to incorporate a line break.