Comments (6)
@mohamedsabil83 its working now
from filament-forms-tinyeditor.
Any issues appear in the browser console?
from filament-forms-tinyeditor.
Try this version https://github.com/olehlong/filament-forms-tinyeditor/blob/2.x/resources/views/tiny-editor.blade.php . I have a slightly modified local version in my project, so I'm not sure it will work in the plugin.
Just adding destroy to x-data without Editor variable might work as well
destroy: () => tinymce.get('tiny-editor-{{ $getId() }}')?.remove()
but it didn't work in a custom page's action form. Firefox throws an error sometimes, but editor still works every time.
Edit: although destroy() function and editor variable are not needed (editor is already undefined when destroy called) and just using createEditor and render works:
let editor = tinymce.createEditor('tiny-editor-{{ $getId() }}', {
...
editor.render();
from filament-forms-tinyeditor.
By saying it didn't work in a custom page's action form you mean outside panel?
from filament-forms-tinyeditor.
No, inside a panel. Custom resource page https://filamentphp.com/docs/3.x/panels/resources/custom-pages with an action modal form https://filamentphp.com/docs/3.x/actions/modals#modal-forms
from filament-forms-tinyeditor.
I just released a new tag. Can you check?
from filament-forms-tinyeditor.
Related Issues (20)
- [Bug]: HOT 1
- [Bug]: Data is not saved HOT 1
- [Bug]: direction doesn't change when locale change using spatie-laravel-translatable-plugin ( for RTL languages) HOT 4
- [Bug]: Undefined variable $getHintAction HOT 3
- Not compatible with panel spa ->spa() HOT 3
- [Bug]: not work required check
- [Bug]: Image saved in db doesn't work while edit works HOT 5
- [Bug]: Copy-paste bullet points not working correctly in Chrome Browser HOT 1
- Any change the TinyMce version will be updated to V6 ? HOT 4
- [Bug]: Problems using TinyEditor inside Repeater in RelationManager HOT 6
- [Bug]: HOT 4
- [Bug]: [v1.7.5] Uncaught SyntaxError: expected expression, got '<' HOT 2
- [Bug]: Editor in nested repeater breaks after changing the order HOT 3
- [Bug]: TinyEditor field does not appear on production machine HOT 3
- [Bug]: Not properly load with spatie-laravel-translatable-plugin after cople changing languges HOT 7
- Error when displaying image on s3 disk HOT 2
- [Bug]: No dark mode error HOT 2
- [Bug]: Cannot focus on field inside TinyEditor toolbox modal HOT 2
- [Bug]: cannot see editor in page HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filament-forms-tinyeditor.