CN109753644B - Rich text editing method and device, mobile terminal and storage medium - Google Patents
Rich text editing method and device, mobile terminal and storage medium Download PDFInfo
- Publication number
- CN109753644B CN109753644B CN201811604235.6A CN201811604235A CN109753644B CN 109753644 B CN109753644 B CN 109753644B CN 201811604235 A CN201811604235 A CN 201811604235A CN 109753644 B CN109753644 B CN 109753644B
- Authority
- CN
- China
- Prior art keywords
- current
- content
- text
- data model
- current user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 57
- 238000013499 data model Methods 0.000 claims description 110
- 238000012986 modification Methods 0.000 claims description 40
- 230000004048 modification Effects 0.000 claims description 40
- 238000005034 decoration Methods 0.000 claims description 15
- 238000009877 rendering Methods 0.000 claims description 12
- 238000013524 data verification Methods 0.000 claims description 11
- 238000012795 verification Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a rich text editing method, a rich text editing device, a mobile terminal and a storage medium. The method comprises the following steps: acquiring current text content and current multimedia content input by a current user in an editing area corresponding to a rich text editor; and displaying the current text content and the current multimedia content input by the current user to the current user in a display area corresponding to the rich text editor. The rich text editing of the graphic and text mixed arrangement can be realized in the mobile terminal, and the rich text editing function is more powerful.
Description
Technical Field
The embodiment of the invention relates to the technical field of mobile terminals, in particular to a rich text editing method and device, a mobile terminal and a storage medium.
Background
A Rich Text Editor (RTE), which is a Text Editor that can be embedded in a browser, what you see is what you get. Because the rich text editor is different from the common text editor, the user can download the free rich text editor on the Internet and can be embedded in own websites or programs, the rich text editor can provide editing functions similar to Microsoft Word, so that the user can realize content writing and typesetting on the webpage, can not write users with hypertext markup language (HTML, hypertext Markup Language), can edit various text contents meeting the personalized requirements of the user according to the needs, is convenient for the user to edit articles or information, and is popular with the user, and the application of the rich text editor is more and more widely. For example, the method is widely applied to business such as blogs, logs, mails and the like in daily life of users.
The existing rich text editing method comprises the following three steps: first, text and picture combined rich text editing method, for example: weChat friend circle, microblog, bar, today's headline, etc.; second, H5 capability based content editable rich text editing methods such as: hundred degree open source UEditor, facebook open source Draftjs, community open source Slatejs, etc.; third, a rich text editing method based on data-driven rendering, such as: google Doc.
In the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art:
the existing first rich text editing method can be applied to a mobile terminal, but can not realize image-text mixed arrangement; the existing second and third rich text editing methods can only be applied to a Personal Computer (PC) and cannot be applied to a mobile terminal.
Disclosure of Invention
In view of this, the embodiments of the present invention provide a rich text editing method, apparatus, mobile terminal, and storage medium, which can implement rich text editing with mixed graphics and texts in the mobile terminal, and has more powerful rich text editing function.
In a first aspect, an embodiment of the present invention provides a rich text editing method, where the method includes:
acquiring current text content and current multimedia content input by a current user in an editing area corresponding to a rich text editor;
and displaying the current text content and the current multimedia content input by the current user to the current user in a display area corresponding to the rich text editor.
In the above embodiment, the obtaining, in an editing area corresponding to the rich text editor, the current text content and the current multimedia content input by the current user includes:
receiving data modification operation of the current user in a data model corresponding to the current text content and data modification operation of the current user in a data model corresponding to the current multimedia content through an application programming interface in an editing area corresponding to the rich text editor;
and acquiring the current text content and the current multimedia content input by the current user according to the data modification operation of the current user in the data model corresponding to the current text content and the data modification operation of the current user in the data model corresponding to the current multimedia content.
In the foregoing embodiment, the data model corresponding to the current text content includes: at least one of a document data model, a decoration data model, a selection data model, and a history data model; the data model corresponding to the current multimedia content comprises the following steps: at least one of a document data model, a decoration data model, a selection data model, and a history data model.
In the foregoing embodiment, before the current text content and the current multimedia content input by the current user are displayed to the current user in the display area corresponding to the rich text editor, the method further includes:
performing data verification on the current text content and the current multimedia content input by the current user in an editing area corresponding to the rich text editor;
and if the current text content and the current multimedia content input by the current user pass the verification, executing the operation of displaying the verified current text content and the current multimedia content to the current user in the display area corresponding to the rich text editor.
In the foregoing embodiment, before the checked current text content and the checked current multimedia content are displayed to the current user in the display area corresponding to the rich text editor, the method further includes:
performing data rendering on the checked current text content and the checked current multimedia input by the current user in an editing area corresponding to the rich text editor;
and displaying the rendered current text content and the current multimedia content input by the current user to the current user in a display area corresponding to the rich text editor.
In a second aspect, an embodiment of the present invention provides a rich text editing apparatus, including: an editing module and a display module; wherein,
the editing module is used for acquiring the current text content and the current multimedia content input by the current user in an editing area corresponding to the rich text editor;
and the display module is used for displaying the current text content and the current multimedia content input by the current user to the current user in the display area corresponding to the rich text editor.
In the above embodiment, the editing module includes: a receiving sub-module and an obtaining sub-module; wherein,
the receiving sub-module is used for receiving the data modification operation of the current user in the data model corresponding to the current text content and the data modification operation of the current user in the data model corresponding to the current multimedia content through an application programming interface in an editing area corresponding to the rich text editor;
the obtaining sub-module is used for obtaining the current text content and the current multimedia content input by the current user according to the data modification operation of the current user in the data model corresponding to the current text content and the data modification operation of the current user in the data model corresponding to the current multimedia content.
In the foregoing embodiment, the data model corresponding to the current text content includes: at least one of a document data model, a decoration data model, a selection data model, and a history data model; the data model corresponding to the current multimedia content comprises the following steps: at least one of a document data model, a decoration data model, a selection data model, and a history data model.
In the above embodiment, the display module is specifically configured to perform data verification on the current text content and the current multimedia content input by the current user in an editing area corresponding to the rich text editor; and if the current text content and the current multimedia content input by the current user pass the verification, executing the operation of displaying the verified current text content and the current multimedia content to the current user in the display area corresponding to the rich text editor.
In the above embodiment, the display module is further configured to perform data rendering on the checked current text content and the checked current multimedia input by the current user in an editing area corresponding to the rich text editor; and displaying the rendered current text content and the current multimedia content input by the current user to the current user in a display area corresponding to the rich text editor.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the rich text editing methods described in any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the rich text editing method according to any embodiment of the present invention.
The embodiment of the invention provides a rich text editing method, a rich text editing device, a mobile terminal and a storage medium, wherein the mobile terminal firstly acquires current text content and current multimedia content input by a current user in an editing area corresponding to a rich text editor; and then displaying the current text content and the current multimedia content input by the current user to the current user in the display area corresponding to the rich text editor. That is, in the technical scheme of the invention, the mobile terminal can acquire the current text content and the current multimedia content input by the current user in the editing area, so that rich text editing of graphic and text mixed arrangement can be realized in the mobile terminal. The existing first rich text editing method can be applied to a mobile terminal, but the picture and text mixed arrangement cannot be realized; the existing second and third rich text editing methods can only be applied to a PC, but cannot be applied to a mobile terminal. Therefore, compared with the prior art, the rich text editing method, the rich text editing device, the mobile terminal and the storage medium provided by the embodiment of the invention can realize rich text editing of mixed image and text in the mobile terminal, and the rich text editing function is more powerful; in addition, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Drawings
FIG. 1 is a flowchart of a rich text editing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a rich text editing method according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a rich text editing method according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a first structure of a rich text editing apparatus according to a fourth embodiment of the present invention;
fig. 5 is a second schematic structural diagram of a rich text editing apparatus according to a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present invention are shown in the accompanying drawings.
Example 1
Fig. 1 is a flowchart of a rich text editing method according to an embodiment of the present invention. The method may be performed by a rich text editing apparatus or mobile terminal, which may be implemented in software and/or hardware, which may be integrated in any intelligent device having network communication functions. As shown in fig. 1, the rich text editing method may include:
s101, acquiring current text content and current multimedia content input by a current user in an editing area corresponding to a rich text editor.
In the specific embodiment of the invention, the mobile terminal can acquire the current text content and the current multimedia content which are input by the current user in the editing area corresponding to the rich text editor; among them, current multimedia content includes, but is not limited to: current audio content, current video content, current picture content, current table content, current link content, or current list content. Specifically, the mobile terminal can receive data modification operation of a current user in a data model corresponding to the current text content and data modification operation of the current user in a data model corresponding to the current multimedia content through an application programming interface in an editing area corresponding to the rich text editor; and then acquiring the current text content and the current multimedia content input by the current user according to the data modification operation of the current user in the data model corresponding to the current text content and the data modification operation of the current user in the data model corresponding to the current multimedia content.
Preferably, in a specific embodiment of the present invention, the data model corresponding to the current text content includes: at least one of a document data model, a decoration data model, a selection data model, and a history data model; the data model corresponding to the current multimedia content comprises the following steps: at least one of a document data model, a decoration data model, a selection data model, and a history data model.
S102, displaying the current text content and the current multimedia content input by the current user to the current user in the display area corresponding to the rich text editor.
In the specific embodiment of the invention, the mobile terminal displays the current text content and the current multimedia content input by the current user to the current user in the display area corresponding to the rich text editor. Specifically, the mobile terminal may display the current text content and the current multimedia content input by the current user to the current user according to the text display format corresponding to the current text content and the multimedia display format corresponding to the current multimedia content.
According to the rich text editing method provided by the embodiment of the invention, the mobile terminal firstly acquires the current text content and the current multimedia content which are input by the current user in the editing area corresponding to the rich text editor; and then displaying the current text content and the current multimedia content input by the current user to the current user in the display area corresponding to the rich text editor. That is, in the technical scheme of the invention, the mobile terminal can acquire the current text content and the current multimedia content input by the current user in the editing area, so that rich text editing of graphic and text mixed arrangement can be realized in the mobile terminal. The existing first rich text editing method can be applied to a mobile terminal, but the picture and text mixed arrangement cannot be realized; the existing second and third rich text editing methods can only be applied to a PC, but cannot be applied to a mobile terminal. Therefore, compared with the prior art, the rich text editing method provided by the embodiment of the invention can realize rich text editing of graphic and text mixed arrangement in the mobile terminal, and has more powerful rich text editing function; in addition, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Example two
Fig. 2 is a flowchart of a rich text editing method according to a second embodiment of the present invention. As shown in fig. 2, the rich text editing method may include:
s201, receiving data modification operation of a current user in a data model corresponding to the current text content and data modification operation of the current user in the data model corresponding to the current multimedia content through an application programming interface in an editing area corresponding to the rich text editor.
In a specific embodiment of the present invention, the mobile terminal may receive, through an application programming interface in an editing area corresponding to the rich text editor, a data modification operation of a current user in a data model corresponding to the current text content and a data modification operation of the current user in a data model corresponding to the current multimedia content. Preferably, in a specific embodiment of the present invention, the data model corresponding to the current text content includes: at least one of a document data model, a decoration data model, a selection data model, and a history data model; the data model corresponding to the current multimedia content comprises the following steps: at least one of a document data model, a decoration data model, a selection data model, and a history data model. For example, the mobile terminal may receive, through an application programming interface in an editing area corresponding to the rich text editor, a data modification operation of a current user in a document data model corresponding to the current text content and a data modification operation of the current user in a decoration data model corresponding to the current multimedia content.
S202, acquiring the current text content and the current multimedia content input by the current user according to the data modification operation of the current user in the data model corresponding to the current text content and the data modification operation of the current user in the data model corresponding to the current multimedia content.
In a specific embodiment of the present invention, the mobile terminal may obtain the current text content and the current multimedia content input by the current user according to the data modification operation of the current user in the data model corresponding to the current text content and the data modification operation of the current user in the data model corresponding to the current multimedia content. Specifically, the mobile terminal can acquire the current text content input by the current user according to the data modification operation of the current user in the data model corresponding to the current text content; the current multimedia content input by the current user can also be obtained according to the data modification operation of the current user in the data model corresponding to the current multimedia content.
And S203, displaying the current text content and the current multimedia content input by the current user to the current user in the display area corresponding to the rich text editor.
In the specific embodiment of the invention, the mobile terminal displays the current text content and the current multimedia content input by the current user to the current user in the display area corresponding to the rich text editor. Specifically, the mobile terminal may display the current text content and the current multimedia content input by the current user to the current user according to the text display format corresponding to the current text content and the multimedia display format corresponding to the current multimedia content.
According to the rich text editing method provided by the embodiment of the invention, the mobile terminal firstly acquires the current text content and the current multimedia content which are input by the current user in the editing area corresponding to the rich text editor; and then displaying the current text content and the current multimedia content input by the current user to the current user in the display area corresponding to the rich text editor. That is, in the technical scheme of the invention, the mobile terminal can acquire the current text content and the current multimedia content input by the current user in the editing area, so that rich text editing of graphic and text mixed arrangement can be realized in the mobile terminal. The existing first rich text editing method can be applied to a mobile terminal, but the picture and text mixed arrangement cannot be realized; the existing second and third rich text editing methods can only be applied to a PC, but cannot be applied to a mobile terminal. Therefore, compared with the prior art, the rich text editing method provided by the embodiment of the invention can realize rich text editing of graphic and text mixed arrangement in the mobile terminal, and has more powerful rich text editing function; in addition, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Example III
Fig. 3 is a flowchart of a rich text editing method according to a third embodiment of the present invention. As shown in fig. 3, the rich text editing method may include:
s301, acquiring current text content and current multimedia content input by a current user in an editing area corresponding to the rich text editor.
In the specific embodiment of the invention, the mobile terminal can acquire the current text content and the current multimedia content which are input by the current user in the editing area corresponding to the rich text editor; among them, current multimedia content includes, but is not limited to: current audio content, current video content, current picture content, current table content, current link content, or current list content. Specifically, the mobile terminal can receive data modification operation of a current user in a data model corresponding to the current text content and data modification operation of the current user in a data model corresponding to the current multimedia content through an application programming interface in an editing area corresponding to the rich text editor; and then acquiring the current text content and the current multimedia content input by the current user according to the data modification operation of the current user in the data model corresponding to the current text content and the data modification operation of the current user in the data model corresponding to the current multimedia content.
S302, data verification is carried out on the current text content and the current multimedia content which are input by the current user in an editing area corresponding to the rich text editor.
In the embodiment of the invention, the mobile terminal can perform data verification on the current text content and the current multimedia content input by the current user in the editing area corresponding to the rich text editor. Specifically, the mobile terminal can perform data verification on the current text content input by the current user according to a text verification mode corresponding to the current text content; and the data verification can be carried out on the current multimedia content input by the current user according to the multimedia verification mode corresponding to the current multimedia content.
And S303, if the current text content and the current multimedia content input by the current user pass the verification, performing data rendering on the verified current text content and the verified current multimedia content input by the current user in an editing area corresponding to the rich text editor.
In a specific embodiment of the present invention, if the mobile terminal checks the current text content and the current multimedia content input by the current user, the mobile terminal may perform data rendering on the checked current text content and the checked current multimedia content input by the current user in an editing area corresponding to the rich text editor. Specifically, the mobile terminal can perform data rendering on the current text content input by the current user according to a text rendering mode corresponding to the current text content; and the data rendering can be carried out on the current multimedia content input by the current user according to the multimedia rendering mode corresponding to the current multimedia content.
S304, displaying the rendered current text content and the rendered current multimedia content input by the current user to the current user in the display area corresponding to the rich text editor.
In the specific embodiment of the invention, the mobile terminal displays the current text content and the current multimedia content input by the current user to the current user in the display area corresponding to the rich text editor. Specifically, the mobile terminal may display the current text content and the current multimedia content input by the current user to the current user according to the text display format corresponding to the current text content and the multimedia display format corresponding to the current multimedia content.
According to the rich text editing method provided by the embodiment of the invention, the mobile terminal firstly acquires the current text content and the current multimedia content which are input by the current user in the editing area corresponding to the rich text editor; and then displaying the current text content and the current multimedia content input by the current user to the current user in the display area corresponding to the rich text editor. That is, in the technical scheme of the invention, the mobile terminal can acquire the current text content and the current multimedia content input by the current user in the editing area, so that rich text editing of graphic and text mixed arrangement can be realized in the mobile terminal. The existing first rich text editing method can be applied to a mobile terminal, but the picture and text mixed arrangement cannot be realized; the existing second and third rich text editing methods can only be applied to a PC, but cannot be applied to a mobile terminal. Therefore, compared with the prior art, the rich text editing method provided by the embodiment of the invention can realize rich text editing of graphic and text mixed arrangement in the mobile terminal, and has more powerful rich text editing function; in addition, the technical scheme of the embodiment of the invention is simple and convenient to realize, convenient to popularize and wider in application range.
Example IV
Fig. 4 is a schematic diagram of a first structure of a rich text editing apparatus according to a fourth embodiment of the present invention. As shown in fig. 4, the rich text editing apparatus according to the embodiment of the present invention includes: an editing module 401 and a presentation module 402; wherein,
the editing module 401 is configured to obtain, in an editing area corresponding to the rich text editor, a current text content and a current multimedia content that are input by a current user;
the display module 402 is configured to display, in a display area corresponding to the rich text editor, the current text content and the current multimedia content input by the current user to the current user.
Fig. 5 is a second schematic structural diagram of a rich text editing apparatus according to a fourth embodiment of the present invention. As shown in fig. 5, the editing module 401 includes: a receiving submodule 4011 and an acquiring submodule 4012; wherein,
the receiving submodule 4011 is configured to receive, through an application programming interface in an editing area corresponding to the rich text editor, a data modification operation of the current user in a data model corresponding to the current text content and a data modification operation of the current user in a data model corresponding to the current multimedia content;
the obtaining submodule 4012 is configured to obtain the current text content and the current multimedia content input by the current user according to a data modification operation of the current user in the data model corresponding to the current text content and a data modification operation of the current user in the data model corresponding to the current multimedia content.
Further, the data model corresponding to the current text content includes: at least one of a document data model, a decoration data model, a selection data model, and a history data model; the data model corresponding to the current multimedia content comprises the following steps: at least one of a document data model, a decoration data model, a selection data model, and a history data model.
Further, the display module 402 is specifically configured to perform data verification on the current text content and the current multimedia content input by the current user in an editing area corresponding to the rich text editor; and if the current text content and the current multimedia content input by the current user pass the verification, executing the operation of displaying the verified current text content and the current multimedia content to the current user in the display area corresponding to the rich text editor.
Further, the display module 402 is further configured to perform data rendering on the checked current text content and the checked current multimedia input by the current user in an editing area corresponding to the rich text editor; and displaying the rendered current text content and the current multimedia content input by the current user to the current user in a display area corresponding to the rich text editor.
The rich text editing device can execute the rich text editing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Technical details which are not described in detail in this embodiment can be referred to the rich text editing method provided in any embodiment of the present invention.
Example five
Fig. 6 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present invention. Fig. 6 shows a block diagram of an exemplary mobile terminal suitable for use in implementing embodiments of the invention. The mobile terminal 12 shown in fig. 6 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 6, the mobile terminal 12 is embodied in the form of a general purpose computing device. The components of the mobile terminal 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
The mobile terminal 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by mobile terminal 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The mobile terminal 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The mobile terminal 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the mobile terminal 12, and/or any devices (e.g., network card, modem, etc.) that enable the mobile terminal 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the mobile terminal 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through the network adapter 20. As shown, the network adapter 20 communicates with other modules of the mobile terminal 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with the mobile terminal 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the rich text editing method provided by the embodiment of the present invention.
Example six
The sixth embodiment of the invention provides a storage medium.
The computer-readable storage media of embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (8)
1. A rich text editing method, applied to a mobile terminal, comprising:
receiving data modification operation of a current user in a data model corresponding to current text content and data modification operation of the current user in a data model corresponding to current multimedia content through an application programming interface in an editing area corresponding to a rich text editor;
acquiring the current text content and the current multimedia content input by the current user according to the data modification operation of the current user in the data model corresponding to the current text content and the data modification operation of the current user in the data model corresponding to the current multimedia content; the rich text editor is embedded in a website or a program of the mobile terminal; the current multimedia content comprises current audio content, current video content, current picture content, current table content, current link content or current list content;
performing data verification on the current text content input by the current user according to a text verification mode corresponding to the current text content; performing data verification on the current multimedia content input by the current user according to a multimedia verification mode corresponding to the current multimedia content;
and if the current text content and the current multimedia content input by the current user pass the verification, displaying the current text content and the current multimedia content input by the current user to the current user in a display area corresponding to the rich text editor according to a text display format corresponding to the current text content and a multimedia display format corresponding to the current multimedia content.
2. The method of claim 1, wherein the data model corresponding to the current literal content comprises: at least one of a document data model, a decoration data model, a selection data model, and a history data model; the data model corresponding to the current multimedia content comprises the following steps: at least one of a document data model, a decoration data model, a selection data model, and a history data model.
3. The method of claim 1, wherein before displaying the verified current text content and the current multimedia content to the current user in the display area corresponding to the rich text editor, the method further comprises:
performing data rendering on the checked current text content and the checked current multimedia input by the current user in an editing area corresponding to the rich text editor;
and displaying the rendered current text content and the current multimedia content input by the current user to the current user in a display area corresponding to the rich text editor.
4. A rich text editing apparatus, the apparatus comprising: the display module comprises a receiving sub-module, an obtaining sub-module and a display module; wherein,
the receiving sub-module is used for receiving the data modification operation of the current user in the data model corresponding to the current text content and the data modification operation of the current user in the data model corresponding to the current multimedia content through an application programming interface in an editing area corresponding to the rich text editor;
the obtaining sub-module is used for obtaining the current text content and the current multimedia content input by the current user according to the data modification operation of the current user in the data model corresponding to the current text content and the data modification operation of the current user in the data model corresponding to the current multimedia content; the rich text editor is embedded in a website or a program of the mobile terminal; the current multimedia content comprises current audio content, current video content, current picture content, current table content, current link content or current list content;
the display module is used for displaying the current text content and the current multimedia content input by the current user to the current user according to the text display format corresponding to the current text content and the multimedia display format corresponding to the current multimedia content in the display area corresponding to the rich text editor if the current text content and the current multimedia content input by the current user are checked to pass;
the display module is specifically configured to perform data verification on the current text content input by the current user according to a text verification mode corresponding to the current text content; and carrying out data verification on the current multimedia content input by the current user according to the multimedia verification mode corresponding to the current multimedia content.
5. The apparatus of claim 4, wherein the data model corresponding to the current literal content comprises: at least one of a document data model, a decoration data model, a selection data model, and a history data model; the data model corresponding to the current multimedia content comprises the following steps: at least one of a document data model, a decoration data model, a selection data model, and a history data model.
6. The apparatus according to claim 4, wherein:
the display module is further used for performing data rendering on the checked current text content and the checked current multimedia input by the current user in an editing area corresponding to the rich text editor; and displaying the rendered current text content and the current multimedia content input by the current user to the current user in a display area corresponding to the rich text editor.
7. A mobile terminal, comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the rich text editing method of any of claims 1 to 3.
8. A storage medium having stored thereon a computer program, which when executed by a processor implements the rich text editing method as claimed in any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811604235.6A CN109753644B (en) | 2018-12-26 | 2018-12-26 | Rich text editing method and device, mobile terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811604235.6A CN109753644B (en) | 2018-12-26 | 2018-12-26 | Rich text editing method and device, mobile terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109753644A CN109753644A (en) | 2019-05-14 |
CN109753644B true CN109753644B (en) | 2023-11-28 |
Family
ID=66403967
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811604235.6A Active CN109753644B (en) | 2018-12-26 | 2018-12-26 | Rich text editing method and device, mobile terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109753644B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111596917B (en) * | 2020-04-27 | 2021-08-20 | 五八有限公司 | Editing operation processing method and device, electronic equipment and storage medium |
CN111625313A (en) * | 2020-05-20 | 2020-09-04 | 北京达佳互联信息技术有限公司 | Resource processing progress display method and device, electronic equipment and storage medium |
CN113392206A (en) * | 2021-06-17 | 2021-09-14 | 李元烈 | Intelligent editing method for popular culture hot content |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11175220A (en) * | 1997-12-10 | 1999-07-02 | Matsushita Electric Ind Co Ltd | Display method for rich text material and video information provision system |
JP2004054952A (en) * | 2002-07-19 | 2004-02-19 | O Jinko | On-line homepage editor system and its editing method |
CN101361064A (en) * | 2005-12-16 | 2009-02-04 | Emil有限公司 | A text editing apparatus and method |
CN102662928A (en) * | 2012-03-28 | 2012-09-12 | 福建榕基软件股份有限公司 | Rich text editing method for importing documents and device thereof |
CN103093486A (en) * | 2011-11-04 | 2013-05-08 | 腾讯科技(深圳)有限公司 | Method and device for editing of log |
CN103259913A (en) * | 2012-02-17 | 2013-08-21 | 百度在线网络技术(北京)有限公司 | Multimedia message editing method and device for mobile terminal and mobile terminal |
CN103279559A (en) * | 2013-06-13 | 2013-09-04 | 北京神鹰城讯科技有限公司 | Rich text editing method and device based on Android system |
CN105843787A (en) * | 2016-03-24 | 2016-08-10 | 武汉斗鱼网络科技有限公司 | Rich text editing method and system |
CN105976414A (en) * | 2016-04-28 | 2016-09-28 | 北京小米移动软件有限公司 | Picture position editing method and picture position editing device |
CN106066757A (en) * | 2016-06-20 | 2016-11-02 | 深圳前海首席科技网络有限公司 | A kind of method and system of mobile terminal APP picture and text mixing |
CN106202014A (en) * | 2016-06-28 | 2016-12-07 | 乐视控股(北京)有限公司 | RichText Edition method, device and mobile terminal |
CN107066438A (en) * | 2017-03-15 | 2017-08-18 | 北京三快在线科技有限公司 | A kind of method for editing text and device, electronic equipment |
CN107180099A (en) * | 2017-05-17 | 2017-09-19 | 上海爱优威软件开发有限公司 | A kind of information processing method |
CN107656941A (en) * | 2016-07-26 | 2018-02-02 | 阿里巴巴集团控股有限公司 | Document analysis method, apparatus and editor |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020069217A1 (en) * | 2000-12-04 | 2002-06-06 | Hua Chen | Automatic, multi-stage rich-media content creation using a framework based digital workflow - systems, methods and program products |
US7890852B2 (en) * | 2003-06-26 | 2011-02-15 | International Business Machines Corporation | Rich text handling for a web application |
-
2018
- 2018-12-26 CN CN201811604235.6A patent/CN109753644B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH11175220A (en) * | 1997-12-10 | 1999-07-02 | Matsushita Electric Ind Co Ltd | Display method for rich text material and video information provision system |
JP2004054952A (en) * | 2002-07-19 | 2004-02-19 | O Jinko | On-line homepage editor system and its editing method |
CN101361064A (en) * | 2005-12-16 | 2009-02-04 | Emil有限公司 | A text editing apparatus and method |
CN103093486A (en) * | 2011-11-04 | 2013-05-08 | 腾讯科技(深圳)有限公司 | Method and device for editing of log |
CN103259913A (en) * | 2012-02-17 | 2013-08-21 | 百度在线网络技术(北京)有限公司 | Multimedia message editing method and device for mobile terminal and mobile terminal |
CN102662928A (en) * | 2012-03-28 | 2012-09-12 | 福建榕基软件股份有限公司 | Rich text editing method for importing documents and device thereof |
CN103279559A (en) * | 2013-06-13 | 2013-09-04 | 北京神鹰城讯科技有限公司 | Rich text editing method and device based on Android system |
CN105843787A (en) * | 2016-03-24 | 2016-08-10 | 武汉斗鱼网络科技有限公司 | Rich text editing method and system |
CN105976414A (en) * | 2016-04-28 | 2016-09-28 | 北京小米移动软件有限公司 | Picture position editing method and picture position editing device |
CN106066757A (en) * | 2016-06-20 | 2016-11-02 | 深圳前海首席科技网络有限公司 | A kind of method and system of mobile terminal APP picture and text mixing |
CN106202014A (en) * | 2016-06-28 | 2016-12-07 | 乐视控股(北京)有限公司 | RichText Edition method, device and mobile terminal |
CN107656941A (en) * | 2016-07-26 | 2018-02-02 | 阿里巴巴集团控股有限公司 | Document analysis method, apparatus and editor |
CN107066438A (en) * | 2017-03-15 | 2017-08-18 | 北京三快在线科技有限公司 | A kind of method for editing text and device, electronic equipment |
CN107180099A (en) * | 2017-05-17 | 2017-09-19 | 上海爱优威软件开发有限公司 | A kind of information processing method |
Also Published As
Publication number | Publication date |
---|---|
CN109753644A (en) | 2019-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109597617B (en) | Method and device for quickly generating service page based on template | |
CN106991154B (en) | Webpage rendering method and device, terminal and server | |
US9936022B2 (en) | Computer device for reading e-book and server for being connected with the same | |
WO2017206626A1 (en) | Network resource access apparatus, mixed apparatus, and method | |
CN110362372A (en) | Page translation method, device, medium and electronic equipment | |
CN110020329B (en) | Method, device and system for generating webpage | |
CN109753644B (en) | Rich text editing method and device, mobile terminal and storage medium | |
CN112684968A (en) | Page display method and device, electronic equipment and computer readable medium | |
CN113158101B (en) | Visual page rendering method, device, equipment and storage medium | |
CN113110829B (en) | Multi-UI component library data processing method and device | |
CN110780874B (en) | Method and device for generating information | |
CN110058854B (en) | Method, terminal device and computer-readable medium for generating application | |
US20150356060A1 (en) | Computer system and method for automatedly writing a user's autobiography | |
CN111443909A (en) | Method and device for generating page | |
CN111061860A (en) | Abstract generation method and device | |
CN111291575B (en) | Text processing method and device, electronic equipment and storage medium | |
CN114528816B (en) | Collaborative editing information display method and device, electronic equipment and readable medium | |
CN115495417A (en) | Content loading method, device, equipment, medium and program product | |
CN113553123B (en) | Data processing method, device, electronic equipment and storage medium | |
CN107862035B (en) | Network reading method and device for conference record, intelligent tablet and storage medium | |
US20190065474A1 (en) | Synonymy tag obtaining method and apparatus, device and computer readable storage medium | |
CN109684570A (en) | Web information processing method and device | |
CN111381819A (en) | List creation method and device, electronic equipment and computer-readable storage medium | |
CN110618811B (en) | Information presentation method and device | |
CN111198738A (en) | Mobile terminal page display method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |