Is it possible to add tinymce editor for jquery jtable plugin for Create / Edit action?
I am new to jTable plugin, but I need tinymce editor for one field in Create / Edit action of jquery jtable, so I wonder can I use jtable?
I know that I can make a jtable field to be textarea in Create / Edit form, so I wonder if I can somehow add tinymce there?
1) If I use simple standard code for adding tinymce in main page (where jtable is called), then nothing happends to Create / Edit record (no tinymce):
<script type="text/javascript">
tinymce.init({
selector: "textarea"
});
</script>
2) I also tried to edit core jtable file adding tinymce to each textarea. It shows me tinymce editor, but the problem is with POST. When I post form it always give me empty value (the one that should be edited with tinymce).
This is how I append tinymce directly in jtable script:
.append('<script>tinymce.init({selector: "textarea"});</script>');
3) And the last think I tried, using jTable input option for field:
article: {
title: 'Article',
input: function (data) {
return 'tinymce.init({selector: "textarea"});<textarea></textarea>';
},
This gies me some syntax error. I have some syntax error, but I am sure that I can use something like this.