Index: openacs-4/packages/richtext-ckeditor5/tcl/richtext-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/richtext-ckeditor5/tcl/richtext-procs.tcl,v diff -u -N -r1.1 -r1.2 --- openacs-4/packages/richtext-ckeditor5/tcl/richtext-procs.tcl 5 Dec 2017 15:51:26 -0000 1.1 +++ openacs-4/packages/richtext-ckeditor5/tcl/richtext-procs.tcl 19 Jan 2018 01:23:35 -0000 1.2 @@ -70,7 +70,7 @@ Initialize an CKEditor richtext editor widget. } { - ns_log notice "initialize CKEditor instance with <$options>" + ns_log notice "initialize CKEditor 5 instance with <$options>" # Allow per default all CSS-classes, unless the user has specified # it differently @@ -369,14 +369,22 @@ ad_proc -public get_tag {-options} { Return the tag for rendering } { - ns_log notice "=== get_tag $options" + # + # For the time being, determine the tag just from the options + # and no other sources. + # + #ns_log notice "=== get_tag $options" + if {[dict exists $options editor] && [dict get $options editor] eq "ckeditor5" && [dict exists $options JSEditorClass] && [dict get $options JSEditorClass] ne "ClassicEditor" } { set edit_item_tag div + } else { + set edit_item_tag textarea } + return $edit_item_tag } }