Upgrading Ckeditor

Hello.

Is it possible to upgrade ckeditor in openemr?
If yes, How can I do this?

Thanks.

There are currently three versions of ckeditor in the system. Look in the openemr/public/assets. The latest version in the program is 4-7-1. The latest version for download is 5.
If you want to update the version, I would recommend using the composer to do it. Look in the package.json file you should find all the information you need to update the package.

1 Like

Hello.
Sorry, I didn’t understand. Is composer a program?
I can download from ckeditor website a customized package (consist of plugins and themes), but i don’t know which modifications are required in openemr files. Should I edit eny files in openemr?
Thank you.

https://www.open-emr.org/wiki/index.php/Composer#Overview

2 Likes

Hi. I installed composer. But i am not familiar with it. If you don’t mind, would you please provide me a step by step guide?

@Dr_Torabi why do you think that CKEditor needs to be changed? Are there some special features you want in the package that is not there?

You will need to learn programming if you have not already begun or already know how.
Yes, will need to edit files. Back up, back up, back up before making any changes to files in your system. The system is easy to break and harder to put back without proper backup of the original file.

Dear Sherwin Gaddis.

Thanks for your attention.

I Want to add “justify” plugin to ckeditor. The current ckeditor version embeded in openemr does not have this plugin.

The justify plugin is already in the system. You need to enable it. I am not 100% sure how to enable the feature plugin. The web does not have straight forward information but from what I can find is you will have to edit the library/js/nncustom_config.js file.

Based on this link

https://ckeditor.com/old/forums/CKEditor-3.x/add-plugin-config-file

Do this,

It might work.