CN109299444B - Method and device for generating rich text editor - Google Patents
Method and device for generating rich text editor Download PDFInfo
- Publication number
- CN109299444B CN109299444B CN201710612710.3A CN201710612710A CN109299444B CN 109299444 B CN109299444 B CN 109299444B CN 201710612710 A CN201710612710 A CN 201710612710A CN 109299444 B CN109299444 B CN 109299444B
- Authority
- CN
- China
- Prior art keywords
- rich text
- editing
- text editor
- toolbar
- editors
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a device for generating rich text editors, relates to the technical field of text processing, and aims to solve the problem that an operation interface is too redundant when a plurality of rich text editors are used in the prior art. The method of the invention comprises the following steps: acquiring a plurality of first rich text editors, wherein the first rich text editors comprise an editing column and a tool column, and the editing column corresponds to the tool column one by one; setting editing columns of a plurality of first rich text editors in editing columns of a second rich text editor; hiding the tool bars of the plurality of first rich text editors in the tool bars of the second rich text editors; and when the editing bar of the first rich text editor is in an editing state, displaying a toolbar corresponding to the editing bar in the toolbar of the second rich text editor. The invention is suitable for application in generating a rich text editor.
Description
Technical Field
The invention relates to the technical field of text processing, in particular to a method and a device for generating a rich text editor.
Background
With the continued development of technology, the use of rich text editors has been increasingly widespread. A Rich Text Editor (RTE) is an Editor that can be used to edit Text in a web page, with editing functionality similar to Microsoft Word. Such rich text editors have been favored by users who do not write HTML. The universal remote editor is an open-source rich text editor which is obtained by the what you see is what you get and is developed by the hundred-degree WEB front-end research and development part, and has been widely applied to internet company products because of the characteristics of light weight, customizable design, excellent user experience and the like.
Currently, existing rich text editors are all in the form of an edit bar and a corresponding toolbar. However, in practical applications, one editing column is insufficient to meet the practical requirements. When performing text editing operations on a page, multiple editors are often required, which results in a very redundant operation interface, since each editor corresponds to a toolbar. Therefore, how to generate a rich text editor method capable of not only retaining various toolbar functions, but also simplifying an operation interface becomes a problem to be solved in the field.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for generating a rich text editor, which mainly aims to generate a rich text editor that can keep tool bars with a plurality of different functions and simplify an operation interface.
In order to solve the technical problem, in a first aspect, the present invention provides a method for generating a rich text editor, which includes:
acquiring a plurality of first rich text editors, wherein the first rich text editors comprise an editing column and a tool column, and the editing column corresponds to the tool column one by one;
setting editing columns of a plurality of first rich text editors in editing columns of a second rich text editor;
hiding the tool bars of the plurality of first rich text editors in the tool bars of the second rich text editors;
and when the editing bar of the first rich text editor is in an editing state, displaying a toolbar corresponding to the editing bar in the toolbar of the second rich text editor.
Optionally, when the editing bar of the first rich text editor is in an editing state, displaying a toolbar corresponding to the editing bar in the toolbar of the second rich text editor includes:
Binding a focus event for the first rich text editor, wherein the focus event is used for displaying a corresponding toolbar when an editing bar in the first rich text editor is in an editing state;
triggering a focus event of a first rich text editor when a cursor is positioned in an editing column in the first rich text editor;
and according to the triggered focus event, adjusting a toolbar corresponding to the editing bar from a hidden state to a display state in the toolbar of the second rich text editor.
Optionally, the hiding the tool bar of the plurality of first rich text editors in the tool bar of the second rich text editors includes:
determining a toolbar with the largest height among the toolbars of the plurality of first rich text editors;
setting the height of the toolbar of the second rich text editor according to the height of the toolbar with the largest height so as to ensure that the toolbar of the first rich text editor does not exceed the range of the toolbar of the second rich text editor;
overlapping the tool bars of the plurality of first rich text editors in the tool bar of the second rich text editor;
modifying the display properties of the toolbar of the plurality of first rich text editors to a hidden state.
Optionally, the overlapping the tool bars of the plurality of first rich text editors with the tool bars of the second rich text editors includes:
modifying the positioning attribute of the tool bars of the first rich text editors so that the tool bars of the first rich text editors can perform displacement operation;
setting displacement ranges of tool bars of the plurality of first rich text editors, wherein the displacement ranges are areas where the tool bars of the second rich text editors are located;
and according to the displacement range, moving the tool bars of the first rich text editors to the top in the displacement range through a displacement operation.
Optionally, the setting the editing columns of the plurality of first rich text editors in the editing columns of the second rich text editors includes:
determining a height of an editing column of the second rich text editor;
setting a plurality of editing areas in the area of the editing column of the second rich text editor, wherein the width of the editing area is the same as that of the editing column of the second rich text editor;
and distributing corresponding editing areas for editing columns of the first rich text editors according to the editing areas.
Optionally, the setting a plurality of editing areas in the area of the editing column of the second rich text editor includes:
setting a plurality of editing areas which are the same as the number of the editing areas of the plurality of first rich text editors in the area of the editing areas of the second rich text editors according to the number of the editing areas of the plurality of first rich text editors; or,
setting a preset number of editing areas in the area of the editing column of the second rich text editor, wherein the preset number is preset in the second rich text editor according to editing requirements.
In a second aspect, the present invention further provides a generating device of a rich text editor, where the device includes:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring a plurality of first rich text editors, the first rich text editors comprise an editing column and a tool column, and the editing column corresponds to the tool column one by one;
a first setting unit configured to set the edit fields of the plurality of first rich text editors acquired by the acquisition unit in the edit field of the second rich text editor;
a second setting unit configured to hide the tool bars of the plurality of first rich text editors acquired by the acquiring unit in the tool bars of the second rich text editors;
And the display unit is used for displaying a toolbar corresponding to the editing bar in the toolbar of the second rich text editor set by the second setting unit when the editing bar of the first rich text editor set by the first setting unit is in an editing state.
Optionally, the display unit includes:
the binding module is used for binding a focus event for the first rich text editor, and the focus event is used for displaying a corresponding toolbar when an editing column in the first rich text editor is in an editing state;
the triggering module is used for triggering the focus event of the first rich text editor bound by the binding module when the cursor is positioned in the editing column of the first rich text editor;
and the adjusting module is used for adjusting the toolbar corresponding to the editing bar from the hidden state to the display state in the toolbar of the second rich text editor according to the focus event triggered by the triggering module.
Optionally, the second setting unit includes:
a determining module, configured to determine a toolbar with a largest height among the toolbars of the plurality of first rich text editors;
the setting module is used for setting the height of the toolbar of the second rich text editor according to the height of the toolbar with the largest height determined by the determining module so as to ensure that the toolbar of the first rich text editor does not exceed the range of the toolbar of the second rich text editor;
The setting module is used for overlapping the tool bars of the plurality of first rich text editors in the tool bars of the second rich text editors set by the setting module;
and the modification module is used for modifying the display attributes of the tool bars of the plurality of first rich text editors set by the setting module into a hidden state.
Optionally, the setting module includes:
a modification sub-module, configured to modify positioning attributes of tool bars of the plurality of first rich text editors, so that the tool bars of the plurality of first rich text editors can perform displacement operations;
the setting submodule is used for setting displacement ranges of tool bars of the plurality of first rich text editors, wherein the displacement ranges are areas where the tool bars of the second rich text editors are located;
and the displacement sub-module is used for moving the tool bars of the plurality of first rich text editors modified by the modification sub-module to the top in the displacement range through displacement operation according to the displacement range set by the setting sub-module.
Optionally, the first setting unit includes:
a determining module, configured to determine a height of an editing column of the second rich text editor;
A setting module, configured to set a plurality of editing areas in the area of the editing column of the second rich text editor determined by the determining module, where the width of the editing area is the same as the width of the editing column of the second rich text editor;
and the distribution module is used for distributing corresponding editing areas for the editing columns of the plurality of first rich text editors according to the plurality of editing areas set by the setting module.
Optionally, the setting module is specifically configured to set, according to the number of editing columns of the plurality of first rich text editors, a plurality of editing areas equal to the number of editing columns of the plurality of first rich text editors in the area of the editing columns of the second rich text editor; or,
the setting module is specifically configured to set a preset number of editing areas in an editing field of the second rich text editor, where the preset number is preset in the second rich text editor according to an editing requirement.
In order to achieve the above object, according to a third aspect of the present invention, there is provided a storage medium including a stored program, wherein the device in which the storage medium is controlled to execute the above-described method of generating a rich text editor when the program runs.
In order to achieve the above object, according to a fourth aspect of the present invention, there is provided a processor for running a program, wherein the program runs while performing the above-described rich text editor generation method.
By means of the technical scheme, when the text editing operation is carried out on one page in the prior art, the method and the device for generating the rich text editor often need a plurality of tool bars corresponding to a plurality of editors, and further the problem that an operation interface is very redundant is solved. In addition, according to the method provided by the invention, the situation of misoperation caused when a plurality of working bars appear on the operation interface can be avoided, so that the probability of misoperation is reduced.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 shows a flowchart of a method for generating a rich text editor according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for generating a rich text editor according to an embodiment of the invention;
FIG. 3 is a block diagram showing a rich text editor generating apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram showing another apparatus for generating a rich text editor according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to generate a rich text editor that can keep tool bars with multiple different functions and simplify an operation interface, an embodiment of the present invention provides a method for generating a rich text editor, as shown in fig. 1, where the method includes:
101. a plurality of first rich text editors is obtained.
The first rich text editor comprises an editing column and a tool column, and the editing column corresponds to the tool column one by one.
In general, the rich text editor includes an edit bar and a toolbar, which are in one-to-one correspondence. Specifically, the editing column of the rich text editor is an area for editing a web page code, wherein the web page code can be an HTML code or other codes; correspondingly, some related tools are needed when editing the webpage codes, and the tools are selected in the tool bar. Since many different types of editing tools are typically required during editing of the web page code, the tool bars in which the different tools reside are likely to be different. Thus, many rich text editors need to be opened to use tools in different toolbars when editing web page code.
Thus, according to the method of this step, different rich text editors corresponding to different tool bars, that is, a plurality of first rich text editors described in this step, need to be acquired. It should be noted that the tool bars between the plurality of first rich text editors described in this step may be different to meet the requirements of different functions when editing the web page code. In particular, the rich text editor may be obtained and selected according to the actual desired functionality, which is not specifically limited herein.
102. An edit field of the plurality of first rich text editors is set in an edit field of the second rich text editor.
Since the embodiment of the present invention aims to implement the synthesis of the functions of multiple rich text editors, in this process, the editing columns of multiple rich text editors also need to be integrated, i.e. the editing columns of multiple first rich text editors are set in the editing columns of the second rich text editor in this step. Dividing the whole display area of the second rich text editor to be generated to obtain an area for setting the editing columns of the plurality of first rich text editors; the edit bars of the first plurality of rich text editors are then arranged in a tiled fashion within the area. Of course, the method of arranging the edit bars of the plurality of first rich text editors in the tiled manner in the edit bar area of the second rich text editor in this step is only one implementation manner of the method of this step, and other arrangement manners may also be selected, for example, the edit bars of the plurality of first rich text editors may be arranged in an overlapping manner in the edit bars of the second rich text editor; or, the editing columns of the plurality of first rich text editors are arranged and arranged at the side surfaces of the editing columns of the plurality of second rich text editors in a minimized form, and the editing columns of the first rich text editors with only one activated state are displayed in the editing columns of the second rich text editors, so that the specific arrangement form of the method in the step is not particularly limited, and can be selected according to actual needs.
However, when the editing columns of the plurality of first rich text editors are set in the editing columns of the second rich text editors, it is ensured that the range of the editing columns of the first rich text editors does not exceed the boundary of the second rich text editing columns. Specifically, the setting and determining of the relevant parameters may be performed by setting a function command, or may be performed by selecting other manners, which are not limited herein, for example: when a function command is selected to execute the method in the step, the size of the range of the editing column in the second rich text editor can be determined through the function command, the boundary value and the size of the editing column of the first rich text editor are utilized, and the position of the editing column of the first rich text editor is determined through a positioning function, so that the situation that the editing column of the first rich text editor exceeds the boundary of the editing column of the second rich text editor when the second rich text editing column is used is avoided, and the problem of incomplete display is avoided.
103. And hiding the tool bars of the first rich text editors in the tool bars of the second rich text editors.
It should be noted that, the method described in step 103 and the method described in step 102 are not logically sequential. In the implementation of the method according to the present invention, step 102 is performed first, and then step 103 is performed only as one specific implementation. Therefore, when the method according to the embodiment of the present invention is executed, the sequence of step 102 and step 103 may be selected according to the need, and the sequence is not limited herein.
Therefore, according to the method of the embodiment of the present invention, after the setting of the editing bar in step 102 is performed, in this step, the toolbar of the first rich text editor is set in the toolbar of the second rich text editor, and specifically, when the toolbars of the first rich text editors are set in the toolbar of the second rich text editor, the toolbars of the first rich text editors need to be set in a hidden manner, so as to ensure that the toolbars are not displayed in the second rich text editor. Wherein when setting the toolbar of the plurality of first rich text editors in the toolbar of the second rich text editor, a toolbar area may be set in the second rich text editor first, and then the toolbar of the first rich text editor may be set in the area. The setting method may be any of stacking or tiling, and is not particularly limited, and may be set as needed. In addition, the specific implementation manner of the method in this step may be implemented by any one of a plurality of forms such as a function command set in the prior art or editing a corresponding programming code, which is not described herein, and a specific implementation manner may be selected as required.
104. And when the editing bar of the first rich text editor is in an editing state, displaying a toolbar corresponding to the editing bar in the toolbar of the second rich text editor.
As described in step 101, there is a one-to-one correspondence between the toolbar of the rich text editor and the toolbar of the editing bar, and since the toolbar of the first rich text editor is hidden in step 103, in this step, when the editing bar is in an editing state, the toolbar corresponding to the editing bar needs to be displayed, so as to ensure that when an operation is performed in the editing bar, a tool in the toolbar corresponding to the editing bar can be selected.
For example, if the first rich text editor a, the first rich text editor b and the first rich text editor c are integrated in the second rich text editor a, when the editing column of the first rich text editor a in the second rich text editor a is in the editing state, the toolbar of the first rich text editor a in the second rich text editor a is adjusted from the hidden state to the visible state and displayed, and the toolbar of the first rich text editor b and the toolbar of the first rich text editor c are not displayed and still in the hidden state.
According to the method for generating the rich text editor, when text editing operation is carried out on one page in the prior art, a plurality of tool bars corresponding to a plurality of editors are often needed, and further the problem of quite redundant operation interfaces is solved. In addition, according to the method provided by the embodiment of the invention, the situation of misoperation caused when a plurality of working bars appear on the operation interface can be avoided, so that the probability of misoperation is reduced.
Further, as a refinement and extension to the embodiment shown in fig. 1, the embodiment of the present invention further provides another method for generating a rich text editor, as shown in fig. 2.
201. A plurality of first rich text editors is obtained.
In the embodiment of the present invention, the first rich text editor is the same as the first rich text editor described in step 101 in the previous embodiment, and will not be described herein.
Typically, since many different editing tools in different tool bars in many different rich text editors are required to be used when editing the web page code. Therefore, a plurality of rich text editors need to be opened when editing the web page code.
In this regard, according to the method of the embodiment of the present invention, before a plurality of rich text editors are acquired, a plurality of different rich text editors may be generated by an initial rich text editor according to different editing requirements and different functions, then, screening is performed on a plurality of tool bars corresponding to the plurality of first rich text editors according to the functions required by a second rich text editor to be generated, a rich text editor corresponding to a tool bar meeting the requirements is selected, and then, the plurality of rich text editors are obtained according to the method of the present step.
Specifically, based on the implementation manner of the code, the step may further be: firstly, an outer container is arranged for storing the second rich text editor, then a plurality of containers of rich text editors are generated in the outer container, and finally, different first rich text editors are generated through one rich text editor containing null values and are provided with labels corresponding to the first rich text editors. Wherein the outer container is understood as a block-level element, and the composition operation of the rich text editor can be performed based on the outer container. In addition, the tags that are generated simultaneously when different rich text editors are generated are then used for invocation and control in subsequent further steps. Thus, based on the implementation of the code, the programming code of the outer container may be:
<div class=“editor-container”></div>
in addition, the different rich text editors are generated by one rich text editor containing null values, and programming codes with different labels can be as follows:
according to the method, the first rich text editor with multiple different functions can be generated, then the first rich text editor corresponding to the toolbar with the corresponding function can be obtained according to the requirement, the function of the rich text editor to be generated can be selected, and the function of the second rich text editor can be controlled.
202. An edit field of the plurality of first rich text editors is set in an edit field of the second rich text editor.
Specifically, according to the method of this step, when the editing column of the first rich text editor is set in the editing column of the second rich text editor, the specific setting mode may be any mode of horizontal, vertical or superposition modes, and the actual setting mode may be selected according to needs, which is not limited herein.
Thus, when selecting to vertically set the editing columns of the plurality of first rich text editors in the editing columns of the second rich text editors, based on the application scenario, this step may specifically include: firstly, determining the height of an editing column of the second rich text editor; then, setting a plurality of editing areas in the area of the editing column of the second rich text editor; and finally, according to the plurality of editing areas, corresponding editing areas are allocated for editing columns of the plurality of first rich text editors. Wherein the width of the editing area is the same as the width of the editing column of the second rich text editor.
Specifically, setting a plurality of editing areas in the area of the editing column of the second rich text editor in this step may specifically be: setting a plurality of editing areas which are the same as the number of the editing columns of the plurality of first rich text editors in the area of the editing columns of the second rich text editors according to the number of the editing columns of the plurality of first rich text editors; or, a preset number of editing areas are set in the area of the editing column of the second rich text editor, and the preset number is preset in the second rich text editor according to editing requirements.
According to the method of this step, since the edit bars of the first rich text editor are vertically distributed in the edit bars of the second rich text editor, it can be determined that the width of the edit area of the second rich text editor is the same as the width of the edit bars of the first rich text editor, whereby by determining the height of the second rich text editor, it can be determined that the number of edit bars of the first rich text editor can be set in the current edit area. In actual operation, the display height of the edit bars of the first rich text editor may be set as needed, so the number of edit bars included in the second rich text editor to be generated in this step may be determined as needed in practice. Meanwhile, when a plurality of edit areas are set in the area of the edit bar of the second rich text editor, the selected set number may be set based on both the preset number or the number of edit bars of the first rich text editor. The preset number in this step may be a fixed value set by human beings when the second rich text editor is generated. Therefore, when a plurality of edit areas are set in the area of the edit bar of the second rich text editor, the specific case of setting the number of edit areas can be selected as needed. When the preset number is selected as the number of the plurality of editing areas and the number of the acquired first rich text editors is greater than the preset number, the editing columns of the acquired partial first rich text editors can be allocated for editing areas, and the number exceeding the number is not allocated. However, the editing columns of the first rich text editors not assigned with editing areas may be set in other ways, and are not limited in detail herein. However, when the editing column of the first rich text editor is set in the editing column of the second rich text editor, the editing column is ensured to be in a size which meets the normal operation. For example, the font size and the number of lines in the editing column of the first rich text editor may be acquired by the acquiring function, and then the controlling function is set to control the size of the current editing column by two parameters, that is, the font size and the number of lines, and of course, other modes may be selected to control the size of the editing column, which is not limited herein, and may be selected as required.
Meanwhile, when the corresponding editing areas are allocated to the editing columns of the plurality of first rich text editors, the allocation mode can be randomly allocated, or the editing areas can be orderly allocated according to the required range size of the editing columns of the first rich text editors, and the editing areas are not particularly limited and can be set according to the needs.
Specifically, based on the implementation manner of the code, the specific implementation manner of determining the height of the editing column of the second rich text editor in this step may be:
therefore, according to the method of the step, the editing areas of the editing columns of the first rich text editors are distributed, so that the effect of integrating the editing columns of the plurality of first rich text editors into the editing columns of the second rich text editors to be generated is achieved, and the synthesis function of the editing columns of the second rich text editors is realized.
203. And hiding the tool bars of the first rich text editors in the tool bars of the second rich text editors.
It should be noted that, in the embodiment of the present invention, there is no order division between the step 202 and the step 203, and the order may be that the step 202 is performed to set the edit fields of the plurality of first rich text editors in the edit fields of the second rich text editors in the order as described in the embodiment of the present invention, and then the method described in the step 203 is executed; alternatively, the method of step 203 is performed before the method of step 202 is performed. The specific order may be selected according to the actual situation, and is not particularly limited herein.
Thus, according to the sequence described in the embodiment of the present invention, after the setting manners of the editing bars described in step 202 are performed, according to the method described in this step, when the tool bars of the plurality of rich text editors are set hidden in the tool bars of the second rich text editor, the selected setting manner may set the tool bars of the plurality of first rich text editors in the region of the tool bars of the second rich text editor in different manners such as tiling, vertical or overlapping. The determination may be specifically performed according to actual situations, and is not limited herein.
Thus, when selecting to superimpose the toolbar of the plurality of first rich text editors on the region of the toolbar of the second rich text editors, according to the specific method described in the step, the highest one of the toolbar of the plurality of first rich text editors is first determined, and then the toolbar height of the second rich text editors is set by the height of the toolbar, so that the toolbar of the first rich text editors does not exceed the boundary of the toolbar of the second rich text editors after being integrated into the toolbar region set by the second rich text editors. Then, since the number of toolbars of the first rich text editor is plural, and the toolbar area set by the second rich text editor may not be able to tile the toolbar therein, and the method of the embodiment of the present invention is also conceived to simplify the interface, it is necessary to overlay the toolbars of the first rich text editor with the area of the toolbar of the second rich text editor in this step. Finally, the first rich text editor in the toolbar area of the second rich text editor is set to be in a hidden state. It should be noted that, the implementation manner of this step may select a function or code in the prior art to execute a specific step, and the specific case may be selected according to needs, which is not limited herein.
In addition, the overlapping the tool bars of the plurality of first rich text editors in the tool bar of the second rich text editors in this step may specifically include: first, modifying the positioning attribute of the tool bar of the plurality of first rich text editors; then, setting displacement ranges of tool bars of a plurality of first rich text editors; finally, according to the displacement range, the tool bars of the first plurality of rich text editors are moved to the top in the displacement range through a displacement operation.
Generally, the positioning attribute of the tool bar of the first rich text editor in this step is set in the first rich text editor to be in a fixed position state, so as to prevent the position of the tool bar from changing during the process of using the first rich text editor. Thus, the location properties of the toolbar may be modified in this step by setting programming code. The programming code for modifying the positioning attribute may be selected as needed, which is not specifically limited herein. In addition, the displacement range of the toolbar in which the plurality of rich text editors are set in this step can be similarly realized according to the programming code or the function instruction. Meanwhile, for the two steps of modifying the positioning attribute of the toolbar and setting the displacement range of the toolbar in the step, the sequence is not limited, and the positioning attribute of the toolbar can be determined according to actual needs. Therefore, the displacement operation of the toolbar can be realized by modifying the positioning attribute of the toolbar, and meanwhile, the determination of the range of the displacement operation can ensure that the toolbar cannot move out of the toolbar area of the second rich text editor when the displacement operation is performed. In addition, the specific implementation manner for performing the shift operation in this step may be performed by using the prior art, which is not described herein in detail, and may be selected according to the actual situation.
Specifically, based on the programming code, the modifying the positioning attribute of the tool bars of the first rich text editors and setting the displacement range of the tool bars of the first rich text editors in the steps described in the above steps may be implemented as follows:
204. and when the editing bar of the first rich text editor is in an editing state, displaying a toolbar corresponding to the editing bar in the toolbar of the second rich text editor.
Specifically, the step may include: firstly, binding a focus event for a first rich text editor; then, triggering a focus event of the first rich text editor when a cursor is positioned in an editing column in the first rich text editor; and finally, according to the triggered focus event, adjusting the toolbar corresponding to the editing bar from the hidden state to the display state in the toolbar of the second rich text editor.
The focus event in this step is used to display a corresponding toolbar when the editing toolbar in the first rich text editor is in an editing state. And the focus event needs to be triggered when there is an edited cursor in the edit bar to which the focus event is bound. Therefore, according to the method of this step, when the cursor is in the editing bar, the toolbar corresponding to the editing bar is displayed from the hidden state described in the previous step 203, and the specific display position is the same as that described in the previous step 203, and the toolbar position of the second rich text editor is the top of the second rich text editor in actual use. In the other editing fields, since there is no cursor, the tool bar corresponding to the other editing fields is still in the hidden state described in step 203, and is not displayed. Therefore, when the second rich text editor edits, only the toolbar corresponding to the editing bar where the cursor is positioned is in a display state.
In addition, when no cursor exists in any editing bar, a default displayed toolbar may be set, that is, when the second rich text editor starts to open, an initial toolbar may be displayed, where the default displayed toolbar, that is, the displayed initial toolbar may be selected by itself according to needs, and the method is not limited herein.
Specifically, based on the programming code, the specific implementation manner of this step may be:
according to the method, the display of the corresponding toolbar of the editing bar is controlled by using the bound focus event, so that the effect that only the corresponding toolbar is displayed when the editing bar is operated can be realized, the problem of interface confusion caused by displaying a plurality of toolbars in the prior art is solved, and meanwhile, the probability of misoperation possibly caused by displaying a plurality of toolbars on an operation interface can be reduced.
Furthermore, it should be noted that the specific implementation manners of the code-based methods described in the steps 201 to 204 in the embodiments of the present invention are merely exemplary, and the kind of the programming code and the specific program instructions formed by the same are only one of the specific implementation manners of the methods in the embodiments of the present invention, which are not limited herein. Therefore, when the method of the embodiment of the invention is realized, the type of the programming code and the specific instruction program formed by the code can be selected according to the actual situation and specific requirements.
Further, as an implementation of the method shown in fig. 1, the embodiment of the present invention further provides a device for generating a rich text editor, which is configured to implement the method shown in fig. 1. The embodiment of the device corresponds to the embodiment of the method, and for convenience of reading, details of the embodiment of the method are not repeated one by one, but it should be clear that the device in the embodiment can correspondingly realize all the details of the embodiment of the method. As shown in fig. 3, the apparatus includes: an acquisition unit 31, a first setting unit 32, a second setting unit 33, a display unit 34, wherein
The obtaining unit 31 may be configured to obtain a plurality of first rich text editors, where the first rich text editors include an editing column and a toolbar, and the editing column corresponds to the toolbar one by one.
The first setting unit 32 may be configured to set the edit fields of the plurality of first rich text editors acquired by the acquiring unit 31 in the edit field of the second rich text editor.
The second setting unit 33 may be configured to set the tool bars of the plurality of first rich text editors acquired by the acquiring unit 31 in a hidden manner in the tool bars of the second rich text editors.
The display unit 34 may be configured to display, when the editing bar of the first rich text editor set by the first setting unit 32 is in an editing state, a toolbar corresponding to the editing bar in the toolbar of the second rich text editor set by the second setting unit 33.
Further, as an implementation of the method shown in fig. 2, the embodiment of the present invention further provides another generation device of the rich text editor, which is used for implementing the method shown in fig. 2. The embodiment of the device corresponds to the embodiment of the method, and for convenience of reading, details of the embodiment of the method are not repeated one by one, but it should be clear that the device in the embodiment can correspondingly realize all the details of the embodiment of the method. As shown in fig. 4, the apparatus includes: an acquisition unit 41, a first setting unit 42, a second setting unit 43, a display unit 44, wherein
The obtaining unit 41 may be configured to obtain a plurality of first rich text editors, where the first rich text editors include an editing column and a toolbar, and the editing column corresponds to the toolbar one by one.
The first setting unit 42 may be configured to set the edit fields of the plurality of first rich text editors acquired by the acquiring unit 41 in the edit field of the second rich text editor.
The second setting unit 43 may be configured to hide the toolbars of the plurality of first rich text editors acquired by the acquiring unit 41 in the toolbar of the second rich text editor.
The display unit 44 may be configured to display, when the editing bar of the first rich text editor set by the first setting unit 42 is in an editing state, a toolbar corresponding to the editing bar in the toolbar of the second rich text editor set by the second setting unit 43.
Further, the display unit 44 includes:
binding module 441 may be configured to bind a focus event for the first rich text editor, where the focus event is configured to display a corresponding toolbar when an editing bar in the first rich text editor is in an editing state.
The triggering module 442 may be configured to trigger the focus event of the first rich text editor bound by the binding module 441 when the cursor is located in the edit bar in the first rich text editor.
The adjustment module 443 may be configured to adjust, from the toolbar of the second rich text editor, the toolbar corresponding to the editing bar to a display state from hidden according to the focus event triggered by the trigger module 442.
Further, the second setting unit 43 includes:
a determining module 431 may be configured to determine a toolbar having a largest height among the toolbar of the plurality of first rich text editors.
A setting module 432 may be configured to set the height of the toolbar of the second rich text editor according to the height of the toolbar with the largest height determined by the determining module 431, so as to ensure that the toolbar of the first rich text editor does not exceed the range of the toolbar of the second rich text editor.
A setting module 433 may be configured to set the toolbars of the plurality of first rich text editors in the toolbar of the second rich text editor set by the setting module 432 in an overlapping manner.
The modifying module 434 may be configured to modify the display properties of the tool bars of the first rich text editors set by the setting module 433 into a hidden state.
Further, the setting module 433 includes:
a modification sub-module 4331, configured to modify positioning attributes of the tool bars of the plurality of first rich text editors, so that the tool bars of the plurality of first rich text editors can perform a displacement operation;
a setting submodule 4332, configured to set a displacement range of the tool bars of the plurality of first rich text editors, where the displacement range is an area where the tool bars of the second rich text editors are located;
And a displacement sub-module 4333, configured to move the tool bars of the plurality of first rich text editors modified by the modification sub-module 4331 to the top in the displacement range through a displacement operation according to the displacement range set by the setting sub-module 4332.
Further, the first setting unit 42 includes:
a determining module 421 may be configured to determine a height of an editing column of the second rich text editor.
The setting module 422 may be configured to set a plurality of editing areas in an area of the editing column of the second rich text editor determined by the determining module 421, where a width of the editing area is the same as a width of the editing column of the second rich text editor.
The allocation module 423 may be configured to allocate, according to the plurality of edit areas set by the setting module 422, corresponding edit areas for edit columns of the plurality of first rich text editors.
Further, the setting module 422 may be specifically configured to set, in accordance with the number of editing columns of the plurality of first rich text editors, a plurality of editing areas equal to the number of editing columns of the plurality of first rich text editors in the area of the editing column of the second rich text editor. Or,
The setting module 422 may be specifically configured to set a preset number of editing areas in the editing column of the second rich text editor, where the preset number is preset in the second rich text editor according to the editing requirement.
By means of the technical scheme, in the method and the device for generating the rich text editor, when text editing operation is carried out on one page in the prior art, a plurality of tool bars corresponding to a plurality of editors are often needed, and further the problem that an operation interface is very redundant is solved. In addition, by distributing the editing areas of the editing columns of the first rich text editors, the effect of integrating the editing columns of the plurality of first rich text editors into the editing columns of the second rich text editors to be generated is achieved, and therefore the synthesis function of the editing columns of the second rich text editors is achieved. Further, the maximum heights of the toolbars in the plurality of first rich text editors are used for determining the range of the toolbars of the second rich text editors, and the toolbars of the first rich text editors are overlapped, so that the situation that the toolbars in the first rich text editors exceed the boundary of the toolbars of the second rich text editors can be avoided, the display of the toolbars is avoided from being abnormal, and meanwhile, the displacement attribute of the toolbars of the first rich text editors is modified and the displacement range is determined, so that the toolbars of the first rich text editors can be ensured to move towards the range of the toolbars of the second rich text editors and do not exceed the boundary of the toolbars of the second rich text editors. Moreover, by modifying the display attribute of the toolbar of the first rich text editor, the effect that the corresponding toolbar becomes a hidden state can be achieved. In addition, by controlling the display of the corresponding toolbar of the editing bar by using the bound focus event, the effect that only the corresponding toolbar is displayed when different editing bars are operated can be realized, so that the problem of interface confusion caused by displaying a plurality of toolbars in the prior art is effectively solved, and meanwhile, the probability of misoperation possibly caused by displaying a plurality of toolbars on an operation interface can be reduced.
The text processing device comprises a processor and a memory, wherein the acquisition unit, the first setting unit, the second setting unit and the display unit are all stored in the memory, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and a rich text editor which can save toolbars with a plurality of different functions and simplify an operation interface is generated by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
An embodiment of the present invention provides a storage medium having a program stored thereon, which when executed by a processor, implements a method of generating the rich text editor.
The embodiment of the invention provides a processor which is used for running a program, wherein the generation method of the rich text editor is executed when the program runs.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes the following steps when executing the program: acquiring a plurality of first rich text editors, wherein the first rich text editors comprise an editing column and a tool column, and the editing column corresponds to the tool column one by one; setting editing columns of a plurality of first rich text editors in editing columns of a second rich text editor; hiding the tool bars of the plurality of first rich text editors in the tool bars of the second rich text editors; and when the editing bar of the first rich text editor is in an editing state, displaying a toolbar corresponding to the editing bar in the toolbar of the second rich text editor.
Further, when the editing bar of the first rich text editor is in the editing state, displaying the toolbar corresponding to the editing bar in the toolbar of the second rich text editor includes:
binding a focus event for the first rich text editor, wherein the focus event is used for displaying a corresponding toolbar when an editing bar in the first rich text editor is in an editing state;
Triggering a focus event of a first rich text editor when a cursor is positioned in an editing column in the first rich text editor;
and according to the triggered focus event, adjusting a toolbar corresponding to the editing bar from a hidden state to a display state in the toolbar of the second rich text editor.
Further, the hiding the tool bar of the plurality of first rich text editors in the tool bar of the second rich text editors includes:
determining a toolbar with the largest height among the toolbars of the plurality of first rich text editors;
setting the height of the toolbar of the second rich text editor according to the height of the toolbar with the largest height so as to ensure that the toolbar of the first rich text editor does not exceed the range of the toolbar of the second rich text editor;
overlapping the tool bars of the plurality of first rich text editors in the tool bar of the second rich text editor;
modifying the display properties of the toolbar of the plurality of first rich text editors to a hidden state.
Further, the overlapping the tool bars of the plurality of first rich text editors with the tool bars of the second rich text editors includes:
Modifying the positioning attribute of the tool bars of the first rich text editors so that the tool bars of the first rich text editors can perform displacement operation;
setting displacement ranges of tool bars of the plurality of first rich text editors, wherein the displacement ranges are areas where the tool bars of the second rich text editors are located;
and according to the displacement range, moving the tool bars of the first rich text editors to the top in the displacement range through a displacement operation.
Further, the setting the editing columns of the plurality of first rich text editors in the editing column of the second rich text editor includes:
determining a height of an editing column of the second rich text editor;
setting a plurality of editing areas in the area of the editing column of the second rich text editor, wherein the width of the editing area is the same as that of the editing column of the second rich text editor;
and distributing corresponding editing areas for editing columns of the first rich text editors according to the editing areas.
Further, the setting a plurality of editing areas in the area of the editing column of the second rich text editor includes:
Setting a plurality of editing areas which are the same as the number of the editing areas of the plurality of first rich text editors in the area of the editing areas of the second rich text editors according to the number of the editing areas of the plurality of first rich text editors; or,
setting a preset number of editing areas in the area of the editing column of the second rich text editor, wherein the preset number is preset in the second rich text editor according to editing requirements.
The device in the embodiment of the invention can be a server, a PC, a PAD, a mobile phone and the like.
The embodiments of the present invention also provide a computer program product adapted to perform, when executed on a data processing apparatus, a program initialized with the method steps of: acquiring a plurality of first rich text editors, wherein the first rich text editors comprise an editing column and a tool column, and the editing column corresponds to the tool column one by one; setting editing columns of a plurality of first rich text editors in editing columns of a second rich text editor; hiding the tool bars of the plurality of first rich text editors in the tool bars of the second rich text editors; and when the editing bar of the first rich text editor is in an editing state, displaying a toolbar corresponding to the editing bar in the toolbar of the second rich text editor.
Further, when the editing bar of the first rich text editor is in the editing state, displaying the toolbar corresponding to the editing bar in the toolbar of the second rich text editor includes:
binding a focus event for the first rich text editor, wherein the focus event is used for displaying a corresponding toolbar when an editing bar in the first rich text editor is in an editing state;
triggering a focus event of a first rich text editor when a cursor is positioned in an editing column in the first rich text editor;
and according to the triggered focus event, adjusting a toolbar corresponding to the editing bar from a hidden state to a display state in the toolbar of the second rich text editor.
Further, the hiding the tool bar of the plurality of first rich text editors in the tool bar of the second rich text editors includes:
determining a toolbar with the largest height among the toolbars of the plurality of first rich text editors;
setting the height of the toolbar of the second rich text editor according to the height of the toolbar with the largest height so as to ensure that the toolbar of the first rich text editor does not exceed the range of the toolbar of the second rich text editor;
Overlapping the tool bars of the plurality of first rich text editors in the tool bar of the second rich text editor;
modifying the display properties of the toolbar of the plurality of first rich text editors to a hidden state.
Further, the overlapping the tool bars of the plurality of first rich text editors with the tool bars of the second rich text editors includes:
modifying the positioning attribute of the tool bars of the first rich text editors so that the tool bars of the first rich text editors can perform displacement operation;
setting displacement ranges of tool bars of the plurality of first rich text editors, wherein the displacement ranges are areas where the tool bars of the second rich text editors are located;
and according to the displacement range, moving the tool bars of the first rich text editors to the top in the displacement range through a displacement operation.
Further, the setting the editing columns of the plurality of first rich text editors in the editing column of the second rich text editor includes:
determining a height of an editing column of the second rich text editor;
setting a plurality of editing areas in the area of the editing column of the second rich text editor, wherein the width of the editing area is the same as that of the editing column of the second rich text editor;
And distributing corresponding editing areas for editing columns of the first rich text editors according to the editing areas.
Further, the setting a plurality of editing areas in the area of the editing column of the second rich text editor includes:
setting a plurality of editing areas which are the same as the number of the editing areas of the plurality of first rich text editors in the area of the editing areas of the second rich text editors according to the number of the editing areas of the plurality of first rich text editors; or,
setting a preset number of editing areas in the area of the editing column of the second rich text editor, wherein the preset number is preset in the second rich text editor according to editing requirements.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.
Claims (8)
1. A method of generating a rich text editor, the method comprising:
acquiring a plurality of first rich text editors, wherein the first rich text editors comprise an editing column and a tool column, and the editing column corresponds to the tool column one by one;
setting editing columns of a plurality of first rich text editors in editing columns of a second rich text editor;
hiding the tool bars of the plurality of first rich text editors in the tool bars of the second rich text editors;
when the editing bar of the first rich text editor is in an editing state, displaying a toolbar corresponding to the editing bar in the toolbar of the second rich text editor, wherein the method comprises the following steps:
binding a focus event for the first rich text editor, wherein the focus event is used for displaying a corresponding toolbar when an editing bar in the first rich text editor is in an editing state;
triggering a focus event of a first rich text editor when a cursor is positioned in an editing column in the first rich text editor;
and according to the triggered focus event, adjusting a toolbar corresponding to the editing bar from a hidden state to a display state in the toolbar of the second rich text editor.
2. The method of claim 1, wherein the hiding the toolbar of the plurality of first rich text editors in the toolbar of the second rich text editor comprises:
determining a toolbar with the largest height among the toolbars of the plurality of first rich text editors;
setting the height of the toolbar of the second rich text editor according to the height of the toolbar with the largest height so as to ensure that the toolbar of the first rich text editor does not exceed the range of the toolbar of the second rich text editor;
overlapping the tool bars of the plurality of first rich text editors in the tool bar of the second rich text editor;
modifying the display properties of the toolbar of the plurality of first rich text editors to a hidden state.
3. The method of claim 2, wherein the overlapping the toolbar of the plurality of first rich text editors in the toolbar of the second rich text editor comprises:
modifying the positioning attribute of the tool bars of the first rich text editors so that the tool bars of the first rich text editors can perform displacement operation;
setting displacement ranges of tool bars of the plurality of first rich text editors, wherein the displacement ranges are areas where the tool bars of the second rich text editors are located;
And according to the displacement range, moving the tool bars of the first rich text editors to the top in the displacement range through a displacement operation.
4. The method of claim 1, wherein the disposing the edit fields of the plurality of first rich text editors in the edit fields of the second rich text editor comprises:
determining a height of an editing column of the second rich text editor;
setting a plurality of editing areas in the area of the editing column of the second rich text editor, wherein the width of the editing area is the same as that of the editing column of the second rich text editor;
and distributing corresponding editing areas for editing columns of the first rich text editors according to the editing areas.
5. The method of claim 4, wherein the setting a plurality of edit areas within an area of an edit bar of the second rich text editor comprises:
setting a plurality of editing areas which are the same as the number of the editing areas of the plurality of first rich text editors in the area of the editing areas of the second rich text editors according to the number of the editing areas of the plurality of first rich text editors; or,
Setting a preset number of editing areas in the area of the editing column of the second rich text editor, wherein the preset number is preset in the second rich text editor according to editing requirements.
6. A rich text editor generation apparatus, the apparatus comprising:
the device comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring a plurality of first rich text editors, the first rich text editors comprise an editing column and a tool column, and the editing column corresponds to the tool column one by one;
a first setting unit configured to set the edit fields of the plurality of first rich text editors acquired by the acquisition unit in the edit field of the second rich text editor;
a second setting unit configured to hide the tool bars of the plurality of first rich text editors acquired by the acquiring unit in the tool bars of the second rich text editors;
a display unit, configured to display, when an editing bar of the first rich text editor set by the first setting unit is in an editing state, a toolbar corresponding to the editing bar in a toolbar of the second rich text editor set by the second setting unit, where the display unit includes:
The binding module is used for binding a focus event for the first rich text editor, and the focus event is used for displaying a corresponding toolbar when an editing column in the first rich text editor is in an editing state;
the triggering module is used for triggering the focus event of the first rich text editor bound by the binding module when the cursor is positioned in the editing column of the first rich text editor;
and the adjusting module is used for adjusting the toolbar corresponding to the editing bar from the hidden state to the display state in the toolbar of the second rich text editor according to the focus event triggered by the triggering module.
7. A storage medium comprising a stored program, wherein the program, when run, controls a device in which the storage medium is located to perform the method of generating a rich text editor as claimed in any one of claims 1 to 5.
8. A processor for running a program, wherein the program when run performs the method of generating a rich text editor as claimed in any one of claims 1 to 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710612710.3A CN109299444B (en) | 2017-07-25 | 2017-07-25 | Method and device for generating rich text editor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710612710.3A CN109299444B (en) | 2017-07-25 | 2017-07-25 | Method and device for generating rich text editor |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109299444A CN109299444A (en) | 2019-02-01 |
| CN109299444B true CN109299444B (en) | 2023-06-30 |
Family
ID=65167385
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710612710.3A Active CN109299444B (en) | 2017-07-25 | 2017-07-25 | Method and device for generating rich text editor |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109299444B (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111241793B (en) * | 2020-02-17 | 2023-12-08 | 湖南快乐阳光互动娱乐传媒有限公司 | Method, system and medium for resolving rich text editor content to render to native client |
| CN111914528B (en) * | 2020-06-19 | 2024-02-23 | 北京百度网讯科技有限公司 | Content editing method, method for generating editor, device, equipment and medium thereof |
| CN113177391B (en) * | 2021-05-28 | 2021-11-19 | 掌阅科技股份有限公司 | Method for redirecting operation cursor in streaming interface, computing equipment and storage medium |
| CN113255301B (en) * | 2021-06-10 | 2023-02-03 | 平安国际智慧城市科技股份有限公司 | Webpage text editing method and device, terminal equipment and storage medium |
| CN114547519B (en) * | 2022-02-24 | 2023-04-07 | 京东方数字科技有限公司 | Page editing method and device, electronic equipment and readable storage medium |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7412661B2 (en) * | 2005-03-04 | 2008-08-12 | Microsoft Corporation | Method and system for changing visual states of a toolbar |
| US20080104505A1 (en) * | 2006-10-27 | 2008-05-01 | Keohane Susann M | Method, System and Program Product Supporting Customized Presentation of Toolbars Within a Document |
| CN103034700B (en) * | 2012-12-05 | 2016-06-29 | 北京奇虎科技有限公司 | The processing method of rich text content and system |
| CN103279559A (en) * | 2013-06-13 | 2013-09-04 | 北京神鹰城讯科技有限公司 | Rich text editing method and device based on Android system |
| CN106951152B (en) * | 2016-01-07 | 2020-12-08 | 阿里巴巴集团控股有限公司 | Control method and device for label bar |
-
2017
- 2017-07-25 CN CN201710612710.3A patent/CN109299444B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN109299444A (en) | 2019-02-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109299444B (en) | Method and device for generating rich text editor | |
| CN110058856B (en) | Page configuration method and device | |
| US9081464B2 (en) | Object selection | |
| US9298348B2 (en) | Mobile device and method for providing widgets | |
| JP2006178993A (en) | Method, system, and computer-readable storage medium for layout of automatic placement elements and user placement elements in a diagram | |
| CN112068911B (en) | Electronic form generation method, device, system, equipment and medium | |
| EP3690604A1 (en) | Display control method and system, and virtual reality device | |
| CN107077347B (en) | View management architecture | |
| CN110018984A (en) | A kind of conversion method and device of file format | |
| CN104142776A (en) | Icon processing method and device | |
| CN113360154B (en) | Page construction method, device, equipment and readable medium | |
| CN114238819B (en) | Web page rendering method and device | |
| CN105630595A (en) | Information processing method and electronic equipment | |
| CN112580090B (en) | Authority configuration method and device, storage medium and electronic equipment | |
| CN111897607A (en) | Application interface loading and interaction method, device and storage medium | |
| CN112083859B (en) | Multi-page data aggregation processing method and device | |
| CN110990799A (en) | Data processing method, device and system for anti-crawler and storage medium | |
| US20130290868A1 (en) | System and method for unlimited multi-user computer desktop environment | |
| CN105468252A (en) | Application software operation interface display method and apparatus | |
| CN107818000A (en) | The operating method and device of a kind of page tabular | |
| KR102509976B1 (en) | Method for panning image | |
| CN114115645B (en) | Multi-level menu display method, device, computer equipment and storage medium | |
| US20140164886A1 (en) | Modification of file graphic appearance within a collection canvas | |
| CN116227453A (en) | OFD file and template generation method thereof, electronic equipment and storage medium | |
| CN106570032B (en) | Method and device for controlling webpage |
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 | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd. |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant |