Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Work for the first call, but not subsequent call when using modal #39

Open
DPineault opened this issue May 2, 2018 · 1 comment
Open

Comments

@DPineault
Copy link

The TinyMCE renders properly the first time, but calling the modal window again, it doesn't render at all.

I've seen a few posts about the issue, but never found a complete solution.

I tried calling the init() when the modal is shown from the index view (where the modal is opened from) but it doesn't seem to work?

    $("#modal").on("shown.bs.modal",function(){
        tinymce.init({
            "plugins":["advlist autolink lists link charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste","textcolor"],
            "toolbar":"undo redo | styleselect forecolor backcolor | bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
            "selector":"#tickets-details"
        });
    });

Can anyone shed some light on the matter?

@Eseperio
Copy link
Contributor

Eseperio commented Mar 6, 2019

See #45. The problem is that previous tinymce instance already exists.

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

No branches or pull requests

2 participants