Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for editing web pages

An editing and page technology, applied in the computer field, can solve problems such as disordered page format, uncontrollable HTML area content format, etc., and achieve the effect of correct format, precise control of correctness, and correct HTML code format

Active Publication Date: 2022-06-07
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art: the above-mentioned solution of setting the contenteditable attribute of the iframe to true and then editing through the browser cannot control the format of the HTML area content, which may cause malformed page

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for editing web pages
  • Method and device for editing web pages
  • Method and device for editing web pages

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.

[0031] In view of the problems mentioned in the prior art, the present invention proposes a method for editing a Web page. When receiving an instruction from a user to select an area for editing, the HTML fragment of the selected area is obtained from the server, and the HTML fragment of the selected area is obtained from the HTML Extract the HTML DOM element attributes of eac...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a web page editing method, device, electronic equipment and computer-readable medium, which can accurately control the correctness of HTML codes in web page areas, and ensure that the HTML codes in some areas of web pages submitted by end users are in the correct format, thereby ensuring that the entire The format of the Web page is correct, and there will be no page confusion. The method for editing a Web page of the present invention includes: when receiving an instruction from the user to select a region for editing, obtaining an HTML fragment of the selected region from the server; extracting each element of the selected region from the HTML fragment Edit the HTML DOM element attribute of the object; generate an input control corresponding to the respective HTML DOM element attribute for each editing object, and the input control is used to receive the edited content of the edited object; the edited content received in each input control Splicing with the HTML fragment according to a preset format to obtain an edited HTML fragment.

Description

technical field [0001] The present invention relates to the field of computer technology, and in particular, to a method, apparatus, electronic device and computer-readable medium for editing a Web page. Background technique [0002] On the homepage or channel page of various websites, there are often some areas that need to be manually set, such as the common homepage promotion focus map, the recommended content on the sidebar, and so on. The HTML format of these areas needs to conform to the given format in order to display the page correctly. If the HTML format is incorrect, the content of the page will be disordered and the user experience will be affected. [0003] The currently commonly used solution is to edit the above page area through HTML hypertext editor, such as tinymce, FCKEditor, FreeTextBox and other editors. This solution is mainly by setting the editing content to a new iframe (an HTML tag), This iframe's document's contenteditable property is then set to ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/33G06F8/34
CPCG06F8/33G06F8/38
Inventor 赵玉开者文明赵波蔚伟
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products