Index: openacs-4/packages/richtext-ckeditor5/tcl/richtext-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/richtext-ckeditor5/tcl/richtext-init.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/richtext-ckeditor5/tcl/richtext-init.tcl 5 Dec 2017 15:51:26 -0000 1.1 +++ openacs-4/packages/richtext-ckeditor5/tcl/richtext-init.tcl 19 Jul 2024 11:46:20 -0000 1.2 @@ -1 +1,17 @@ template::util::richtext::register_editor ckeditor5 + +if {[apm_package_installed_p xowiki]} { + # + # We become the preferred richtext editor for xowiki, if none was + # chosen so far. + # + set preferred_editor [::parameter::get_global_value \ + -package_key xowiki \ + -parameter PreferredRichtextEditor] + if {$preferred_editor eq ""} { + ::parameter::set_global_value \ + -package_key xowiki \ + -parameter PreferredRichtextEditor \ + -value "ckeditor5" + } +}