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.

Render injected html into editor

See original GitHub issue

We are using mode: shell but wish to inject html that is rendered to hyperlink inside the text editor. Is this possible? Right now the HTML we are injecting a tags, is simply printed. How can we specify it should be parsed instead.

See example:

cp <a href="/view/5315010c98a618e04e8b456d">5315010c98a618e04e8b456d</a> /etc/nginx/

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marijnhcommented, Jun 2, 2014

Also, unless you are paying for support, don’t bump threads. It is annoying.

0reactions
marijnhcommented, Jun 2, 2014

You can’t insert HTML in an editor. You can insert a widget, which is a dom node, but that won’t be selectable and editable as text. You can also listen for events on the token nodes, and react to those. But there will never be a feature like you describe – it just doesn’t fit with CodeMirror’s model of how a document is shown.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Render injected html into editor · Issue #2601 - GitHub
We are using mode: shell but wish to inject html that is rendered to hyperlink inside the text editor. Is this possible?
Read more >
best way to inject html using javascript - Stack Overflow
Can anyone suggest a way to do this with more brevity. I do not have access to a library in this project....so no...
Read more >
How to Use Static HTML with React | Pluralsight
In this guide, you will learn how you can embed raw HTML inside a component. dangerouslySetInnerHTML Prop. If you try to render an...
Read more >
Render HTML code from database as HTML | OutSystems
Render HTML code from database as HTML. ... This way you're allowed to inject HTML to you're screen, in your case, from the...
Read more >
Safely inserting external content into a page - Mozilla | MDN
An HTML sanitization library strips anything that could lead to script execution from HTML, so you can safely inject complete sets of HTML...
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