summaryrefslogtreecommitdiffstats
path: root/js/rte.php
diff options
context:
space:
mode:
authorKamil Kaminski <kylek389@gmail.com>2014-12-14 04:39:17 -0600
committerKamil Kaminski <kylek389@gmail.com>2014-12-14 04:43:57 -0600
commitf0de7af14312368a11014befa428ff91bbebff76 (patch)
tree72f0aeb507a8bb1a8721ed18906aefc723e811c9 /js/rte.php
downloadfracturedcms-f0de7af14312368a11014befa428ff91bbebff76.tar.gz
fracturedcms-f0de7af14312368a11014befa428ff91bbebff76.tar.bz2
fracturedcms-f0de7af14312368a11014befa428ff91bbebff76.zip
fracturedcms, a flat file cms, fork of wondercms
- minor code refactoring - fix improper navigation/footer link generation when current page is ?login or ?logout - include local jquery
Diffstat (limited to 'js/rte.php')
-rw-r--r--js/rte.php2
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