Index: openacs-4/packages/xowiki/tcl/form-field-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/form-field-procs.tcl,v diff -u -r1.284.2.247 -r1.284.2.248 --- openacs-4/packages/xowiki/tcl/form-field-procs.tcl 6 May 2024 14:47:07 -0000 1.284.2.247 +++ openacs-4/packages/xowiki/tcl/form-field-procs.tcl 8 May 2024 09:00:33 -0000 1.284.2.248 @@ -3695,6 +3695,16 @@ return $result } + richtext::ckeditor4 instproc imageSelectorDialog {} { + # + # Hook for downstream implementation to override the image + # selection dialog with a different endpoint. + # + # @return URL + # + return ${:imageSelectorDialog}?parent_id=[${:object} item_id] + } + richtext::ckeditor4 instproc render_input {} { set disabled [:is_disabled] set is_repeat_template [:is_repeat_template_p] @@ -3821,7 +3831,7 @@ extraPlugins: '[join ${:extraPlugins} ,]', extraAllowedContent: '${:extraAllowedContent}', contentsCss: '${:contentsCss}', - imageSelectorDialog: '[:imageSelectorDialog]?parent_id=[${:object} item_id]', + imageSelectorDialog: '[:imageSelectorDialog]', ready_callback: '$ready_callback2', customConfig: '${:customConfig}', textarea_id: id