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

A rich text editing method and system

A text editing and editing box technology, applied in the computer field, can solve the problems of high development threshold, complicated operation of rich text editing methods, and unintuitive editing, so as to achieve the effect of lowering the development threshold.

Active Publication Date: 2018-08-21
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the above defects or improvement needs of the prior art, the present invention provides a rich text editing method and system, the purpose of which is to edit different types of materials in the same editing box, thereby solving the problems of the existing system The rich text editing method is complicated to operate, the development threshold is high, and the technical problems of editing are not intuitive

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
  • A rich text editing method and system
  • A rich text editing method and system
  • A rich text editing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0053] A rich text editing method, implemented based on the iOS operating system, such as figure 1 shown, including the following steps:

[0054] (1) Initialization: obtain the original data array storing the rich text editing object;

[0055] The rich text editing objects include text rich text objects, emoticon rich text objects, image rich text objects, video rich text objects, and hyperlink rich text objects.

[0056] (2) Parsing: For each data in the original data array obtained in step (1), convert it into a unified rich text object (XXEditThemeModel) using a predefined rich text object model.

[0057] The pre-created type dictionary is as follows:

[0058]

[0059]

[0060] The rich text object model (XXEditThemeModel) includes a type attribute. When the type attribute, the value of the type attribute can be: text, emoticon, picture, video, hyperlink. The process of converting various types into a unified rich text object model is as follows:

[0061] For the ...

Embodiment 2

[0077] The rich text editing system provided by the present invention, such as figure 2 shown, including:

[0078] Initialization module: used to obtain the original data array storing rich text editing objects; the rich text editing objects include text rich text objects, emoticon rich text objects, image rich text objects, video rich text objects, and hyperlink rich text objects object.

[0079] Parsing module: for converting each data in the original data array into a unified rich text object by using a predefined rich text object model, and submitting it to the presentation module.

[0080] For each piece of data in the original data, its type is determined. The rich text object model (XXEditThemeModel) includes an attribute for marking the specific type (style) of the rich text object. According to the rich text object type and the pre-created type dictionary, record the corresponding attribute value of the type in the model of the corresponding type, so as to record ...

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 discloses a rich text editing method and system. The method comprises the following steps of (1) obtaining an original data array stored with a rich text editing object; (2) converting a pre-defined rich text model to a unified rich text object for each piece of data; (3) displaying all parsed rich text objects in an edit box in sequence; (4) inserting or deleting the rich text objects in the edit box; and (5) creating an updated data array, obtaining all processed rich text objects in the edit box, recording each rich text object according to the type and a pre-created type dictionary, extracting the corresponding attribute thereof and adding into the updated data array. The system comprises an initialization module, a parsing module, a presentation module, an editing module and a parsing return module. According to the rich text editing method and system, an effect of rich text editing in the edit box can be directly shown, what you see is what you get, and the development threshold is greatly reduced.

Description

technical field [0001] The invention belongs to the technical field of computers, and more specifically relates to a rich text editing method and system. Background technique [0002] Currently, the editing boxes of various systems generally edit materials in different formats, such as text, pictures, and videos, in different areas. For example, when you need to insert text, insert the text box first, and edit the text in the text box; when you need to insert a picture, edit the picture as an independent editing object. In this way, developers need to understand the implementation of the background system for different objects in order to realize rich text editing and present multimedia effects. [0003] Existing technologies for rich text editing, such as web page development, have high requirements for developers, and the editing process is complicated and not intuitive. At present, there is no rich text editing system on the ios platform, which can edit materials in dif...

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): G06F17/24
CPCG06F40/166
Inventor 李佳祥
Owner WUHAN DOUYU NETWORK 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