ncharan511
3 months agoAdept
TinyMceEditor is undefined
Hi, I have a simple custom component:
<form id="pmUpdateForm">
<textarea rows="" cols="" id="pmUpdate"></textarea>
</form>
<@liaAddScript>
;(function($) {
$(document).ready(function() {
tinymce.init({
selector: 'textarea#pmUpdate',
height: 150,
menubar: false,
plugins : "paste",
paste_text_sticky : true,
setup : function(ed) {
ed.pasteAsPlainText = true;
}
});
});
})(LITHIUM.jQuery, LITHIUM.TinyMceEditor);
</@liaAddScript>
I added the above component into one of the quilts.
After the SDK push I always see
Uncaught ReferenceError: tinymce is not defined error. I know why this error occurs but w.r.t Khoros, I am not able to figure out where to look. There is no official documentation about tinyMceEditor in atlas on how to use it.