znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
344 stars 83 forks source link

copy formatting option in ckeditor #370

Open gerald2545 opened 1 year ago

gerald2545 commented 1 year ago

Environment

Expected behaviour

have the option in ckeditor toolbar to copy formatting 2023-04-20_172250

Actual behaviour

no icon is available for this option

Additional information

it's not really a problem, but asked by my colleagues. I used to add it for OTRS.... with command line vi /opt/otrs/Kernel/Output/HTML/Layout.pm :%s/'Bold'/'CopyFormatting', 'Bold'/

if you think it can be integrated in znuny source code, I can suggest a merge request

Screenshots

hanneshal commented 1 year ago

Hi @gerald2545 I guess this is meant to be a feature request? I can't remember to have this feature in the past.

If you know what the plugin is called and checked that it is delivered with Znuny, you can just add in the sysconfig.

Frontend::RichText::Settings###ExtraPlugins

Regards Johannes

gerald2545 commented 1 year ago

yes, it's a feature request...I hope I didn't post at the wrong plage...will check. I saw in the release notes that ckeditor could be configured in "system configuration"..but didn't find help in znuny documentation I just test : add copyformatting to Frontend::RichText::Settings###ExtraPlugins and deployed image

I have no new icon. I even did

otrs@esitoul-rocky-prod: ~/bin $ ./otrs.Console.pl Maint::Cache::Delete
Deleting cache...
Done.

otrs@esitoul-rocky-prod: ~/bin $ ./otrs.Console.pl Maint::Loader::CacheCleanup
Cleaning up the loader cache files...
Done.

otrs@esitoul-rocky-prod: ~/bin $ ./otrs.Console.pl Maint::Loader::CacheGenerate
Generating loader cache files...
Done.

but no changes in ckeditor toolbar

I think it is deleverd with znuny as if modify /opt/otrs/Kernel/Output/HTML/Layout.pm with :%s/'Bold'/'CopyFormatting', 'Bold'/

it works

gerald2545 commented 1 year ago

i find the plugin code on https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_plugins_copyformatting.html

hanneshal commented 1 year ago

I checked it for you. It part of the plugin list and you can add it.

image