How to show Text color and BG color in ckeditor

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

How to show Text color and BG color in ckeditor

Postby jffeng_cloud » Fri Apr 13, 2018 10:35 am

TestLink version 1.9.16
xampp-linux-x64-5.6.33-0-installer.run
Ubuntu server 17.10

I met the some issue as:

https://stackoverflow.com/questions/451 ... -on-testli

while I change the order for the cfg/tl_ckeditor_config.js, it did worked!!, but 'TextColor','BGColor' still can't be seen in Web Page

config.toolbar_Full =
[
['Source','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'],
'/',
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
['BidiLtr', 'BidiRtl' ],
['Link','Unlink','Anchor'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
'/',
['Styles','Format','Font','FontSize'],
['TextColor','BGColor'],
['Maximize','ShowBlocks','-','About']
];
jffeng_cloud
TestLink user
 
Posts: 3
Joined: Thu Apr 12, 2018 5:52 pm

Re: How to show Text color and BG color in ckeditor

Postby TurboPT » Sat Apr 14, 2018 1:40 pm

According to ckeditor's documentation, additional (optional) plugins are needed to support those two features.

On the same page, relative to those two items, they also say: (red emphasis my edit)
ckeditor website wrote: The Text and Background Color feature does not create semantically meaningful content. Even if you adjust the color list to match the style of your website, your users will be able to arbitrarily apply colors to text elements without any consistency.

A much better idea for creating semantic content and maintaining consistent styling across your website is to adjust the Styles drop-down list to include some colors that could be applied to user-created content and would still be consistent with your website design.

Probably not what you want to hear, but now you know.

I added this same information as an answer to the stackoverflow question as well, but without the red emphasis (only normal bold), as font coloring is not an option.
(stackoverflow's editing capabilities are restrictive)
TurboPT
Member of TestLink Community
 
Posts: 337
Joined: Sun Dec 10, 2006 4:51 am


Return to TestLink 1.9



Who is online

Users browsing this forum: No registered users and 8 guests

cron