An editing method and device for a Web page

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

Active Publication Date: 2018-10-26
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF9 Cites 13 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
  • An editing method and device for a Web page
  • An editing method and device for a Web page
  • An editing method and device for a Web page

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded 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 in the following description for clarity and conciseness.

[0031] Aiming at the problems mentioned in the prior art, the present invention proposes a kind of editing method of Web page, when receiving the indication that user selects an area to edit, obtains the HTML fragment of this selected area from server end, from HTML Extract the HTML DOM element attributes of each editing object in the selected area from the fragment, and g...

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 an editing method and device for a Web page, an electronic device and a computer readable medium. The correctness of a HTML code of the area of the Web page can be accurately controlled, it is guaranteed that the format of the HTML code format of the partial area of the Web page finally submitted by users is corrected, it is guaranteed that the format of the whole Web page is corrected, and the condition of page disorder can be prevented. The editing method for the Web page includes the following steps: when the indication that users select one area to perform editing isreceived, the HTML fragment of the selected area is obtained from a server; and the HTML DOM element attribute of each editing object of the selected area is extracted from the HTML fragment; input controls corresponding to the respective HTML DOM element attribute is generated for each editing object, and the input controls are used for receiving the editing content of the editing object; the editing content received by the input controls and the HTML fragment are spliced according to the preset format, and the edited HTML fragment is obtained.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for editing Web pages, electronic equipment and computer-readable media. 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 image, the recommended content on the sidebar, and so on. The HTML format of these areas must conform to the given format to display the page correctly. If the HTML format is wrong, the content of the page will be messed up and affect the user experience. [0003] The scheme usually adopted at present is to edit the above-mentioned page area through HTML hypertext editors, such as editors such as tinymce, FCKEditor, FreeTextBox, this scheme is mainly by setting the editing content in a new iframe (an HTML tag), Then set the contenteditable attribute of the document of the iframe to true, and edit ...

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 Applications(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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products