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: