Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • asaf 8 posts 78 karma points
    Oct 18, 2018 @ 15:20

    find and replace source code in rich text editor

    Hay, I have a little problem in rich text editor. I have sytle, that for now generates headers style like this:

    <span class="h1">some header</span>

    and this is bad for SEO and accessibility. Now I have new style, which generates headers as expected, but I want to replace all old style in my site with this:

    <h1>some header</h1>

    Is there any suggestion or tool for it?

    Thanks for help.

  • David Denholm 2 posts 72 karma points
    Nov 26, 2021 @ 17:33
    David Denholm

    if, when inside the source code editor, you press CTRL+F you will see a search and replace dialogue. After putting in the search text, press the plus and it becomes a replace dialogue.

    It certainly works in Umbraco Uno!

    Good luck

    Dialogue as below

  • Lucas Michaelsen 24 posts 221 karma points
    Nov 27, 2021 @ 22:31
    Lucas Michaelsen

    hello asaf,

    When you get

    <span class="h1">some header</span>

    Is it with the "Formats"?

    If it are, then look into the format rule you made, becouce the RTE should render out a H1 if config correct as ex.

    Name: H1 Alias: h1 styles: ""

    Alias is the CSS selector, so write H1 is the selector of an element, and .h1 is a class selector where RTE will wrap the wished text with a SPAN element

Please Sign in or register to post replies

Write your reply to: