Default font sizes need class attribute allowed on span tag

Created on 5 December 2024, about 2 months ago

Problem/Motivation

If default font sizes are used, they are implemented as classes on span tag. Plugin definition only allows `` which then results in stripping of classes by "Allowed HTML tags" filter.

Steps to reproduce

  1. Enabled font size plugin
  2. It will add <span> to "Allowed HTML tags" filter.
  3. Use font size on the content with options of tiny and large.
  4. See that in CKEditor it works.
  5. Save the content, check it in frontend.
  6. Observe the span tags without classes and no difference in font size.

Proposed resolution

Add <span class> to elements of ckeditor5_plugin_pack_font__font_size plugin

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇩🇪Germany a.dmitriiev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024