-
-
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 a creator with sticky toolbar #135
Comments
I proposed that, but I'm now a bit unsure whether it should also be visible when the viewport is scrolled, so the toolbar is in sticky mode. Perhaps in this case it may disappear. |
So...
|
In the classic editor I think it should be always visible regardless of the focus and yes, sticky, up to a specific size, when it then disappears with the content on scroll. When it comes to inline, we're also taking in consideration the "stick to the bottom when possible" approach, like CKEditor 4, right? |
Then, when editable area of off the screen and user performs non-editing actions, CKEditor would persist and consume viewport space, sticky to the edge of the screen. So I'd rather see the toolbar hidden when off the viewport and editable blurred.
Yes. |
You cut the rest of my comment, which is all about that :D If the editable goes off screen, the toolbar goes with it. It will bring a more natural feeling to the classic editor. After all, when the editor is totally visible, the toolbar visibility doesn't depend on focus. Maybe I'm not expressing myself properly. I'll try sketch it out and add a new comment here. |
I don't think we have to do it. For me the behaviour of CSS's |
Well, I would not count on less real problems... as soon as the editable gets too small at the top of the page or when positioned close to the top of the viewport, we'll then start to have problems. This is not an issue with the classic editor because the toolbar has a "reserved" space with it. That's not the case with inline. And as a last comment, I've been always very proud about the behavior in v4... we would be doing a step backwards on something that works great there (and stable, so we don't have to really code everything from scratch). |
I think you should check how
But we're not creating an inline (in CKE4's terms) editor here. We want a boxed UI with an inline editable.
The CKE4's implementation is super complex and has been buggy and problematic as well. The less JS, the more on CSS, the better. The only way how no positioning below the editor could be a step backwards is that edge case when you scroll the page so low that there's just few pixels of the editable visible at the top of your viewport. That's, IMO, invalid case, because you can always scroll back. |
👏 I would start with something simple (we've never used |
After a talk with @Reinmar it has been clarified that this issue has nothing to do with "inline editor" (in the v4 point of view), so in that case, it certainly doesn't make sense to go with the "stick-to-the-bottom" thing, as I exemplified myself in my previous comment. |
Note: #140. I do not think it will be an issue since there should be no problem to make |
|
By the way: the model structure and flow in my previous comment is a makeshift decision and may (should?) change. The point is that the editor still waits for features and there isn't much to store and share in those models at the moment. So choices like "use |
|
My bad. I misunderstood diagram, thought that We will see if the |
The idea is to implement a creator which is a hybrid between CKEditor 4 "inline" and "classic" implementations:
<div contenteditable="true"...
).The text was updated successfully, but these errors were encountered: