At present, when the UBB of the IECN forum is automatically inserted, the inserted content is always added to the end of the article, which is very inconvenient to use. Just improved it a bit.
The improved code refers to the JS that river posted before. I would like to express my deep gratitude to river^^
After improvement:
1. Yes Insert the corresponding UBB code at "Current cursor position
" 2. You can insert the corresponding UBB code at the beginning and end of "Currently selected content " 3. By browsing Server: IE 5.0, FireFox 1.06, Opera8.5
Related JS code:
http://cnlei.iecn.net/mycode/ubb4iecn/ubb4iecn.js
Related HTML code:
http://cnlei.iecn.net/mycode/ubb4iecn/write_ubb.html
Full page:
http://cnlei.iecn.net/mycode/ubb4iecn/write.html
Reference post::
http://www.iecn.net/bbs/view/101436.html
For the code, please directly look at the file linked to the above demo link and post it in the forum No -_-