Card Element and Paragraph Tag

Hi,

I noticed a small bug in an interaction between the WP Rich Text editor and Cornerstone. I found it through the Back Content of the Card, but it probably applies to other elements as well.

In the Setup section, if I select <p> for the HTML element and then use the Rich Text Editor to write the content, the text is improperly styled. This is because the Editor creates its own paragraph tags, which implicitly closes the original <p> tag that has the .x-text-content-text-primary class and therefore a lot of the styling that the interface applies to the element.

Just wanted to report this bug to let you know. If I switch to the <div> element it’s fine, so there’s no issue for me directly.

Hi Spencer,

Thanks for reaching out.
Thanks for recognizing that, but the paragraph has its own default style defined in the theme and that is why when you select the p tag it gets that style applied. So in that case, you need to override that style by using the custom CSS code or need to use any other option to avoid such.

Hope I am able to explain this.
Thanks

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