-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Consider editor implementation with the contextual toolbar #402
Comments
@oleq you put a lot of reasonable insights on this in https://github.com/ckeditor/ckeditor5-editor-inline/issues/1#issuecomment-279999541 it's definitely worth to put it here. Looking at it from pointer device user (be it touch or mouse) I find contextual toolbars pretty useful. However there's this problem of overlapping your content - and that's the most irritating problem that comes to me when working with this. I'm wondering if there are some interesting implementations that get around this problem? I can imagine placing toolbar on left/right side if possible, but then pointer distance is much, much bigger than in example above, also it's availability depends on outer layout. The other problem is that typically such inline editors are poorly indicated that they are editable until you point one of them. With classic concept you instantly know what's going on. Couple of thoughts regarding above PoC:
|
I'm pretty sure this is what ckeditor5-ui/tests/manual/contextualtoolbar/contextualtoolbar.html PoC alreay supports.
I didn't write about this because I felt like this is obvious but apparently, it isn't. So to make things clear, the screenshot above presents a contextual toolbar PoC in the existing "classic" editor. The actual contextual editor implementation would bring that kind of toolbar only. |
Just FYI: Since https://github.com/ckeditor/ckeditor5-ui/issues/182 has been closed and the |
Some issues that must be fixed before the new kind of editor is ready: |
Since we decided that this editor implementation should be coded ASAP we need to find a proper name for it. What should we call it? |
@oleq widely used 'medium editor' naming for this toolbar style |
IMHO, "contextual" is misleading. It says that the editor is contextual (like different editors for different contexts), while here we're talking about the toolbar. The editor name is important because it also defines the name of the class to be used to create the editor instances. It goes always postfixed with "Editor". So if the editor name is medium, the class name will be Actually, one possible variation may be calling it medium-like, where the class name would be Another proposal could be simply balloon ( Or, following the current proposal, but avoiding confusion, contextual-toolbar ( |
So, Or I'm fine with both but the first one is a bit too verbose. |
I know it is a bit longer, but that was exactly my point. I would avoid |
I'm not quite sure using this "medium" word is the best approach. For one thing, in a couple of years, Medium may not exist or completely change in terms of editing experience and we'll remain stuck with this association forever. Lots of other things could go wrong too, like what if as a consequence of some events Medium gains a "bad PR"? I guess we'd rather not become part of it, especially that we won't have any control over it whatsoever. There's no easy way out of it if something like this happen. Another thing is that this name does not describe the essence of the implementation – it's a name of a 3rd–party app. You have to know the app to understand the name, it's a bad semantics IMO. And last, but not least, I'm not sure how would that work in terms of legal procedures. "Medium" is probably a trademark and who knows what would it mean for us? |
The timeframe is a good point. I imagine explaining to someone in 3 years from now what this "medium editor" is. Especially that "medium" has a couple of meanings. From the other proposed names I find balloon editor and contextual toolbar editor equally good and bad :D. One is dully explicit but precise, the second is a bit unclear (is it an editor inside balloon?) but short. I'm, as usual, ok with both :D |
So we decided to go with https://github.com/ckeditor/ckeditor5-editor-balloon-toolbar. @oleq checked that "contextual toolbar" usually means the toolbar which changes its content depending on the context. Since this is not really what characterises this editor, we chose "balloon toolbar". |
Feature: Introduced `ckeditor5-editor-balloon-toolbar`. Closes #402.
A follow–up of https://github.com/ckeditor/ckeditor5-editor-inline/issues/1#issuecomment-279158808.
The PoC is already in http://localhost:8125/ckeditor5-ui/tests/manual/contextualtoolbar/contextualtoolbar.html.
The text was updated successfully, but these errors were encountered: