Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was 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

Description

@DPineault

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions