-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Put the cursor at the end of content when config.startupFocus = true
is set
#1399
Comments
There are cases when some would like to put the selection the way it is, so at the beginning of the document. So instead I see it as a feature request, where it could be customized where the selection should appear. By default it will be at the beginning (backward compatibility), but we should also allow explicitly stating where the selection should land. For your case it would be something like: // Explicitly tell to put the focus at the end of editable.
config.startupFocus = 'end'; Also I'm changing browser env, as it works the same in all browsers. |
Hi @mlewand ,thanks for answering my question, but I've tried, not working for me. |
@KevinYaoooooo that's right it won't work for you yet because we have just started developing this feature - so it did not land in any CKEditor release just yet 😉 Please keep an eye on this issue. As it gets into the release we'll set the milestone to a CKEditor version where it lands. From there you will be able to use this feature. |
config.startupFocus = true
is set
@mlewand , thanks for letting me know, looking forward to that feature and bouch of others, cheers~ |
@KevinYaoooooo This feature has just been positively reviewed and was merged into the If you can't wait for the release you can download a 🔥 burning hot nightly release in "CKEditor Nightly Buyild" section on our Download page. Keep in mind that current nightly has not been verified by our intense integration testing phase, as we do that before the release. Lastly we just came with a decision to skip minor release and go straight for 4.9.0 release. This means this ticket (and all others) will be incorporated into 4.9.0 release, see our milestones page for a release schedule. |
Thanks @mlewand, you guys are awesome |
Are you reporting a feature request or a bug?
Feature request
Provide detailed reproduction steps (if any)
The
config.startupFocus
= true;
option does not put the cursor at the end of editor content.Expected result
It should be possible to put the cursor at the end of content if
config.startupFocus = true;
was set.Actual result
The cursor is always placed at the start of editor content.
Other details
The text was updated successfully, but these errors were encountered: