Open renetanikolova opened 5 years ago
I think the current version of React is not supported by react-tinymce-mention. I tried the simplest example and the script cannot compile:
./node_modules/react-tinymce-mention/node_modules/react-dom/lib/ReactNodeTypes.js Module not found: Can't resolve 'react/lib/React' in 'C:\Users\userName\projects\react-project\node_modules\react-tinymce-mention\node_modules\react-dom\lib'
Also, the version of TinyMCE for react that is in react-tinymce-mention dependencies is a pretty old one. I am using:
"@tinymce/tinymce-react": "2.3.0", "react": "^16.7.0"
Is this project still maintained since I saw the latest release of it was 2 years ago?
Thank you in advance!
Hi @renetanikolova - this project hasn't been maintained / worked on for a while and I don't have much time to look into it, but all in all the react side things is fairly simple and I think you could fork the project and upgrade quite easily! The above error is indeed due to a version mismatch (React has been vastly restructured in terms of file organization since this was used, and is incompatible with the latest.)
Additionally, babel, webpack and redux are a couple major versions ahead as well.
If you were to fork and upgrade the dependencies I think things would work. The code itself isn't too complicated. Could maybe even copy into your own project after installing some packages listed here https://github.com/Kindling/react-tinymce-mention/blob/master/package.json#L68
Hello, @damassi - thank you a lot for your response! I found a workaround, using: https://github.com/StevenDevooght/tinyMCE-mention I managed it to work appropriately.
If anyone is having any problems using it with React, feel free to contact me!
Thank you again for your comment, @damassi!
I don't think I have commit rights on this project anymore either, unfortunately, so I can't add any warnings to the README that it's no longer being updated. Sorry.
@renetanikolova did you found any good solution for this in react?
Hello Guys,
I need some help. I do not know why but the module CustomList cannot be found. Also, I am importing the Editor as described in the TyniMce guide for React: import {Editor} from '@tinymce/tinymce-react';
Can anyone help here? :/