mkhstar / suneditor-react

A React Component for SunEditor (WYSIWYG editor)
http://suneditor.com/
427 stars 105 forks source link

Suneditor fails to execute on NextJS 14 #340

Closed tnnquang closed 11 months ago

tnnquang commented 11 months ago

I am trying to use Suneditor-React but it crashes on NextJS version as described below

Version

Sunedtior-React: 3.6.1 Suneditor: 2.45.1 NextJS: 14.0.1 and 14.0.2, using App Router

Additional context

This is Suneditor's error message suneditor error My code config import 2 3

arasrezaei commented 11 months ago

same here

uusa35 commented 11 months ago

any updates same here

nukrobzero commented 11 months ago

hello, now i can fix by edit function "getSelectionNode" in path \node_modules\suneditor\src\lib\core.js line 1163 use can try. Screenshot 2023-11-12 193134

arasrezaei commented 11 months ago

for those who have problems: In your package.json file change the suneditor source link to:

git+https://github.com/arasrezaei/suneditor.git

Then do yarn or npm

quang13 commented 11 months ago

for those who have problems: In your package.json file change the suneditor source link to:

git+https://github.com/arasrezaei/suneditor.git

Then do yarn or npm

Thank you, this helped me solve this problem.

tnnquang commented 11 months ago

Thank you everyone for your help. Your method @arasrezaei helped me solve this error

miran248 commented 11 months ago

@arasrezaei Any chance you could submit a pr to the upstream library?