diff options
Diffstat (limited to 'js/rte.php')
-rw-r--r-- | js/rte.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/rte.php b/js/rte.php new file mode 100644 index 0000000..2a1d06a --- /dev/null +++ b/js/rte.php @@ -0,0 +1,2 @@ +a.html("<textarea "+title+"name=\"textarea\" id=\""+ a.attr('id') +"_field\" onblur=\"fieldSave(a.attr('id'),nl2br(this.value));\">" + a.html().replace(/<br>/gi, "") + "</textarea>");
+a.children(':first').focus().autosize().trigger('autosize.resize');
\ No newline at end of file |