• When I use wrap in tag function in Gutenberg paragraph and selected text includes a link – it wrap in tag text before link, link, and text after link.

    It seem like:
    <p>Something <s>something </s><a href="#"><s>link text</s></a><s> something</s></p>

    I want to this looks like:
    <p>Something <s>something <a href="#">link text</a> something</s></p>

    Is it possible?
    How I can modify this rules.

    • This topic was modified 5 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not a Developing with WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello vitalykazak,

    Are you using the text editor or the code editor in your block? If you click on the down arrow on the toolbar above the block, one of the options is to switch to a code editor. You may be able to enter the text the way you would like it to appear here.

    Thread Starter vitalykazak

    (@vitalykazak)

    Hello sallyinstc,
    thanks for an answer.
    Yes, I know this. I want to know is there a possibility to change this behavior of paragraph, maybe by JS.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gutenberg wraps in tag text before link, link, and text after link’ is closed to new replies.