Hello.
I've found out a possible bug in
'blogs/plugins/toolbars/_quicktags.toolbar.php' file (in 0.9.1b and 0.9.0.12 too)
In line 302:
cursorPos += b2evoButtons[i].tagStart.length + edButtons[i].tagEnd.length;
but there's no 'edButtons' object defined (a typo?). So you get a "edButtons not defined" JavaScript error when accesing with Mozilla/Firefox browser (this is a code to focus cursor after inserting code when using Mozilla browsers) and cursor isn't focused on the textarea (as supposed).
I changed it to insert 'b2evoButtons':
cursorPos += b2evoButtons[i].tagStart.length + b2evoButtons[i].tagEnd.length;
and it works with Mozilla/Firefox:
- no JavaScript error
- cursor is focused on the textarea
Hope this helps the project.
Hi.
I've been checking the original Alex King's 'Quicktags' libraries
(http://www.alexking.org/index.php?content=software/javascript/content.php)
and noticed there were 2 missing lines in '_quicktags.toolbar.php':
This was the reason the cursor wasn't focused at the bottom of the textearea. If you insert them, it works.
This is the modified piece of code: