vue-highlightable-input icon indicating copy to clipboard operation
vue-highlightable-input copied to clipboard

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

Open carloslema opened this issue 5 years ago • 5 comments

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

carloslema avatar Apr 13 '19 12:04 carloslema

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.

Blaked84 avatar May 19 '20 07:05 Blaked84

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

amitbrickman avatar Aug 01 '20 10:08 amitbrickman

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.

Blaked84 avatar Aug 01 '20 11:08 Blaked84

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 ?

ndphuong avatar Aug 13 '20 08:08 ndphuong

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.

Blaked84 avatar Aug 13 '20 21:08 Blaked84