Unik's avatar
Level 1

How to Save the Content of Tinymce

I'm trying to Save the Content of TinyMCE but this is not working(this shows my only the editor but doesn't save a value) =>

tinymce.init({ selector:'textarea.Grundtext', width: 968, height: 220, });
0 likes
2 replies
siangboon's avatar

typically you just need to have a text column, and the textarea input in your form will be replaced by tinymce if you initial and setup according to the documentation correctly... at the end, system will just treat the HTML content as an input value and you should be able to save it as like other input...

dd() the input parameter once received to double check the value is received, one of the common mistake usually is forget to give the id and name for input control...

Unik's avatar
Level 1

Thank your for this Answer @siangboon, but im also tyring to access the value with javascript but this is giving me null => var text = document.getElementById("Grundtext").value;

Please or to participate in this conversation.