How can I allow a user to 'break out' and resume typing from nested, structured content by using the arrow key and/or mouse clicking?
Let me describe the scenario. Say the user is at the bottom of the content in the editor, but not in a paragraph. Say, for instance, this is what their content looks like (this is what I see when I hit 'source')
In the problem scenario, the user's cursor is in this at the bottom of the content, i.e., after the 'e' in Figure: Some Image.
What happens is there seems to be no way, via hitting the down or right arrow key, or clicking at the bottom of the editor, for the user to say, 'Ok I want a paragraph here so I can keep putting in content'.
Only two options come to mind to solve this problem: either intercept right-arrow or down-arrow key press, and create a <p></p> for the user on demand, when I detect that they are at the end of content. Alternatively, when I insert the figure, I could create a dummy paragraph if I detect it's at the end.
I think this is, though, a tricky problem to get right. Any guidance from any experienced users or CKEditor developers?
Note: The fck_bookmark p tags look promising, as if they were designed for this scenario. I don't know what they are there for, but regardless, I can't seem to get my cursor to enter either of them.
Let me describe the scenario. Say the user is at the bottom of the content in the editor, but not in a paragraph. Say, for instance, this is what their content looks like (this is what I see when I hit 'source')
<p> a paragraph</p> <p> <span _fck_bookmark="1" style="display: none;"> </span></p> <div class="figure"> <img src="some_image" /> <div class="description"> Figure: Some Image</div> </div> <p> <span _fck_bookmark="1" style="display: none;"> </span></p>
In the problem scenario, the user's cursor is in this at the bottom of the content, i.e., after the 'e' in Figure: Some Image.
What happens is there seems to be no way, via hitting the down or right arrow key, or clicking at the bottom of the editor, for the user to say, 'Ok I want a paragraph here so I can keep putting in content'.
Only two options come to mind to solve this problem: either intercept right-arrow or down-arrow key press, and create a <p></p> for the user on demand, when I detect that they are at the end of content. Alternatively, when I insert the figure, I could create a dummy paragraph if I detect it's at the end.
I think this is, though, a tricky problem to get right. Any guidance from any experienced users or CKEditor developers?
Note: The fck_bookmark p tags look promising, as if they were designed for this scenario. I don't know what they are there for, but regardless, I can't seem to get my cursor to enter either of them.
Re: Breaking out of nested content when at bottom boundary