-
Notifications
You must be signed in to change notification settings - Fork 2
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
Full Screen Mode #76
Comments
Oops, another evidence, that Open Source rocks... |
The third party plugin's for sure helpful, but we can't use it with our build, it seems (at least, not without complications). However, looking at the code - we can accomplish something similar in Backdrop. A PR is available for testing and review. |
Thanks for the PR, I'm happy to test it, hopefully soon. Is it okay to apply the PR to the last release, or should I use the latest 'dev' as basis for the PR? |
@olafgrabienski As the latest alpha release is already quite behind dev and there are several PRs in the queue, I'd currently actually recommend to clone the repo (if you have git available) and use |
Hello, if there are any problems/questions on the plugin let me know. I will finalize it if necessary. At the moment a few add-ons should be released in the next few days. One update has already been done and published. Also I will be glad to develop a plugin that will solve any other problem of yours |
Hey @pikulinpw, many thanks for chiming in! 👋 The complications on our side are pretty Backdrop-specific (based on dll-build, currently not even fully implemented...). Considering these could lead to complications on your side, that might not be necessary. However, it turned out, the JS/PHP part is rather trivial, the difficult part is CSS 😜, especially figuring out the right z-index. That's something that might also be interesting for you. Currently you're setting Again, many thanks for your useful implementation example. 🙏 It helped me a lot. |
My plugin is organized differently from yours. Your plugin opens full screen with just css, my plugin first of all tries to open full screen via FullScreen API of the browser and only if it is not possible it does it via css. I am also releasing two more plugins the other day, one of them may solve another issue you have, namely "Apply front-end theme CSS to CKEditor instances", if you don't mind when I release the plugin I can announce it in your issue. Also if you need any other plugin for CKEditor5 let me know, maybe I can help by developing it. |
Yes, saw that in the code, but as I wasn't able to look at it with our editor implementation, I couldn't check, how that behaves re modals. 👍
That sounds great! Sure, ping us any time, you're welcome. 😄
Wow, many thanks! (Be careful with what you offer, we might come back to you 😁) |
I'm waiting for you to come back to me 😁 Subscribe so you don't miss plugin updates) |
I am a little hesitant to add a feature with custom code that seems likely to be added to CKEditor core in the future (per ckeditor/ckeditor5#1235), but overall it seems like this is a relatively simple plugin. @indigoxela and @olafgrabienski what are your thoughts on the possible options?
@pikulinpw Your plugin looks great. Would it be possible for you to compile a DLL version of the plugin either in the release or as part of the npm package? CKEditor core plugins all include DLL builds which make it easier for us to integrate plugins without recompiling the entire editor. |
(custom plugin / 3rd party plugin / wait for native support) No strong opinion, but native support seems to be preferable. Hard to guess how likely it will be added to CKEditor, and when. Maybe start with a plugin, it it's simple enough, and replace it later? |
@indigoxela Thanks for the hint. I've applied the pull request to my test site and added the Maximize button to the Editor toolbar. Works like a charm! One note: When CKEditor is maximized, I see the following warning In the Firefox Dev tools console: "This site appears to use a scroll-linked positioning effect. This may not work well with asynchronous panning" |
I'm leaning this direction too. |
Yes, maybe... but it doesn't appear to happen any time soon. Another option is to make this a contrib module. But as the maximize feature shipped with CKE4, keeping it in core would provide better backwards compatibility, I guess. |
@olafgrabienski many thanks for testing! Re "This site appears to use a scroll-linked positioning effect..." – I think, this is caused by the Backdrop dialogs, not by the maximize plugin. This needs verification, though. Update: it seems to be caused by the cke sticky toolbar, so there's nothing we could do about it. 🤷 |
Good to know! (Now I see, the warning is also present in 'normal' mode, when the sticky toolbar is active.) |
I don't feel that this issue should be a priority to get the module into Backdrop core. Could be worked on once that's done, in the core issue queue. @indigoxela the PR branch now has conflicts by the way. |
@klonos many thanks for having a look. 🙏 This issue here for sure isn't a blocker for getting CKE5 into core (it's a feature request). Very likely it won't even be a part of the main CKE module, but will rather stay in contrib as its own module, or we wait until the library ships with an alternative solution. Yes, the PRs conflicting. |
@indigoxela Why that? Some time ago you mentioned backwards compatibility:
In my opinion, it's still a valid argument to provide the feature in core. |
As far as I can tell, nothing's decided, yet. 😉 If there are enough requests to ship this with core, then we can put it into core. If not - contrib. The proof-of-concept exists and works, so it will be available. |
FTR: rebased and conflict resolved. |
The PR looks good. I was going to suggest that the CSS (and maybe the icon) should be moved into the plugins directory, but on further thought it makes sense as-is, where the icon is just collected with all other icons, and the CSS file has a unique name so that it can be overridden by a theme. |
Actually, the icon under /icons is only used in the toolbar builder (on /admin/config/content/formats/FORMAT). |
From the looks of ckeditor/ckeditor5#1235, I don't think it's likely that CKEditor is going to provide a built-in solution in the near future:
Considering other plugins require recompilation to bundle them, I think moving forward with our own plugin is a good solution that should have a useful lifetime, and provide one more button that can be mapped 1-to-1 from CKEditor 4. |
So far, CKEditor 5 doesn't support Full-screen editing.
More info:
(voting for the feature at issuecomment-918162952)
Originally posted by @olafgrabienski in #36 (comment)
The text was updated successfully, but these errors were encountered: