Element merging method, electronic equipment and storage medium

By detecting the moving operations and overlapping areas of the content editor, the element merging options are automatically displayed, which solves the problem of cumbersome content editor operations in the prior art, and realizes a simplified content element merging process.

CN120447809APending Publication Date: 2025-08-08GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410147463.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-01
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

During the text editing process of existing rich content editors, users need to copy and paste the content of multiple editors one by one, resulting in cumbersome operations.

Method used

By detecting the moving operations and overlapping areas of the content editor, the element merge options are automatically displayed, and the content elements merge is implemented when preset conditions are met.

Benefits of technology

Simplifies the content element merging process, improves operational convenience and merge accuracy, and reduces manual operation steps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120447809A_ABST
    Figure CN120447809A_ABST
Patent Text Reader

Abstract

The invention discloses an element merging method, electronic equipment and a storage medium. The method comprises the following steps: acquiring a moving operation for a first content editor; in the moving process of the first content editor, determining an overlapping area when a first area of the first content editor and a second area of a second content editor are overlapped; when the overlapping area meets a preset condition, displaying an element merging option; and obtaining a trigger operation for the element merging option, and merging the first content element of the first content editor and the second content element of the second content editor into a target content editor based on the trigger operation. And the element merging step is simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of text editing technology, and in particular to an element merging method, electronic device, and storage medium. Background Art

[0002] Rich Content Editor is a content editor that can be embedded in the browser to achieve what you see is what you get.

[0003] When editing text in a rich content editor, if a user needs to merge text contents of multiple rich content editors, they need to copy and paste the contents of each rich content editor into another rich content editor one by one, which makes the editing operation cumbersome. Summary of the Invention

[0004] The embodiments of the present application provide an element merging method, an electronic device, and a storage medium, which simplify the steps of element merging.

[0005] In a first aspect, an embodiment of the present application provides an element merging method, the method comprising:

[0006] Get the move operation for the first content editor;

[0007] During the movement of the first content editor, determining an overlapping area when a first area of the first content editor and a second area of the second content editor overlap;

[0008] When the overlapping area meets the preset conditions, an element merging option is displayed;

[0009] A trigger operation for the element merging option is obtained, and based on the trigger operation, the first content element of the first content editor and the second content element of the second content editor are merged into a target content editor.

[0010] In a second aspect, an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor and executing the steps of the above method.

[0011] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the above method.

[0012] In an embodiment of the present application, by detecting a move operation of moving the first content editor and when the overlapping area of the first content editor and the second content editor meets a preset condition, the first content element of the first content editor and the second content element of the second content editor are merged into the target editor. In this way, the first content element of the first content editor and the second content element of the second content editor can be merged by moving, thereby simplifying the process of merging content elements in the two content editors. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0014] Figure 1 A schematic diagram of a scenario of an element merging method provided in an embodiment of the present application;

[0015] Figure 2 A schematic diagram of a flow chart of an element merging method provided in an embodiment of the present application;

[0016] Figure 3 A schematic diagram of a flow chart of an element merging method provided in an embodiment of the present application;

[0017] Figure 4 A schematic diagram of a scenario of an element merging method provided in an embodiment of the present application;

[0018] Figure 5 A schematic diagram of a scenario of an element merging method provided in an embodiment of the present application;

[0019] Figure 6 A schematic diagram of a scenario of an element merging method provided in an embodiment of the present application;

[0020] Figure 7 A schematic diagram of a scenario of an element merging method provided in an embodiment of the present application;

[0021] Figure 8 A schematic diagram of a flow chart of an element merging method provided in an embodiment of the present application;

[0022] Figure 9 A schematic diagram of a scenario of an element merging method provided in an embodiment of the present application;

[0023] Figure 10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0025] In the description of this application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood to indicate or imply relative importance. In the description of this application, it should be noted that, unless otherwise expressly specified and limited, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances. In addition, in the description of this application, unless otherwise specified, "multiple" refers to two or more. "and / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0026] In the related technical solutions, when merging content elements, it is necessary to activate the content editor by selecting the content editor to enter the editable state. In the editable state, the user selects the content element in the content editor, and then pastes the target content element into another content editor to merge the content elements. When splitting the content elements of a content editor into another content editor, the user is usually required to select the target content element to be split among the content elements of the content editor, and then create a new content editor, and paste the selected content element into the newly created content editor. It is not difficult to see from this that the existing solutions have the problem of cumbersome operation process when merging content elements in two content editors and splitting part of the content in one content editor into another content editor.

[0027] In an embodiment of the present application, by detecting a move operation of moving the first content editor and when the overlapping area of the first content editor and the second content editor meets a preset condition, the first content element of the first content editor and the second content element of the second content editor are merged into the target editor. Thus, the first content element of the first content editor and the second content element of the second content editor are merged by moving the first content editor, thereby simplifying the process of merging content elements in the two content editors.

[0028] Reference Figure 1 , Figure 1 This is a schematic diagram of the scenario of this application.

[0029] When a movement operation is detected for the first content editor, whether there is an overlapping area between the first area of the first content editor and the second area of the second content editor during the movement of the first content editor is determined in real time. If it is determined that the overlapping area meets a preset condition, an element merge option is displayed on the display interface, a user trigger operation for the element merge option is obtained, and the first content element in the first content editor and the second content element in the second content editor are merged into the target content editor based on the trigger operation.

[0030] In this embodiment, the preset condition may be whether the overlapping area of the first region and the second region when overlapping meets a preset overlapping area threshold. If so, the first content element and the second content element are merged in the target content editor.

[0031] It is understood that when the first content element and the second content element are merged, the first content element can be placed at the bottom of the second content element, or at the top of the second content element, or at the left of the second content element. In this embodiment, the positions of the first content element and the second content element in the target content editor are not limited.

[0032] In this embodiment, when the first content element and the second content element are merged into the target content editor, the formats of the first content element and the second content element may be retained in the target content editor.

[0033] In an embodiment of the present application, by detecting a move operation of moving the first content editor and when the overlapping area of the first content editor and the second content editor meets a preset condition, the first content element of the first content editor and the second content element of the second content editor are merged into the target editor. In this way, the first content element of the first content editor and the second content element of the second content editor can be merged by moving, thereby simplifying the process of merging content elements in the two content editors.

[0034] The following will be combined Figures 2 to 9 , the element merging method provided in the embodiment of the present application is introduced in detail.

[0035] See Figure 2 , provides a flow chart of an element merging method according to an embodiment of the present application. Figure 2 As shown, the element merging method may include the following steps S101 to S104.

[0036] S101, obtaining a move operation for a first content editor;

[0037] The first content editor can be an editing tool that can be used to edit text, insert images, create tables, set font styles, and paragraph formats. It can be used in scenarios such as website construction, blog writing, and document editing.

[0038] The moving operation on the first content editor may be that the user drags the first content editor by using a mouse, or drags the first content editor by clicking a touch screen with a touch pen.

[0039] S102: During the movement of the first content editor, determining an overlapping area when a first area of the first content editor and a second area of the second content editor overlap;

[0040] The first area may be an area where the first content editor overlaps with other editors when the first content editor is detected to be moving. There may be one or more first areas in the first content editor.

[0041] Optionally, in the embodiment of the present application, an area with a certain width may be set at the edge of the first content editor as the first area of the first content editor.

[0042] For example, if the first content editor is a quadrilateral, areas of a certain width can be set around the first content editor as the first area of the first content editor. That is, there are four first areas in the first content editor. Thus, whether the first content editor overlaps with the second area of the second content editor can be determined based on the first areas.

[0043] It can be understood that the settings of the second area of the second content editor are similar to the settings of the first area of the first content editor, and are not further described herein.

[0044] S103, when the overlapping area meets a preset condition, displaying an element merging option;

[0045] The element merging option may be an option for determining whether to perform content element merging.

[0046] During the movement of the first content editor, it is determined whether there is an overlapping area between the first area of the first content editor and the second area of the second content editor. If it is determined that there is an overlapping area, it is determined whether the overlapping area meets a preset condition.

[0047] Optionally, in this embodiment, when there are multiple first areas of the first content editor and multiple second areas of the second content editor, it can be determined whether the overlapping first and second areas in the current overlapping area are the target first area and the target second area. If so, it is determined that the overlapping area meets the preset conditions.

[0048] In this embodiment, the overlapping region may also be determined to meet the preset condition when the overlapping area of the overlapping region is greater than or equal to an overlapping area threshold, wherein the overlapping area threshold may be determined based on the size of the first region and the second region.

[0049] In this embodiment, determining whether the overlapping area meets the preset conditions by the overlapping area threshold can avoid triggering the display of the content merging option when the content elements do not need to be merged, thereby improving the convenience of use and the accuracy of determining the merging of content elements.

[0050] When it is determined that the overlapping area meets the preset conditions, an element merging option pops up in the display interface.

[0051] S104: Acquire a trigger operation for the element merging option, and merge the first content element of the first content editor and the second content element of the second content editor into a target content editor based on the trigger operation.

[0052] If it is obtained that the user's trigger operation for the element content merging option is to merge content elements, the first content element in the first content editor and the second content element in the second content editor are merged into the target content editor based on the trigger operation.

[0053] The target content editor may be the first content editor, the second content editor, or a regenerated content editor.

[0054] Optionally, in the embodiment of the present application, the element merging option is triggered by moving the first content editor, thereby making the second content editor the target content editor.

[0055] Optionally, in the embodiment of the present application, the target content editor may be determined according to the types and / or quantities of content elements in the first content editor and the second content editor.

[0056] For example, if the second content element in the second content editor is text with 550 characters, and the first content element in the first content editor is text with 20 characters, the second content editor can be determined as the target content editor, and the first content element can be directly merged into the second content editor, reducing the number of content elements to be moved and making the merging process more efficient.

[0057] For example, if the second content element in the second content editor is text with 50 characters, and the first content element in the first content editor includes text, images, and tables with 200 characters, the first content editor is determined to be the target content editor, and the second content element is merged into the first content editor. By designating the content editor with the most diverse content elements as the target content editor, problems such as typographical errors can be avoided when merging content elements.

[0058] Optionally, in the embodiment of the present application, the size of the target content editor may be determined or adjusted according to the number of the first content elements and the second content elements.

[0059] For example, when the target content editor is a newly created editor, the size of the target content editor is directly determined based on the number of first content elements and second content elements. When the target content editor is a second content editor, if the number of first content elements in the first content editor is large, when the first content elements are merged into the second content editor, the size of the second content editor is adjusted so that the content elements in the target content editor after the merger are within the accommodation range of the target content editor, thereby achieving the purpose of presenting the content elements in the target content editor beautifully and clearly.

[0060] In an embodiment of the present application, by detecting a move operation of moving the first content editor and when the overlapping area of the first content editor and the second content editor meets a preset condition, the first content element of the first content editor and the second content element of the second content editor are merged into the target editor. In this way, the first content element of the first content editor and the second content element of the second content editor can be merged by moving, thereby simplifying the process of merging content elements in the two content editors.

[0061] See Figure 3 , provides a flow chart of an element merging method according to an embodiment of the present application. Figure 3 As shown, the element merging method may include the following steps S1041 to S1042.

[0062] S1041: Acquire an arrangement of the first content element and the second content element, and an overlapping position of the first content editor and the second content editor;

[0063] The alignment is the direction of the content elements in the text editor, which can be horizontal or vertical. Horizontal alignment means that the content elements are written from left to right along a horizontal line, while vertical alignment means that the content elements are entered vertically.

[0064] The overlapping position may be a position of the first content editor and the second content editor when they overlap.

[0065] In an embodiment of the present application, the overlapping position can be based on the first content editor to determine in which direction the second content editor overlaps with the first content editor when the first content editor is moved to overlap with the second content editor; the second content editor can also be used as a reference to determine in which direction the first content editor overlaps with the second content editor when the first content editor is moved to overlap with the second content editor.

[0066] Optionally, in the embodiment of the present application, the overlapping position is described with reference to the second content editor.

[0067] S1042: Merge the first content element of the first content editor and the second content element of the second content editor into the target content editor according to the arrangement and the overlapping position.

[0068] After determining the overlapping position of the first content editor and the second content editor and the arrangement of the first content element and the second content element, the first content element and the second content element are merged into the target content editor according to the overlapping position and the arrangement.

[0069] In this embodiment, the first and second content elements are merged into the target content editor based on the overlapping position of the first and second content editors and the arrangement of the first and second content elements. This optimizes the layout of the merged content elements in the target content editor and eliminates the need for manual layout by the user, thereby improving the convenience of merging content elements.

[0070] First, when the first content element and the second content element are arranged horizontally, determine the vertical overlapping position of the first content editor and the second content editor, and merge the first content element of the first content editor and the second content element of the second content editor into the target content editor based on the vertical overlapping position.

[0071] Optionally, refer to Figure 4 If the vertical overlap position of the first content editor and the second content editor is on top of the second content editor, the first content element is merged above the second content element in the target content editor, such as Figure 4 shown.

[0072] Optionally, refer to Figure 5 If the vertical overlap position of the first content editor and the second content editor is at the bottom of the second content editor, the first content element is merged below the second content element in the target content editor, such as Figure 5 shown.

[0073] In an embodiment of the present application, when the first and second content elements are arranged horizontally, the positions of the first and second content elements are determined by their vertical overlap. This optimizes the layout of the merged content elements in the target content editor without requiring manual layout by the user, thus improving the convenience of merging content elements.

[0074] Second, when the first content element and the second content element are arranged vertically, the horizontal overlapping position of the first content editor and the second content editor is determined, and based on the horizontal overlapping position, the first content element of the first content editor and the second content element of the second content editor are merged into the target content editor.

[0075] Optionally, refer to Figure 6 If the horizontal overlapping position is on the left side of the second content editor, then the first content element is merged to the left side of the second content element in the target content editor, such as Figure 6 shown.

[0076] Optionally, refer to Figure 7 If the horizontal overlapping position is on the right side of the second content editor, then the first content element is merged to the right side of the second content element in the target content editor, such as Figure 7 shown.

[0077] In an embodiment of the present application, when the arrangement of the first content element and the second content element is vertical, the positions of the first content element and the second content element are determined by the overlapping position of the first content editor and the second content editor in the horizontal direction. The layout of the content elements after merging in the target content editor can be optimized, and the user does not need to perform manual layout, thereby improving the convenience of merging content elements. By merging the first content element and the second content element into the target content editor based on the arrangement and overlapping position of the first content element and the second content element, the layout of the content elements after merging in the target content editor can be optimized, and the user does not need to perform manual layout, thereby improving the convenience of merging content elements.

[0078] Optionally, in other implementations, the title information and paragraph information in the first and second content elements can be determined through text recognition, and then the corresponding title information can be added above the paragraph information in the target content editor. This allows for direct typesetting of the first and second content elements when merging them, improving the convenience of merging content elements.

[0079] Optionally, in this embodiment, the target content editor can be any one of the first content editor, the second content editor, and the newly created third content editor. The user can determine the target content editor according to the specific usage scenario, meeting the diverse needs of the user.

[0080] Furthermore, in the present application, when it is determined that the target content editor is the second content editor, the first content editor is deleted; when the target content editor is the first content editor, the second content editor is deleted; when the target content editor is the third content editor, both the first content editor and the second content editor are deleted.

[0081] After the first content element and the second content element are merged into the target content editor, other content editors other than the target content editor may be deleted.

[0082] In the embodiment of the present application, after the first content element and the second content element are merged into the target editor, other content editors except the target content editor are deleted to simplify the user interface.

[0083] See Figure 8 , provides a flow chart of an element merging method according to an embodiment of the present application, such as Figure 8 As shown, the element merging method may include the following steps S1 to S3.

[0084] S1, obtaining an element selection operation in the fourth content editor;

[0085] The element selection operation may be an operation of selecting an element to be processed in the fourth content editor.

[0086] S2, when the element selection operation corresponds to selecting a target content element in the fourth content editor, displaying an element splitting option;

[0087] The element segmentation option may be an option for determining whether to segment a content element.

[0088] When it is determined that the target content element in the fourth content editor is selected by the element selection operation, an element splitting option pops up in the display interface.

[0089] The target content element may be a content element selected in the fourth content editor.

[0090] S3: Obtain a triggering operation for the element segmentation option, create a fifth content editor based on the triggering operation, and add the target content element to the fifth content editor.

[0091] The user can generate a trigger operation by selecting the "OK" button in the element segmentation option. After the trigger operation is obtained, a fifth content editor is created based on the obtained trigger operation, and the target content element is added to the fifth content editor.

[0092] It is understood that before the first and second content editors are merged, the fourth content editor can be either the first or second content editor. After the first and second content editors are merged, the fourth content editor can be the target content editor. Furthermore, the fourth content editor can also be another content editor other than the aforementioned content editors that needs to segment content elements within the content editor.

[0093] Reference Figure 9 , Figure 9 This is a schematic diagram of a scenario in an embodiment of the present application. In this embodiment, when an element selection operation is performed in the fourth content editor, if the target content element selected by the element selection operation is determined to be content element C, an element split option is displayed in the display interface. After a trigger operation is triggered for the element split option, the target content element is split into the fifth editor.

[0094] Optionally, in this application, before obtaining an element selection operation in the fourth content editor, it is also necessary to detect whether a preset interactive action exists in the fourth content editor. If a preset interactive action is determined to exist, the fourth content editor is controlled to enter an editable state. The preset interactive action can be an action such as double-clicking or moving.

[0095] In this embodiment, the fourth content editor is controlled to be in an editable state through a preset interactive action, thereby avoiding misoperation and improving the accuracy of editing the content elements of the fourth content editor.

[0096] Optionally, in this embodiment, after the target content element is segmented into the fifth content editor, the positions of the remaining content elements in the fourth content editor are updated, thereby ensuring the accuracy of the position information of the content elements in the fourth content editor.

[0097] In this embodiment of the present application, when an element selection operation occurs in the fourth content editor, the target content element selected by the element selection operation is determined. When a trigger operation for the element split option is received, a fifth content editor is created and the target content is added to the fifth content editor. By selecting the target content element, the target content element is split into the fifth content editor, simplifying the element splitting process.

[0098] The embodiment of the present application further provides a computer storage medium, which can store multiple program instructions, and the program instructions are suitable for being loaded and executed by a processor as described above. Figures 1-9 The method steps of the embodiment shown, the specific execution process can be found in Figures 1-9 The detailed description of the illustrated embodiment will not be repeated here.

[0099] See Figure 10 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 10 As shown, the electronic device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Figure 10 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, an input and output interface module, and an element merging program.

[0100] exist Figure 10 In the electronic device 1000 shown, the user interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user.

[0101] In one embodiment, the processor 1001 may be configured to call an element merging program stored in the memory 1005 and specifically perform the following operations:

[0102] Get the move operation for the first content editor;

[0103] During the movement of the first content editor, determining an overlapping area when a first area of the first content editor and a second area of the second content editor overlap;

[0104] When the overlapping area meets the preset conditions, an element merging option is displayed;

[0105] A trigger operation for the element merging option is obtained, and based on the trigger operation, the first content element of the first content editor and the second content element of the second content editor are merged into a target content editor.

[0106] In an embodiment of the present application, by detecting a move operation of moving the first content editor and when the overlapping area of the first content editor and the second content editor meets a preset condition, the first content element of the first content editor and the second content element of the second content editor are merged into the target editor. In this way, the first content element of the first content editor and the second content element of the second content editor can be merged by moving, thereby simplifying the process of merging content elements in the two content editors.

[0107] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing related hardware through a computer program. The program can be stored in a computer-readable storage medium, and when executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0108] The above disclosure is only a preferred embodiment of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for merging elements, characterized in that: The method comprises: Get the move operation for the first content editor; During the movement of the first content editor, determining an overlapping area when a first area of the first content editor and a second area of the second content editor overlap; When the overlapping area meets the preset conditions, an element merging option is displayed; A trigger operation for the element merging option is obtained, and based on the trigger operation, the first content element of the first content editor and the second content element of the second content editor are merged into a target content editor.

2. The method according to claim 1, characterized in that When the overlapping area meets a preset condition, displaying an element merging option includes: When the overlapping area of the overlapping regions is greater than or equal to the overlapping area threshold, an element merging option is displayed.

3. The method according to claim 1, characterized in that The merging of the first content element of the first content editor and the second content element of the second content editor into a target content editor based on the trigger operation includes: Acquire an arrangement of the first content element and the second content element, and an overlapping position of the first content editor and the second content editor; The first content element of the first content editor and the second content element of the second content editor are merged into the target content editor according to the arrangement and the overlapping position.

4. The method according to claim 3, characterized in that The merging, according to the arrangement and the overlapping position, the first content element of the first content editor and the second content element of the second content editor into the target content editor includes: When the first content element and the second content element are arranged horizontally, determining a vertical overlap position between the first content editor and the second content editor, and merging the first content element of the first content editor and the second content element of the second content editor into the target content editor based on the vertical overlap position; When the first content element and the second content element are arranged vertically, determine the horizontal overlapping position of the first content editor and the second content editor, and merge the first content element of the first content editor and the second content element of the second content editor into the target content editor based on the horizontal overlapping position.

5. The method according to claim 4, characterized in that The merging, according to the overlapping position in the vertical direction, the first content element of the first content editor and the second content element of the second content editor into the target content editor includes: If the vertical overlapping position is at the top of the second content editor, merging the first content element above the second content element in the target content editor; If the vertical overlapping position is at the bottom of the second content editor, the first content element is merged below the second content element in the target content editor.

6. The method according to claim 4, characterized in that The merging, according to the overlapping position in the horizontal direction, the first content element of the first content editor and the second content element of the second content editor into the target content editor includes: If the horizontal overlapping position is on the left side of the second content editor, merging the first content element to the left side of the second content element in the target content editor; If the horizontal overlapping position is on the right side of the second content editor, the first content element is merged to the right side of the second content element in the target content editor.

7. The method according to any one of claims 1 to 6, characterized in that The target content editor is any one of the first content editor, the second content editor, and a newly created third content editor.

8. The method according to claim 7, characterized in that The method further comprises: When the target content editor is the second content editor, deleting the first content editor; When the target content editor is the first content editor, deleting the second content editor; When the target content editor is the third content editor, the first content editor and the second content editor are deleted.

9. The method according to claim 1, characterized in that The method further comprises: Get element selection operation in the fourth content editor; When the element selection operation corresponds to selecting a target content element in the fourth content editor, displaying an element splitting option; A trigger operation for the element splitting option is obtained, a fifth content editor is created based on the trigger operation, and the target content element is added to the fifth content editor.

10. The method according to claim 9, characterized in that Before obtaining the element selection operation in the fourth content editor, the method further includes: When a preset interactive action is detected in the fourth content editor, the fourth content editor is controlled to enter an editable state.

11. The method according to claim 9, characterized in that The method further comprises: The target content element is deleted in the fourth content editor, and positions of remaining content elements in the fourth content editor are updated.

12. An electronic device, characterized in that: include: A processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the method according to any one of claims 1 to 11.

13. A computer storage medium, characterized in that The computer storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Folder merging method and apparatus

    CN105183311A

  • Formula editing method and device, display equipment and medium

    CN116126193A