diff --git a/js-insert-smiley-replacement.md b/js-insert-smiley-replacement.md new file mode 100755 index 00000000..7eaafd37 --- /dev/null +++ b/js-insert-smiley-replacement.md @@ -0,0 +1,47 @@ +The smiley helper is totally awesome. However I found a little bug. On the textarea, the smiley is always inserted at the end of the text. So I suggest this replacement to let the smiley inserted on the cursor position. + +Step 1: +Copy smiley_helper.php from system/helper to system/application/helper, so your replacement won't affect to another installation. + +Step 2: +Replace the function js_insert_smiley with this +[code] +function js_insert_smiley($form_name = '', $form_field = '') + { + return <<