dasmikko / strapi-tiptap-editor

A drop-in replacement for the strapi editor
MIT License
64 stars 30 forks source link

Tiptip not focusable #63

Closed Clex1o1 closed 1 year ago

Clex1o1 commented 1 year ago

Hello installed the tiptap plugin into my alomost fresh strapi: Node 18 Strapi 4.6.1 and strapi-tiptap-editor 0.9.10. If I click inside a editor field I get this error message: Object is not a function (near '...tippy_js__WEBPACK_IMPORTED_MODULE_2__...')

I start strapi with strapi build --no-optimization && strapi develop --watch-admin for better debugging. I can see error in webpacked files then.

Any ideas?

dasmikko commented 1 year ago

I can't seem to seem figure out why this happens. It could be an issue with strapis webpack setup.

dasmikko commented 1 year ago

Try adding this to your strapi webpack.config.js as in mentioned in this issue: https://github.com/dasmikko/strapi-tiptap-editor/issues/64#issuecomment-1451876909

config.plugins.push(new webpack.NormalModuleReplacementPlugin(
  /^tippy\.js$/,
  'tippy.js/dist/tippy-bundle.umd.min.js'
))
dasmikko commented 1 year ago

Please reopen if still an issue.

Clex1o1 commented 1 year ago

Try adding this to your strapi webpack.config.js as in mentioned in this issue: #64 (comment)

config.plugins.push(new webpack.NormalModuleReplacementPlugin(
  /^tippy\.js$/,
  'tippy.js/dist/tippy-bundle.umd.min.js'
))

this works for me! thank you!