Edlib icon indicating copy to clipboard operation
Edlib copied to clipboard

Use CKEditor 5.0 in Edlib

Open tmkarlsen opened this issue 2 years ago • 2 comments

Can CKE 5 be used in part of Edlib? Especially the possibility of setting language parameters on text snippets would be interesting to make sure screen readers read correctly: https://ckeditor.com/docs/ckeditor5/latest/features/language.html

tmkarlsen avatar Nov 08 '23 07:11 tmkarlsen

The CKEditor used by H5P content types is included in the H5P Editor composer package and not something we can, or should, update. The migration guide from version 4 to 5 contains a warning that

Because of the differences in features, the data produced with CKEditor 4 may not be compatible with CKEditor 5 which may lead to data loss. Any data that is not supported by features enabled in CKEditor 5 will be removed when loaded into the editor.

This means that the CKEditor used in "Script view" cannot be updated either, it must use a version that is compatible with the content that the H5P included version produces and can process.

chrieinv avatar Nov 08 '23 12:11 chrieinv

According to CKEditor FAQ (https://support.ckeditor.com/hc/en-us/articles/115005971405-How-to-migrate-from-CKEditor-4-to-CKEditor-5)

...moving applications using a previous CKEditor version to version 5 cannot be simply called an "upgrade". It is something bigger, so the "migration" term fits better.

H5P Group is working on migrating to CKEditor 5 (https://github.com/h5p/h5p-editor-php-library/tree/JI-5152-ckeditor5), and once that is merged into the master branch, we will look into migrating Edlib to CKEditor 5

chrieinv avatar Feb 20 '24 13:02 chrieinv