Improvement: automatic insertion of Forum UBB Code

Source: Internet
Author: User

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 inconvenient to use. I just improved it.
Improved code referenceRiverPreviously pasted JS.RiverThank you very much ^

After improvement:
1. You canCurrent cursorInsert the corresponding UBB Code
2. You canCurrently selected contentInsert the corresponding UBB code at the beginning and end.
3. Browser: 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

Complete page:
Http://cnlei.iecn.net/mycode/ubb4iecn/write.html

Reference::
Http://www.iecn.net/bbs/view/101436.html

For the code, please directly read the file of the above demo link. You cannot paste-_-in the Forum -_-

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.