Coder Social home page Coder Social logo

Comments (6)

rahmanramsi avatar rahmanramsi commented on August 16, 2024 1

@mohamedsabil83 its working now

from filament-forms-tinyeditor.

mohamedsabil83 avatar mohamedsabil83 commented on August 16, 2024

Any issues appear in the browser console?

from filament-forms-tinyeditor.

olehlong avatar olehlong commented on August 16, 2024

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.

mohamedsabil83 avatar mohamedsabil83 commented on August 16, 2024

By saying it didn't work in a custom page's action form you mean outside panel?

from filament-forms-tinyeditor.

olehlong avatar olehlong commented on August 16, 2024

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.

mohamedsabil83 avatar mohamedsabil83 commented on August 16, 2024

I just released a new tag. Can you check?

from filament-forms-tinyeditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.