[MGNLCKEDIT-28] selected option of config.format_tags does not show several words Created: 05/Dec/22  Updated: 21/Dec/22  Resolved: 21/Dec/22

Status: Closed
Project: CKEditor Integration (closed)
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Sergio Marino Assignee: Jaroslav Simak
Resolution: Declined Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File custom-config.js     PNG File image-2022-12-05-08-32-11-601.png     Zip Archive pepe.zip    
Template:
Acceptance criteria:
Empty

 Description   

It would be nice if ckeditor would be able to customize the content of the selected dropdown button, I mean that the "config.format_tags" is able to handle values of several words separated by a whitespace once an option is selected.

How to reproduce?
From Resources FIles App go to ckeditor folder and create the attached file, custom-config.js. Later create a component that uses that configuration:

    richText:
      label: Text editor
      $type: richTextField
      height: 500
      tables: true
      source: true
      configJsFile: /.resources/ckeditor/custom-config.js

You can use the attached light-module.

Try to create a page of type "Pepe" and the third field, which is a rich-text, will use the custom-config configuration.

What we want to achive from this line,

 
     config.format_Parrafo_grande = { name: 'Parrafo grande', element: 'p', attributes: { 'class': 'big' } };

is that the name of the selected option of the dropdown and the hover is "Parrafo grande" but instead it keeps showing "Parrafo_grande". This is what it is currently going on:


Generated at Sun Feb 11 23:59:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.