ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
TinyMCE on PopupFrom
Title:
B
I
{code}
?
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
Save Changes
Cancel
mtugnoli
asked at 16 Jan 2020
Answers
B
I
{code}
?
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 a `TinyMCE` editor inside a `PopupForm` on this page https://prodinner.aspnetawesome.com/Feedback You can download the code for this demo and have a look/copy from there.
Save Changes
Cancel
Omu
answered 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 see `tinymce.triggerSave();` being called on submit so that the value goes from mce to the textarea
at 27 Jan 2020
Omu
Run ok ! Thank you :)
at 27 Jan 2020
mtugnoli
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK