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.

no BR tag in block tool text

See original GitHub issue

image

Hello. It seems line breaks are not adding into text. In latest Chrome and Safari I can’t add line break in block tool with enableLineBreaks: true property (such as Quote and other custom tools). You can get this case when just typing a text and press Enter, not paste.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gkshicommented, Dec 17, 2019

I use original Quote plugin, it includes sanitize method with br option by default. But it’s not working correctly.

There is a gif from editorjs website. No br tag in text. ezgif-2-3cb9dd09e85e

0reactions
gkshicommented, Jan 9, 2021

@mirkomaty Hi, I’ve not solved the problem finally. I think it’s a quite important bug. You can reopen the issue then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Break Line Without Using <br> Tag in CSS - W3docs
There are a few ways to break a line without using a <br> tag. For that, we can use block-level elements. Block-level elements...
Read more >
HTML - <nobr> Tag - Tutorialspoint
Description. The HTML <nobr> tag is used to instruct the browser not to break the specified text (such as the usual line wrap...
Read more >
<nobr>: The Non-Breaking Text element - MDN Web Docs
The <nobr> HTML element prevents the text it contains from automatically wrapping across multiple lines, potentially resulting in the user ...
Read more >
React block showing unnecessary br tag - Stack Overflow
edit({ attributes, setAttributes, isSelected }) { const { text } = attributes; return ( <Fragment> <RichText identifier="text" value={text} ...
Read more >
The Dos and Don'ts of Adding an HTML Line Break
I should use the block quote element, which will automatically add margins on the left and right side of the text. If I...
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