Improvement: Forum UBB Code Automatic Insertion Method _ javascript skills
Source: Internet
Author: User
Improvement: automatic insertion of Forum UBB code. Currently, when the ubb of the iecn forum is automatically inserted, the inserted content is always added to the end of the article, which is inconvenient to use. I just improved it.
Improved code reference RiverPreviously pasted JS. RiverThank you very much ^
After improvement:
1. You can
Current cursorInsert the corresponding UBB Code
2. You can
Currently selected contentInsert the corresponding UBB code at the beginning and end.
3. Browser: IE 5.0 +, FireFox 1.06 +, Opera8.5 +
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service