You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
@Eseperio with the fix, I'm still experiencing wierd behavior in Firefox (latest). Without the fix, TinyMCE does not initialize the 2nd time. But with the fix, the TinyMCE stays empty on 2nd initialisations. Only by adding a setTimeout around the init, it will fill up with the actual content. Chrome does not experience this behavior. Are you seeing the same behavior in your application?
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The text was updated successfully, but these errors were encountered: