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.

How to replace <p> by <span>?

See original GitHub issue

How do I configure the plugin to have a “span” element instead of “p” inside the container? For example: <div data-editable data-name="text"><span>Text</span></div>

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
babenkomacommented, Jan 7, 2018

<div><span data-fixture data-name="text" data-ce-tag="p">Text</span></div> Thank you! That’s what I need!

0reactions
anthonyjbcommented, Jan 7, 2018

@babenkoma just thinking if you don’t want the user to be able to be able to create new paragraphs at all you could use a fixture, e.g:

<div><span data-fixture data-name="text" data-ce-tag="p">Text</span></div>
Read more comments on GitHub >

github_iconTop Results From Across the Web

changing <span> to <p> through DOM - jquery - Stack Overflow
I am receiving a piece of HTML code from a plugin and I want to change all instances of <span class="post-stats"> to <p...
Read more >
Replace html tag <span class= by <p class= - Super User
That is why it is not working as intended when you replace. Try the following: Find what: </p>\s+.*\K<span class=("text_obisnuit">.*)< ...
Read more >
replacing <span> and <p> in visualformat — OpenText - Forums
I've played around a bit removing the <p> tags and then applying styles with <span> tags and then in perl converting the <span>...
Read more >
How to replace an underline text in a p tag using span
I have the following code: <div id="instru_topp"> <h3>The topping</h3> <p><span class="especial">Mix</span> all the ...
Read more >
How to change the span from HTML in CSS? - Codecademy
I've bumped up the line-height and added color and border to the P so we can see more clearly what setting the background...
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