A new editor
New FeaturesYou can now test the new editor that will eventually replace the current one.
The current editor uses Trix underneath, which is basically built-in with the framework Scribbles is built on. As the years passed there were talks that there one day will be a replacement for Trix. It's now here, called Lexxy — it's based on Lexical for those interested and I invite you to explore the features, here are some taken straight from the Lexxy repo:
- Built on top of Lexical, the powerful text editor framework from Meta.
- Good HTML semantics. Paragraphs are real
<p>tags, as they should be. - Markdown support: shortcuts, auto-formatting on paste.
- Real-time code syntax highlighting.
- Create links by pasting URLs on selected text.
- Preview attachments like PDFs and Videos in the editor.
It's a huge improvement, for example creating correct and proper HTML as you type! I know, shocking, but Trix did not create optimal HTML. A note about syntax highlighting... that's not yet working — but you can start specifying the code format at least.
Additionally, you can now paste in, or use, Markdown and it will convert it to correct HTML for you — again, I will not support a pure Markdown editor at this time. The idea is to just write. However now with the optional markdown syntax officially supported it's way easier if Markdown is your poison.
The new editor is not ready for prime time here on Scribbles and there are many things that still need to be converted over — and I'll work on this slowly as I work on it and write more and the need arises.
It's opt-in and you can switch to testing the new text editor. Just go ahead and go to your account settings and then "Editor Settings" —> Enable it and save. And that's it.
Go ahead and write a new post! And you'll see the new toolbar and editor. Just start writing...
This is a early preview for now, and I've got a few things that need adding, for example proper shortcode insertion into the editor and also re-enabling the ability to set alt tags on an image (you can use the caption option for now and it'll use this also). And for the coders here — correct syntax highlighting will also be a "thing".
The editor looks great both in light and dark mode — and I will probably go ahead and more tweaks here to refine it.
Excited to start using it, and I am writing this post in it.
Enjoy!
— Vincent ✌️❤️