Page editor Development

Source: Internet
Author: User

This page editor was completed yesterday afternoon. The folder was compressed last night. This morning, everything in the folder was lost. The compressed file is empty. I felt dizzy in my head, and I lost my work yesterday. So I made up my mind to create a version library for myselfCodeUpload to the server. To avoid repeated tragedies.

In fact, there is nothing to say about the development editor. I wrote this blog mainly to record the development process and difficulties encountered during the development process.

In addition to textarea, you must useContenteditable = "true ". If you are editing under IFRAME, you need to useDesignMode = "on ". I am using IFRAME.

The main tool used by the page editor is document.exe ccommand (). There are many ways to use it online.

That's all. For specific examples, see the code. I wrote a lot of comments.

Address: https://github.com/zhenchaozhu/Editor.

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.