que utiliza la opción "oninit" en las áreas de texto y trabajaron:
oninit: function(editor) {
$currentTextArea.closest('form').bind('submit, invalid', function() {
editor.save();
});
}
Usted podría tratar de usar onchange evento, pero no funciona correctamente en Firefox.
Mi código completo:
$('textarea.tinymce').each(function(){
var options = {
theme : "advanced",
skin : "cirkuit",
plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template", theme_advanced_buttons1 :"formatselect,fontsizeselect,forecolor,|,bold,italic,strikethrough,|,bullist,numlist,|,justifyleft,justifycenter,justifyright,|,link,unlink,|,spellchecker",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_buttons4 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true
},
$this = $(this);
// fix TinyMCE bug
if ($this.is('[required]')) {
options.oninit = function(editor) {
$this.closest('form').bind('submit, invalid', function() {
editor.save();
});
}
}
$this.tinymce(options);
});
¿Ya ha encontrado una solución para esto? Esto: http://www.tinymce.com/develop/bugtracker_view.php?id=5671 es un poco molesto. Parece que todavía no está resuelto hasta ahora. – Leah
@Leah su enlace no funciona. Me redirigen a GitHub y no hay ningún problema # 5671. – naXa
@naXa No importa eso. Ha pasado un año desde que publiqué ese comentario/enlace. Podría haber sido eliminado ya. Gracias de todos modos por su respuesta. – Leah