Index: openacs-4/packages/richtext-tinymce/richtext-tinymce.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/richtext-tinymce/richtext-tinymce.info,v diff -u -r1.2.2.11 -r1.2.2.12 --- openacs-4/packages/richtext-tinymce/richtext-tinymce.info 6 Aug 2024 17:17:41 -0000 1.2.2.11 +++ openacs-4/packages/richtext-tinymce/richtext-tinymce.info 11 Aug 2024 07:45:55 -0000 1.2.2.12 @@ -9,14 +9,14 @@ f f - + Antonio Pisano Richtext editor plugin for integrating TinyMCE in OpenACS 2024-08-02 0 - - + + Index: openacs-4/packages/richtext-tinymce/tcl/richtext-init.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/richtext-tinymce/tcl/richtext-init.tcl,v diff -u -r1.2.2.4 -r1.2.2.5 --- openacs-4/packages/richtext-tinymce/tcl/richtext-init.tcl 30 Jul 2024 11:41:55 -0000 1.2.2.4 +++ openacs-4/packages/richtext-tinymce/tcl/richtext-init.tcl 11 Aug 2024 07:45:55 -0000 1.2.2.5 @@ -2,8 +2,9 @@ Initialization for tinymce } -::richtext::tinymce::register_urns +::util::resources::register_urns -namespace richtext::tinymce + template::util::richtext::register_editor tinymce # Local variables: Index: openacs-4/packages/richtext-tinymce/tcl/richtext-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/richtext-tinymce/tcl/richtext-procs.tcl,v diff -u -r1.4.2.15 -r1.4.2.16 --- openacs-4/packages/richtext-tinymce/tcl/richtext-procs.tcl 30 Jul 2024 10:25:45 -0000 1.4.2.15 +++ openacs-4/packages/richtext-tinymce/tcl/richtext-procs.tcl 11 Aug 2024 07:45:55 -0000 1.4.2.16 @@ -87,6 +87,9 @@ }}] } + dict set URNs urn:ad:js:tinymce tinymce.min.js + dict set URNs urn:ad:css:tinymce skins/ui/oxide/skin.min.css + set major [lindex [split $version .] 0] # @@ -105,7 +108,7 @@ https://download.tiny.cloud/tinymce/community/tinymce_$version.zip https://download.tiny.cloud/tinymce/community/languagepacks/$major/langs.zip }] \ - urnMap {} \ + urnMap $URNs \ cspMap $cspMap \ versionCheckAPI {cdn cdnjs library tinymce count 5} \ vulnerabilityCheck {service snyk library tinymce} \ @@ -332,29 +335,6 @@ } { } - - ad_proc -private ::richtext::tinymce::register_urns {} { - Register URNs either with local or with CDN URLs. - } { - set resource_info [resource_info] - set prefix [dict get $resource_info prefix] - - # - # Settings for CDN and local installs are the same - # - dict set URNs urn:ad:js:tinymce $prefix/tinymce.min.js - dict set URNs urn:ad:css:tinymce $prefix/skins/ui/oxide/skin.min.css - - foreach {URN resource} $URNs { - template::register_urn \ - -urn $URN \ - -resource $resource \ - -csp_list [expr {[dict exists $resource_info cspMap $URN] - ? [dict get $resource_info cspMap $URN] - : ""}] - } - } - } # Local variables: