setrak.blogg.se

Ckeditor5 get plain text
Ckeditor5 get plain text








ckeditor5 get plain text

I’ve reviewed this section, but it’s still unclear to me. (That would be more “Hi-Fi”)įor starters, I’m a little confused on whether I should use a “view plugin” or a “state field”. In the longer-term, it might be useful to some users to add a popup for adding/editing link URLs, but that’s deviating from my goals of “Lo-Fi” WYSIWYG.Cmd K on macOS) to expand the link that contains the cursor. The user would need to hit the “Insert Markdown Link” hotkey (e.g. Links aren’t automatically “expanded” to show the markup, either.This actually makes me think that maybe a more generic approach would be to add support for modifying any of the “Toggle” shortcuts so they actually toggle (instead of just inserting the relevant template again) It looks like “Toggle Highlight” doesn’t have an official hotkey, so to support that, I’d likely have to alter my approach a bit.If the cursor is inside of a bolded string of characters and the user hits the “Bold” hotkey ( Cmd B on macOS), the string should be unbolded (instead of just inserting the “Bold template” again).I have lots of ideas bouncing around my head.Ī little more detail on what I’m planning on doing:

ckeditor5 get plain text

Thanks in advance for any pointers! I’m excited to start contributing. It looks like I’ll have to work with CodeMirror’s syntaxTree(), I think? I’d greatly appreciate it if someone can clear this up! I’d prefer to not start down the wrong path entirely.Īnd if you have high-level advice on how I’d make it happen, I’m all ears. the asterisks in **bold**) could effectively alter the vertical layout, right? However, adding/removing characters (e.g.

ckeditor5 get plain text

I’m not planning on doing anything that directly alters the vertical layout.

#CKEDITOR5 GET PLAIN TEXT PROFESSIONAL#

I call this idea, “Lo-Fi WYSIWYG” - there’s a bit more to it, but I think it would improve my personal UX significantly, and others might appreciate it as well.Īny high-level tips on how I’d set this up? I’m a professional developer of 15-20 years, so no worries on getting too technical.įor starters, I’m a little confused on whether I should use a “view plugin” or a “state field”. In fact, I plan on usually using command hotkeys to bold/italicize/highlight. Still, the sudden “jumping” of text is distracting to me I’d much prefer that those markdown characters effectively “disappear” once I’ve entered them. I’ve configured Obsidian such that only Markdown on the cursor’s line is shown. I’d like to create a simple plugin that prevents Obsidian from rendering the asterisks, underscores, and equal signs ( *, _, =) in Preview mode for bold, italics, highlights, etc. New Obsidian user, even newer Obsidian dev, but long-time nerd and dev. I love that I can get everything done without ever taking my hands off the keys while I write. Using a mouse might be an enjoyable part of the editing experience for you, but for me it’s distracting and takes me out of the flow of writing. Something else to note about your screenshots is how the mouse is much more required for using the CKEditor interface, and only a keyboard is needed for editing complex Obsidian assets like callout boxes and tables. Obsidian awesomely fits the niche of Markdown + local files, and I absolutely love it. I think really it’s just different strokes for different folks, but that’s why there are so many options out there in the market. It’s critical that it’s readable even as plain text and preferable that it’s also nicely formatted as plain text.

ckeditor5 get plain text

I want to know that my Markdown documents are perfectly formed, because the reason I’m using Obsidian is to end up with Markdown for longevity. I want everything to turn into plain text when I click on it (images/tables/callouts/etc). I would think the focus of Obsidian is plain-text editing at the core of its editing functionality.įor example, what you consider “half-baked” editing functionality is the perfect editing experience for me. I have to disagree with you, and back up what is saying. The truth is that the current live preview mode is unintuitive and very distracting when editing it. Obsidian is everything BUT a PLAIN TEXT editor.










Ckeditor5 get plain text