How to insert markdown text when in WYSIWYG mode in v3?
See original GitHub issueHow can you insert markdown text, like an image or code block, when in WYSYWYG mode? Calling editor.insertText() automatically escapes special characters.
For example:
Calling editor.insertText('' results in !\[alt\](some-image.png) being added.
Prior to upgrading to v3 calling editor.insertText() would work the same in either mode, but now after upgrading to v3 I can’t figure out how to insert markdown text while in WYSIWYG mode.
Is there some alternative method I can use for inserting code blocks or images when in WYSIWYG mode, or some way to make editor.insertText() not escape special characters?
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
How do I insert Markdown in WYSIWYG mode? #1056 - GitHub
Another idea was to insert a custom uid with editor.insertText(...) , read the markdown content with editor.getMarkdown( ) , search & replace ...
Read more >Display non-markdown content in the WYSIWYG mode of the ...
The problem is that when the Static Site Editor loads the markdown page contents, it expects to be able to render markdown into...
Read more >How to use WYSIWYG (HTML)& Markdown editor ... - YouTube
With an intuitive interface, our knowledge base editor lets you create incredible documentation with rich text formatting choices.
Read more >Markdown editor | WYSIWYG (HTML) editor - Document360
In WYSIWYG mode, you would use the formatting toolbar to insert an image, then click on the image to view options to change...
Read more >Getting Started | Markdown Guide
You can add Markdown formatting elements to a plaintext file using a text editor application. Or you can use one of the many...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@rajtslegr @kevindesousa I’m sorry for the delay because I’m working on another project. I think I can make a work plan within this month. I’ll let you know if there’s anything to do!
@houkah26 When I checked,
insertTextAPI works the same as 2.x in WYSIWYG. Anyway, you want to insert some nodes like code block or image into WYSIWYG, right? Currently, there is no formal API for creating and inserting nodes in the specific position. However, the desired node can be inserted at the current cursor position using command API as below.