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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com