SafeExamBrowser / seb-mac

Safe Exam Browser for macOS and iOS
https://www.safeexambrowser.org/macosx
96 stars 39 forks source link

TinyMCE issue #341

Open aurelienb1 opened 7 months ago

aurelienb1 commented 7 months ago

Hi,

I want to repport TinyMCE issue with SEB. We encounter a lot of problems with TinyMCE and SEB during exams. This mainly concerns composition questions.

Test carried out with:

I agree that my Mac is not recent but it turns out that either TinyMCE is not displayed or that the student cannot enter the answer in WYSIWYG. Version 5 of TinyMCE does not pose a problem.

I am attaching a SEB file which configures the client to directly test TINYmce on their site, you can select the version of Tiny at the top left because the url points to version 5.

This is a problem because moodle integrates the latest version of TinyMCE.

Regards [SEB-TinyMce.zip](https://github.com/SafeExamBrowser/seb-mac/files/13460893/SEB-TinyMce.zip)

danschlet commented 7 months ago

Do you know if the modern WebView is used? This requires Moodle 4.1 or the latest 4.x versions. You can test if it's the modern WebView by trying pinch-to-zoom on a trackpad (only works with the modern one). I assume it's the classic WebView, which on macOS 10.14 will be a really old WebKit version. Maybe the modern WebView would work, but the WebKit version in SEB always depends on the macOS version, so you might have to update your macOS version/Mac. I would always recommend using the 3 latest macOS versions (those still get security updates by Apple).

aurelienb1 commented 7 months ago

I can make pinch-to-zoom on a trackpad with my macOS 10.14.

aurelienb1 commented 6 months ago

Hi,

We have make some tests. Here the result, my version macOS 10.14 (Safari 12.1), some JS fonction in TInyMCE is not supported by Safari (like Promise.allSettled()). It may cause some JS error and make Tiny not display anymore. I don't have enough information in the seb logs to identify what's going wrong more precisely.

My question is, my version of Safari is different under SEB because it displays 14.0.3 (I understand that its information comes from SEB) so how to check precisely the version of the engine used by SEB in order to be able to identify what is not working with the JS ?

Regards

danschlet commented 5 months ago

SEB correctly reports the WebKit version it is using. But the WebKit system framework (API) version depends on the macOS version used. Safari uses an own, embedded WebKit version, therefore unless you're using the latest macOS and Safari, these versions will differ.

Did you see this issue: https://github.com/SafeExamBrowser/seb-mac/issues/343

Seems like it's a duplicate of this issue, unfortunately I didn't realize that earlier.

swz23 commented 5 months ago

If these two issues (I reported #343) are indeed related, I'd like to clarify for context that we're using Atto as our editor in Moodle 4.1.2, not tinyMCE in any version.

"..[TinyMCE] is not displayed or that the student cannot enter the answer in WYSIWYG" doesn't sound very similar to the problem we're experiencing, but of course I'm happy to trust your judgment on this.

danschlet commented 5 months ago

Ok, not the same editor. I removed the duplicate label, but I assume it's the same underlying WebKit issue.