October: Applying italics through the WYSIWYG editor doesn't work for multiple paragraphs

Created on 4 Dec 2020  路  1Comment  路  Source: octobercms/october

  • OctoberCMS Build: 1.1.1
  • PHP Version: 7.2
  • Database Engine: MySQL
  • Plugins Installed: RainLab.Blog-v1.4.3

Description:

Hitting the I button in the WYSIWYG editor after highlighting multiple paragraphs correctly applies the * at the beginning and end of the highlighted content, but does not apply italics correctly.

As a user I would expect this to work correctly by italicizing all highlighted content. If I replace the *'s with <em> tags it works just fine.

Steps To Reproduce:

A quick sample to reproduce this can be as simple as inputting this into the editor

*Hello I am paragraph number one.

And I am number two.*

You'll see that the preview of the text does not properly italicize and the published content does not receive italics in the web page render either.

Question

Most helpful comment

@RyanSimon <em> tags are an inline tag that is not supposed to be used across blocks. Given that paragraphs are broken up with paragraph tags, it would not be semantic HTML to surround them with <em></em>, which is why you cannot use * across paragraphs either.

You'll need to instead wrap each paragraph with * ... * to italicise multiple paragraphs.

>All comments

@RyanSimon <em> tags are an inline tag that is not supposed to be used across blocks. Given that paragraphs are broken up with paragraph tags, it would not be semantic HTML to surround them with <em></em>, which is why you cannot use * across paragraphs either.

You'll need to instead wrap each paragraph with * ... * to italicise multiple paragraphs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mittultechnobrave picture mittultechnobrave  路  3Comments

EbashuOnHolidays picture EbashuOnHolidays  路  3Comments

dunets picture dunets  路  3Comments

Flynsarmy picture Flynsarmy  路  3Comments

axomat picture axomat  路  3Comments