Skip to content
This repository has been archived by the owner on Jul 22, 2023. It is now read-only.

new line or \n | \r to <br /> #20

Open
carloslema opened this issue Apr 13, 2019 · 5 comments
Open

new line or \n | \r to <br /> #20

carloslema opened this issue Apr 13, 2019 · 5 comments

Comments

@carloslema
Copy link

carloslema commented Apr 13, 2019

Hi Syed, thanks for this awesome Vue highlighter — I am wondering, have you looked into converting new lines or the \n or \r to <br>?
I am trying to figure this out by looking in two places (probably not the right places):

  1. In the "safe_tags_replace"
  2. save/restore selection

Any help will be much appreciated. \carlos

@Blaked84
Copy link

Hi @carloslema, have you come up with a solution?

Is it the same issue as the one bellow?
Line breaks are deleted when I edit the text.

@amitbrickman
Copy link

Hey guys!
@Blaked84 I have the same issue. Is there any solution for this thing?
BTW awesome library

@Blaked84
Copy link

Blaked84 commented Aug 1, 2020

Hey guys!
@Blaked84 I have the same issue. Is there any solution for this thing?
BTW awesome library

No sorry, I switched to another library.

@ndphuong
Copy link

Hey guys!
@Blaked84 I have the same issue. Is there any solution for this thing?
BTW awesome library

No sorry, I switched to another library.

Hi @Blaked84 , which library you switch to ?

@Blaked84
Copy link

Hi @Blaked84 , which library you switch to ?

@ndphuong I use https://github.com/Blaked84/highlight-within-textarea

It's a fork of a lib initially designed for jQuery but converted to vanilla js.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants