Skip to content

Commit 8e86e51

Browse files
Bump tinyMCE default version number to 8.0.1
This is a major release upgrade, with a couple breaking changes (see https://www.tiny.cloud/docs/tinymce/latest/migration-from-7x/). As language pack for version 8 do not exist yet, we currently keep using those from 7 for any version >= 7. This should go away as soon as an own language pack is released for 8.
1 parent 81d9aab commit 8e86e51

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

‎richtext-tinymce.info‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
<implements-subsite-p>f</implements-subsite-p>
1010
<inherit-templates-p>f</inherit-templates-p>
1111

12-
<version name="2.1.9" url="http://openacs.org/repository/download/apm/richtext-tinymce-2.1.9.apm">
12+
<version name="3.0.0" url="http://openacs.org/repository/download/apm/richtext-tinymce-3.0.0.apm">
1313
<owner url="mailto:antonio@elettrotecnica.it">Antonio Pisano</owner>
1414
<summary>Richtext editor plugin for integrating TinyMCE in OpenACS</summary>
1515
<release-date>2024-09-02</release-date>
1616
<maturity>2</maturity>
1717

18-
<provides url="richtext-tinymce" version="2.1.9"/>
18+
<provides url="richtext-tinymce" version="3.0.0"/>
1919
<requires url="acs-tcl" version="6.0.0d4"/>
2020
<requires url="acs-templating" version="5.10.1"/>
2121
<requires url="attachments" version="0.14.0"/>

‎tcl/richtext-procs.tcl‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ namespace eval ::richtext::tinymce {
2020
# configuration file:
2121
#
2222
# ns_section ns/server/${server}/acs/fa-icons
23-
# ns_param Version7.6.1
23+
# ns_param Version 8.0.1
2424
#
2525
set parameter_info {
2626
package_key richtext-tinymce
2727
parameter_name Version
28-
default_value 7.9.1
28+
default_value 8.0.1
2929
}
3030

3131
ad_proc resource_info {
@@ -93,6 +93,15 @@ namespace eval ::richtext::tinymce {
9393

9494
set major [lindex [split $version .] 0]
9595

96+
#
97+
# tinyMCE 8 currently does not ship with an own language pack,
98+
# but the one for 7 seems to work fine.
99+
#
100+
# Until a proper language pack is released, we will use the
101+
# one for 7 for any later version.
102+
#
103+
set lang_version [expr {min(7, $major}]
104+
96105
#
97106
# Return the dict with at least the required fields
98107
#
@@ -107,7 +116,7 @@ namespace eval ::richtext::tinymce {
107116
extraFiles {} \
108117
downloadURLs [subst {
109118
https://download.tiny.cloud/tinymce/community/tinymce_$version.zip
110-
https://download.tiny.cloud/tinymce/community/languagepacks/$major/langs.zip
119+
https://download.tiny.cloud/tinymce/community/languagepacks/$lang_version/langs.zip
111120
}] \
112121
urnMap $URNs \
113122
cspMap $cspMap \

0 commit comments

Comments
 (0)