{"action":"created","issue":{"url":"https://api.github.com/repos/hikalkan/jtable/issues/1725","labels_url":"https://api.github.com/repos/hikalkan/jtable/issues/1725/labels{/name}","comments_url":"https://api.github.com/repos/hikalkan/jtable/issues/1725/comments","events_url":"https://api.github.com/repos/hikalkan/jtable/issues/1725/events","html_url":"https://github.com/hikalkan/jtable/issues/1725","id":73462511,"number":1725,"title":"How to save vals from TinyMCE?","user":{"login":"iamwao","id":1824963,"avatar_url":"https://avatars.githubusercontent.com/u/1824963?v=3","gravatar_id":"","url":"https://api.github.com/users/iamwao","html_url":"https://github.com/iamwao","followers_url":"https://api.github.com/users/iamwao/followers","following_url":"https://api.github.com/users/iamwao/following{/other_user}","gists_url":"https://api.github.com/users/iamwao/gists{/gist_id}","starred_url":"https://api.github.com/users/iamwao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamwao/subscriptions","organizations_url":"https://api.github.com/users/iamwao/orgs","repos_url":"https://api.github.com/users/iamwao/repos","events_url":"https://api.github.com/users/iamwao/events{/privacy}","received_events_url":"https://api.github.com/users/iamwao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-05T23:29:57Z","updated_at":"2015-06-08T21:07:30Z","closed_at":null,"body":"I'm using jTable with TinyMCE, to implement I use:\r\n\r\nformCreated: function(event, data){\r\n  tinyMCE.execCommand('mceFocus', true, 'Edit-contenido');\r\n  tinyMCE.execCommand('mceRemoveEditor', true, 'Edit-contenido');\r\n              tinymce.init({\r\n                    selector: \"textarea#Edit-contenido\",\r\n                    skin: 'light',\r\n                    menubar: false,\r\n                    statusbar : false,\r\n                    object_resizing : false,\r\n                    visual: false,\r\n                    language: 'es_MX',\r\n                    plugins: [\r\n                      \"lists\"\r\n                    ],\r\n                    toolbar: \"undo redo | bold italic underline |  bullist numlist\"\r\n                });\r\n}\r\n\r\nWorks fine, but when I try to save always send a empty value. I think the reference from find('form') is lost cause TinyMCE works on iframe. How can I edit the code to pass tinyMCE.activeEditor.getContent() as a value to save ? I think is $addRecordForm var."},"comment":{"url":"https://api.github.com/repos/hikalkan/jtable/issues/comments/110140811","html_url":"https://github.com/hikalkan/jtable/issues/1725#issuecomment-110140811","issue_url":"https://api.github.com/repos/hikalkan/jtable/issues/1725","id":110140811,"user":{"login":"SnrDidcot","id":12253568,"avatar_url":"https://avatars.githubusercontent.com/u/12253568?v=3","gravatar_id":"","url":"https://api.github.com/users/SnrDidcot","html_url":"https://github.com/SnrDidcot","followers_url":"https://api.github.com/users/SnrDidcot/followers","following_url":"https://api.github.com/users/SnrDidcot/following{/other_user}","gists_url":"https://api.github.com/users/SnrDidcot/gists{/gist_id}","starred_url":"https://api.github.com/users/SnrDidcot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnrDidcot/subscriptions","organizations_url":"https://api.github.com/users/SnrDidcot/orgs","repos_url":"https://api.github.com/users/SnrDidcot/repos","events_url":"https://api.github.com/users/SnrDidcot/events{/privacy}","received_events_url":"https://api.github.com/users/SnrDidcot/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T21:07:30Z","updated_at":"2015-06-08T21:07:30Z","body":"I do it like this:\r\n\r\nformSubmitting: function(event,data) {\r\n\t\t\t\t\t\tconsole.log(tinyMCE.activeEditor.getContent());\r\n\t\t\t\t\t\t$('#Edit-value').val(tinyMCE.activeEditor.getContent());\r\n\t\t\t\t\t},\r\n\r\nFor the record \"value\" comes from \r\n\r\ninput: function (data) {\r\n\t\t\t\t\t\t\t\t\t\tif (data.record) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (data.record.custom == 'date') {\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn '<input type=\"date\" name=\"value\" style=\"width:200px\" value=\"' + data.record.value + '\" />';\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (data.record.custom == 'longtext') {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (data.record.value) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn '<textarea name=\"value\">' + data.record.value +'</textarea>';\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn '<textarea name=\"value\">Enter Additional Text ....</textarea>';\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn '<input type=\"text\" name=\"value\" style=\"width:390px\" value=\"' + data.record.value + '\" />';\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t},"}}