-
Notifications
You must be signed in to change notification settings - Fork 132
Conversation
This commit sets up the classic ckeditor to be used in place of quill. Most functionality (specifically with the footer buttons and syncing) do not work as of yet.
The two footer buttons: `enable-sync` and `give-feedback` now work as intended. When `enable-sync` is clicked however, the `sync-note` covers the footer buttons currently instead of being displayed above them.
One main issue I'm having is getting the height of the editor to be the full height of the sidebar minus the height of the footer. It looked like we used So currently, if the sidebar is narrow the footer will disappear 😛 |
@cedricium re Some things to investigate:
|
@vladikoff some of that I know should definitely be doable from what I read when going through the ckeditor docs. As for the rest, I'll go ahead and look into it and see what I can do. 👍 |
@cedricium ah also we were looking at Markdown features. I think doing |
This was in one of CKEditor demos. |
@vladikoff from what I could find, ckeditor5 does not support |
@cedricium We are looking to "maximize" Markdown support, a lot of users ask for it. Could you |
@vladikoff will do. |
@cedricium I think so far we are leaning towards switching to this editor from Quill. @ryanfeeley mentioned that this might have used more CPU but not confirmed. If you can think of any issues / concerns that we might have with this editor please let us know! |
Formats added: - All text sizes - block quotes Also added the `cursor: text` to the text editor area.
@vladikoff Just based off looking through the I also happened to find a GitHub-Flavored Markdown plugin (https://docs.ckeditor.com/ckeditor5/latest/api/markdown-gfm.html). What's nice too is that it looks like using One issue I'm having with using it however is if I try to import it inside |
I think the problem is that the Is there a way to create a 'build' of ckeditor5-build-classic + gfm? So it is all in one file? |
To better explain the issue: we currently copy single files into the |
@cedricium this should help with the GFM build : https://github.com/ckeditor/ckeditor5-markdown-gfm/issues/15 |
Oh awesome, will try my hand with that solution! 👐
|
Hello, |
Hopefully, I'll be able to help you a bit :)
Docs for configuring available headings: https://docs.ckeditor.com/ckeditor5/latest/features/headings.html#Heading-levels
We're using https://webpack.js.org/plugins/normal-module-replacement-plugin/ for that. Basically, the SVG icons are imported into JS using webpack's raw-loader and you can configure webpack to use different files instead of the default modules.
Did you mean CKEditor's "edit link" balloon? Or FF's URL bar?
Do you want to completely filter out images from the content of the editor? Like – prohibit their insertion in any way? Or only reject images which were pasted or dropped (e.g. from the local file system)? The former can be done by removing all image plugins from the build. The latter is actually the default behaviour if you don't have file upload configured. |
@cedricium I think we have the go ahead to switch to this editor, let me know how much time you have this week for this. @Natim and I can help and finalize this PR after Wednesday. |
This was an attempt to build the Classic editor from source as outlined in this guide: https://docs.ckeditor.com/ckeditor5/latest/builds/guide- s/integration/advanced-setup.html. This isn't bundled correctly however since ClassicEditor.js and Markdown.js are at the top-level of the directory and need to be inside the `sidebar/` directory.
@vladikoff sounds good! I'll definitely need some help with this. Building the editor from source has been throwing me for a loop and most of my attempts have failed miserably :( There's just a lot I don't know so I'd rather see how to do it correctly and learn that way rather than mess everything up. |
Continued in #394 |
Ref #338