Crash once click WYSIWYG editor

os: macOS 13.0 Ventura

Error
Joplin encountered a fatal error and could not continue.

To report the error, please copy the entire content of this page and post it on Joplin forum or GitHub.

If the error persists you may try to restart in safe mode, which will temporarily disable all plugins.

Message
editor.setMode is not a function

Version info
Joplin for Desktop

Copyright © 2016-2022 Laurent Cozic
Joplin 2.9.17 (prod, darwin)

Client ID: 1adba60e796a40d8a6bbb30713ed42aa
Sync Version: 3
Profile Version: 41
Keychain Supported: Yes

Revision: e5d379233 (dev)
Stack trace
TypeError: editor.setMode is not a function
at /Applications/Joplin.app/Contents/Resources/app.asar/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.js:487:16
at commitHookEffectListMount (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.development.js:23150:26)
at commitPassiveMountOnFiber (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.development.js:24926:13)
at commitPassiveMountEffects_complete (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.development.js:24891:9)
at commitPassiveMountEffects_begin (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.development.js:24878:7)
at commitPassiveMountEffects (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.development.js:24866:3)
at flushPassiveEffectsImpl (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.development.js:27039:3)
at flushPassiveEffects (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.development.js:26984:14)
at /Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-dom/cjs/react-dom.development.js:26769:9
at workLoop (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/scheduler/cjs/scheduler.development.js:266:34)
Component stack

at TinyMCE (/Applications/Joplin.app/Contents/Resources/app.asar/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.js:92:54)
at div
at div
at div
at NoteEditor (/Applications/Joplin.app/Contents/Resources/app.asar/gui/NoteEditor/NoteEditor.js:58:68)
at ConnectFunction (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-redux/lib/components/connect.js:246:87)
at div
at I (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/styled-components/dist/styled-components.cjs.js:1:19344)
at div
at div
at ResizableLayout (/Applications/Joplin.app/Contents/Resources/app.asar/gui/ResizableLayout/ResizableLayout.js:46:45)
at div
at MainScreenComponent (/Applications/Joplin.app/Contents/Resources/app.asar/gui/MainScreen/MainScreen.js:74:9)
at ConnectFunction (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-redux/lib/components/connect.js:246:87)
at div
at NavigatorComponent (/Applications/Joplin.app/Contents/Resources/app.asar/gui/Navigator.min.js:9:1)
at ConnectFunction (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-redux/lib/components/connect.js:246:87)
at exports.ThemeProvider (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/styled-components/dist/styled-components.cjs.js:1:25041)
at ae (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/styled-components/dist/styled-components.cjs.js:1:13420)
at RootComponent (/Applications/Joplin.app/Contents/Resources/app.asar/gui/Root.js:103:1)
at ConnectFunction (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-redux/lib/components/connect.js:246:87)
at ErrorBoundary (/Applications/Joplin.app/Contents/Resources/app.asar/gui/ErrorBoundary.js:21:9)
at Provider (/Applications/Joplin.app/Contents/Resources/app.asar/node_modules/react-redux/lib/components/Provider.js:19:3)

Where did you get this version from?

HI, Laurent

I build it on a macOS with node 16, It seems the release version works perfectly, I think it might be something wrong with my env, thanks

Please pull the latest changes, it seems that TinyMCE was indeed broken in that release

Thanks Laurent, the latest code works.