Bug #13907
openWTextEdit falsely indicating version mismatch
0%
Description
When WTextEdit runs (!verifyTinyMCEVersion(version_) - line 59 - it indicates that "Version of TinyMCE does not seem to match the version given in the config."
However, it seems that in line 179, the test for !s is returning false even though s seems to be initialized properly.
The version in wt_config.xml is "6" as is the version loaded via WTextEdit ("6"), so this should not generate a message.
Updated by Mark Travis 6 months ago
I've just run into another issue with WTextEdit.
I have the version of TinyMCE in wt_config.xml as "6.8.5"
When I try to load WTextEdit, I get the following errors:
Wt Wt: error during event handling: stoi() of 6.8.5 failed
Wt Wt: fatal error: stoi() of 6.8.5 failed
I traced this back to WTextEdit.C in line 171 "return Utils::stoi(version);"
Which in turn calls a wrapper to a boost library.
Updated by Matthias Van Ceulebroeck 5 months ago
- Target version set to 4.13.2
It seems a very minor bug, as this only warning. Regardless, it shouldn't happen. Likely it should check s.is_open().
Also, only the major version is sufficient.
Perhaps this ticket can also take that into account, when parsing.
Updated by Romain Mardulyn 4 months ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
Updated by Romain Mardulyn 4 months ago
- Related to Bug #14172: WApplication crash when using wrong TinyMCE version added
Updated by Romain Mardulyn 4 months ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn)
Updated by Stefan Bn 5 days ago
For current Wt 4.12.5 I do have this configuration setting:
<property name="tinyMCEVersion">7</property>
<property name="tinyMCEURL">https://cdnjs.cloudflare.com/ajax/libs/tinymce/7.9.1/tinymce.min.js</property>
The WTextEdit are working fine, but Wt is now showing this warning on every creation of a WTextEdit which does not seem correct. WTextEdit::version() does return the correct version number 7.
WTextEdit: Version of TinyMCE does not seem to match the version given in the config.
Also it would be nice if the documentation of WTextEdit could be updated to reflect the changes and compatiblity for newer TinyMCE versions introduced in https://redmine.emweb.be/issues/11272
https://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WTextEdit.html