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.

Duplicate paragraph tags

See original GitHub issue

Issue Description

Informations

Chrome 60.0.3112.101 x64: OS: Windows 10: 1920x1080:

How to reproduce the bug?

Edit text with Trumbowyg, placed on a textarea with default value and use <strong> or <em> button. Each time you add a new style, it add a new set of <p> around the content.

Expected behavior ?

The text should be only once encompassed by <p> tags.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
vsindylekcommented, Sep 6, 2017

Should be fixed by adding contents() to this line: t.$ed.html(safe.html()); in trumbowyg.js

The above line should look like this: t.$ed.html(safe.contents().html());

Unfortunately I don’t know how to work this gulp and node thing so I hope someone can put it on the code instead of me 😇

0reactions
Alex-Dcommented, Sep 7, 2017

v2.7.2 published now 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pressing enter creates duplicate <p> tag · Issue #2965 - GitHub
Pressing enter after any text in the editor creates duplicate <p> tags. The reason this is a problem for me is that I'm...
Read more >
How to write an HTML Snippet that duplicates the text within a ...
How to write an HTML Snippet that duplicates the text within a paragraph each time it's double clicked? Ask Question. Asked 5 years,...
Read more >
Duplicate <p> tag when creating new Page Fragments with ...
Issues When creating new Page Fragments, using <p> tag inside the Page Fragment would lead to duplicate the <p> tag.
Read more >
Remove duplicate p tags from div - MSDN
Hi All,. I have to remove duplicate p tag from div I tried with this code but it did not work. $("#addedItem p").each(function...
Read more >
HTML paragraph tag inserted when copy/paste from MS Word
Hello! I have noticed when copying text from MS Word into the RadEditor an opening and closing paragraph tag is being inserted/wrapped ...
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