Details
-
Improvement
-
Resolution: Declined
-
Neutral
-
None
-
None
-
None
-
-
Empty show more show less
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: