Project

General

Profile

Actions

Bug #13907

closed
MT RM

WTextEdit falsely indicating version mismatch

Bug #13907: WTextEdit falsely indicating version mismatch

Added by Mark Travis about 1 year ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
08/05/2025
Due date:
% Done:

0%

Estimated time:

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.


Related issues 1 (0 open — 1 closed)

Related to Bug #14172: WApplication crash when using wrong TinyMCE versionClosedRomain Mardulyn12/03/2025

Actions

MT Updated by Mark Travis about 1 year ago Actions #1

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.

MV Updated by Matthias Van Ceulebroeck 11 months ago Actions #2

  • 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.

RM Updated by Romain Mardulyn 10 months ago Actions #3

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn

RM Updated by Romain Mardulyn 10 months ago Actions #4

  • Related to Bug #14172: WApplication crash when using wrong TinyMCE version added

RM Updated by Romain Mardulyn 10 months ago Actions #5

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)

SB Updated by Stefan Bn 7 months ago Actions #6

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

RM Updated by Romain Mardulyn 6 months ago Actions #7

  • Target version changed from 4.13.2 to 4.13.3

MV Updated by Matthias Van Ceulebroeck 5 months ago Actions #8

  • Assignee set to Matthias Van Ceulebroeck

RM Updated by Romain Mardulyn 5 months ago Actions #9

  • Status changed from Review to Implemented @Emweb
  • Assignee changed from Matthias Van Ceulebroeck to Romain Mardulyn

RM Updated by Romain Mardulyn 4 months ago Actions #10

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom