• Resolved MarkRH

    (@markrh)


    Trying out the new Gutenberg editor with WP 4.9.8 in a local environment. I did figure out how to make the editor font match Twenty Twelve’s font. Hopefully the Twenty XX themes will get updated with corresponding Gutenberg editor styles.

    Anyway, I happen to use the CodeColorer plugin which allows for styling blocks of code or inline code. I have determined that I should use the Custom HTML block and not the CODE block to avoid getting a Code block inside a code block on the front-end (two sets of scrollbars, etc).

    Anyway, for inline code, it uses something like:
    <code inline="true" lang="css">font-family: Helvetica, Arial, sans-serif;</code>

    Some combination of selecting blocks or going between visual and html removes the inline="true" attribute. Actually, further testing as I write this shows that it gets stripped when I add additional text to the block in the visual editor.

    Is there some way I can add to the list of acceptable tag attributes for these blocks to keep things being stripped out?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Paragraph(Other) Blocks Stripping Tag Attributes’ is closed to new replies.