Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a problem when uploading images,the LFMButton woking error #580

Closed
yunter opened this issue May 3, 2024 · 3 comments
Closed

Comments

@yunter
Copy link

yunter commented May 3, 2024

There is a problem when uploading images,the LFMButton woking error:
WX20240503-221121@2x
Uncaught TypeError: Cannot read properties of undefined (reading 'top')
at t.value (summernote-lite.min.js:2:148092)
at HTMLButtonElement.handle (jquery-3.6.4.min.js:2:46636)
at HTMLButtonElement.dispatch (jquery-3.6.4.min.js:2:43184)
at y.handle (jquery-3.6.4.min.js:2:41168)
Maybe it's a compatibility issue

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'posts'
  2. Click on 'create'
  3. Mouse over summernote LFMButton image icon got above error.
  4. See attach file

Expected behavior
can show tooltip and none errors

Screenshots
See attach file.

Additional Information
V11.5 and V11.6

Install by composer create-project nasirkhan/laravel-starter

{
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build"
},
"devDependencies": {
"@coreui/coreui": "^5.0.0",
"@fortawesome/fontawesome-free": "^6.5.1",
"@popperjs/core": "^2.11.8",
"@tailwindcss/forms": "^0.5.2",
"alpinejs": "^3.4.2",
"autoprefixer": "^10.4.2",
"axios": "^1.6.4",
"bootstrap": "^5.3.3",
"flowbite": "^2.3.0",
"jquery": "^3.7.1",
"laravel-vite-plugin": "^1.0",
"postcss": "^8.4.31",
"sass": "^1.72.0",
"sass-loader": "^14.1.1",
"simplebar": "^6.2.5",
"tailwindcss": "^3.1.0",
"vite": "^5.2"
}
}

@nasirkhan
Copy link
Owner

I found this issue as well, but the editor workes with this. Unfortunately, the 'summernote' has not been updated for a long time. I was thinking about using other WYSIWYG text editor.

It would be great if you may have a better solution, you may send pull request as well.

@yunter
Copy link
Author

yunter commented May 22, 2024

Is a problem with the Summernote-Lite version, so maybe Quill Rich Text Editor is an alternative.

@yunter yunter closed this as completed May 22, 2024
@nasirkhan
Copy link
Owner

@yunter
thanks for the update, does the Quill Rich Text Editor have file browser? or does it fits in with Laravel Starter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants