-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Implement the horizontal rule (line) feature #1365
Comments
@oleq I would suggest automatic horizontal rule insertion feature by pressing the Enter key two times. And by undoing the second enter, it will replace the horizontal rule element with empty paragraph element. |
@tovic How would one create two empty paragraphs (one after another) then? Enter functionality is essential from the UX perspective and must be predictable, i.e. like in other word processors. A horizontal rule showing up out of nowhere could suprise many users. I'd rather opt for the a dedicated keystroke (could be Modifier(s)+Enter) and a toolbar button. What inspired this idea ayway? Have you seen it somwhere in the software that you use? |
Not a user, but here’s an example (buggy: at least need two paragraph before insertion) → http://jakiestfu.github.io/Medium.js/docs/#rich |
Inspired by MS word and LibreOffice Writer: |
Maybe you can take code from here to implements this feature : https://github.com/Didask/ckeditor5-hr It allows the insertion of an horizontal rule. It's not on NPM yet, but it should be this week. For the moment, we do an we use it in our editor builder script like this :
|
@long-lazuli what is the status of the npm package? would love to give it a shot |
Could we use a selection handle (like for tables)? |
We can but we need to change the editing element (from |
We had a quick call today and I'm adding here a summary:
|
Feature: Initial implementation of the feature. Closes ckeditor/ckeditor5#1365.
Is this a bug report or feature request? (choose one)
🆕 Feature request
Details
It's one of the missing features in v5 (present in v4) and brought up by the community every now and then.
Instead a simple implementation I think we may consider a widget with a drag&drop support.
The feature should also retain page breaks pasted from Word (and if possible) from Gdocs, though this could be extracted to a followup.
If you'd like to see this feature implemented, please add 👍to this comment.
The text was updated successfully, but these errors were encountered: