Heading Tags have nested <span> tags

If I make a selection of text and choose “Heading 4” to wrap it in an H4 tag, the text is also wrapped in a tag which breaks the formatting. The text does not look like an <h4> at that point.

I’ve tried removing lines before and after the selected text, cut/paste’ing the text again but all to no avail. Sometimes it works.

If I have some content that starts with an H3 then has a couple of paragraphs (<p>) then I want a sub-heading with an H4, that H4 will have it’s text in a <span>

Example:
<h4> <span>Some Heading Text</span> </h4>

What I want is:Preformatted text
<h4>Some Heading Text</h4>

I will reply to my own post but it still needs a solution.

I found that cutting and pasting my content from Google Docs inserts arbitrary code, specifically span tags with some formatting applied.

Wordpress has a clear formatting feature. Is there an equivalent available in Cornerstone editor?

Hi Robert,

Cornerstone is using the default Wordpress editor.

A workaround would be if you are copying text from any document and pasting it in rich text mode, do a CTRL SHIFT V instead of the usual CTRL V if you are using Mac, it should be CMD SHIFT V. This will paste the text and will not include the formatting from the source document.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.