question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Insert markdown from WYSIWYG

See original GitHub issue

Summary

I have a editor instance only on WYSIWYG mode. But I want to add some markdown element like latex for exemple at the curent cursor on WYSIWYG edition.

When I’m in Markdown mode, I can do that :

editor.insertText("\n$$latex\nc = \pm\sqrt{a^2 + b^2}\n$$\n")

But this doesn’t work when I’m on WYSIWYG mode.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
js87zzcommented, Feb 10, 2022

@kevindesousa First of all, I’m sorry for the late.🙏 You can add the custom block in WYSIWYG as below.

editor.exec('customBlock', { info: 'latex' });
editor.insertText('what you want')
1reaction
cary-hucommented, Sep 2, 2021

+1 for that

Read more comments on GitHub >

github_iconTop Results From Across the Web

Best Markdown WYSIWYG Editor: A 2022 Update - Froala
Markdown syntax allows users to embed markups within the text and it is automatically converted to rich text with formatting by a WYSIWYG...
Read more >
StackEdit – In-browser Markdown editor
Full-featured, open-source Markdown editor based on PageDown, the Markdown library used by Stack Overflow and the other Stack Exchange sites.
Read more >
Document Editors | Markdown editor | WYSIWYG (HTML) editor
Markdown editor lets writers use Markdown syntax and WYSIWYG editor ... In WYSIWYG mode, you would use the formatting toolbar to insert an ......
Read more >
Getting Started | Markdown Guide
Markdown is a lightweight markup language that you can use to add formatting elements to plaintext text documents. Created by John Gruber in...
Read more >
nhn/tui.editor: Markdown WYSIWYG Editor. GFM ... - GitHub
TOAST UI Editor provides Markdown mode and WYSIWYG mode. Depending on the type of use you want like production of Markdown or maybe...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found