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.

Suggestion for reinit tinymce  #33

Description

@farhansyakir

when you combine tabular form and widget tinymce like this
<attribute> => [ 'type' => TabularForm::INPUT_WIDGET, 'widgetClass'=>\dosamigos\tinymce\TinyMce::classname(), ],

the old tinymce will not appear when you click add, so I suggest to add this code to reinit the tinymce
$js[] = "tinymce.EditorManager.execCommand('mceRemoveEditor',true, '$id');";

in dosamigos\tinymce\TinyMce

right above the
$js[] = "tinymce.init($options);";

thank you

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions