TinyMCE on PopupFrom
Is it possible to have a TinyMCE Html Editor on PopupForm ?
I tried like this .. the
<editor asp-for="Body" asp-template="RichEditor"/>
but this error occour .. (on browser console)
ReferenceError: tinyMCE is not defined
mtugnoli
asked
at 16 Jan 2020
Answers
-
First make sure that what you're trying works on the page, outside of the popup.
TinyMCE
and similar plugins parse the document on document.ready, the content of the PopupForm is loaded when you open the popup, so it has to be initialized after the popup content was loaded. We have aTinyMCE
editor inside aPopupForm
on this page https://prodinner.aspnetawesome.com/Feedback You can download the code for this demo and have a look/copy from there.Omuanswered at 16 Jan 2020-
Now seem run... but no data is returned to controller..at 27 Jan 2020 mtugnoli
-
if you look in our demo, you can seeat 27 Jan 2020 Omu
tinymce.triggerSave();
being called on submit so that the value goes from mce to the textarea -
Run ok ! Thank you :)at 27 Jan 2020 mtugnoli
-