I am a novice coder so I am having trouble getting this to work.
I have a javascript that scrolls the content of a <textarea> tag to bottom on button click, but when I add NicEdit plugin in it the script doesn't work.
I've already tried all the alternative ways to get it to work by creating external divs and wrappers but I'm sure it's coz of NicEdit.
Working Script Without NicEdit: http://jsfiddle.net/gab4qhc1
Not working script with NicEdit: http://jsfiddle.net/sgdLzjau
Kindly help me to get the script working along with nicedit.
Thanks
First of all, I would recommend you to use
CKEditororTinyMCEbecausenicEditis not in active development (http://nicedit.com/docs.php).Let's come to the problem, There was an error in console
bkLib.domLoad[i] is not a function(I don't know what isbkLib) so what I did is, I removed that function and removed JS codefrom HTML file and added in the script file (I think it is good to separate JS and HTML code if possible) as following
HTML
Script
(Not need to modify CSS)
Why
#textareaselector is not working and.nicEdit-mainis workingSo, the reason behind this is every HTML based text editor use there own wrapper instead of
textareato make it more customizable like to applybold,italiceffects and innicEditthey use adivwith classnicEdit-main.I hope this will help you to solve your problem. Happy Coding... :)