Multi-user collaborative editing method and device, terminal and storage medium

By synchronizing data in a distributed environment, the operation delay and data out-synchronization problems caused by centralized architecture in traditional multi-user collaborative editing technology are solved, and more efficient data consistency and integrity are achieved.

CN120075243APending Publication Date: 2025-05-30AIJI MICRO CONSULTING (XIAMEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510165973.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-04-08
Filing Date
2025-02-14
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

Traditional multi-user collaborative editing technology based on central servers can lead to problems such as operational delay and data out of synchronization when network delays, server busy or failures, especially when a large number of users edit online simultaneously.

Method used

Synchronize data in real time in a distributed environment, and by obtaining editing operations of users in the local port, converting them into operation logs, and syncing them to other ports in the distributed network. When other ports receive the operation log, pause its operation queue, execute the editing content corresponding to the operation log, and restore the operation queue after the execution is completed.

Benefits of technology

Effectively reduces the load on the central server, enhances data consistency and integrity, and ensures a smooth collaborative editing experience even when a large number of users edit online at the same time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075243A_ABST
    Figure CN120075243A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a multi-user collaborative editing method and device, a terminal and a storage medium. According to the scheme, the editing operation, aiming at the target event, of the user in the local port can be obtained, the editing operation is converted into the operation log, the operation log is synchronized to other ports in the distributed network, and when the other ports receive the operation log, operation queues of the other ports are paused, so that the user experience is improved. And controlling other ports to execute editing contents corresponding to the operation log, and recovering the operation queue after the execution is completed. According to the scheme provided by the embodiment of the invention, the data can be synchronized in real time in the distributed environment, the load of the central server is effectively reduced, and the consistency and integrity of the data are enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and particularly relates to a multi-user collaborative editing method, device, terminal and storage medium. Background Art

[0002] With the rapid development of the Internet, real-time data interaction and multi-user collaborative operation have become an important direction in application development. Especially in the fields of remote work, online education, and social platforms, the ability to edit and interact with data in real time and by multiple people has become a core requirement. However, traditional real-time collaborative editing technologies often have problems such as data conflicts and synchronization delays, resulting in a poor user experience. In the field of multi-user collaborative editing, the most widely used current technology is data synchronization technology based on a central server. In this technology, all users' operations are first sent to the central server, which is responsible for processing these operations to ensure data consistency, and then synchronizing the final data state to all users' devices.

[0003] During actual use, the applicant found that: The main advantage of this method is that its structure is relatively simple and easy to manage and control. However, this centralized data synchronization technology also has its inherent defects. Since all operations need to be processed and synchronized through the central server, this leads to problems such as obvious operation delays or data desynchronization for users in case of network latency, server busyness, or server failures. Especially when a large number of users are editing online simultaneously, these problems may be magnified. Summary of the Invention

[0004] Embodiments of the present invention provide a multi-user collaborative editing method, device, terminal and storage medium, which can synchronize data in real time in a distributed environment, effectively reduce the load on the central server, and enhance data consistency and integrity.

[0005] Embodiments of the present invention provide a multi-user collaborative editing method, including:

[0006] Obtain the editing operations of a user for a target project in a local port;

[0007] Convert the editing operations into operation logs, and synchronize the operation logs to other ports in a distributed network;

[0008] When the other ports receive the operation logs, pause the operation queues of the other ports;

[0009] Control the other ports to execute the editing content corresponding to the operation logs, and resume the operation queues after completion of the execution.

[0010] Embodiments of the present invention also provide a multi-user collaborative editing device, including:

[0011] An acquisition unit, configured to acquire an editing operation of a user on a target project in a local port;

[0012] A sending unit, configured to convert the editing operation into an operation log and synchronize the operation log to other ports in a distributed network;

[0013] A receiving unit, configured to pause an operation queue of the other port when the other port receives the operation log;

[0014] A processing unit, configured to control the other port to execute the editing content corresponding to the operation log and resume the operation queue after the execution is completed.

[0015] An embodiment of the present invention further provides a terminal, where the terminal includes: a memory and a processor. Wherein, an application processing program is stored on the memory, and when the application processing program is executed by the processor, the steps of any one of the multi-user collaborative editing methods provided by the embodiments of the present invention are implemented.

[0016] An embodiment of the present invention further provides a computer-readable storage medium, where the storage medium stores multiple instructions, and the instructions are suitable for being loaded by a processor to execute any one of the multi-user collaborative editing methods provided by the embodiments of the present invention.

[0017] The multi-user collaborative editing method provided by the embodiments of the present invention can acquire an editing operation of a user on a target project in a local port, convert the editing operation into an operation log, and synchronize the operation log to other ports in a distributed network. When the other port receives the operation log, the operation queue of the other port is paused, the other port is controlled to execute the editing content corresponding to the operation log, and the operation queue is resumed after the execution is completed. The solution provided by the embodiments of the present invention can synchronize data in real time in a distributed environment, effectively reduce the load of the central server, and enhance the consistency and integrity of the data. Description of the Drawings

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present invention. For those skilled in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0019] Figure 1 It is the first flowchart of the multi-user collaborative editing method provided by the embodiments of the present invention;

[0020] Figure 2It is the second process schematic diagram of the multi-user collaborative editing method provided by the embodiments of the present invention;

[0021] Figure 3 It is the first structural schematic diagram of the multi-user collaborative editing device provided by the embodiments of the present invention;

[0022] Figure 4 It is the structural schematic diagram of the terminal provided by the embodiments of the present invention. Detailed implementation manners

[0023] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present invention. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.

[0024] It should be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present invention may have the same meaning or different meanings, and their specific meanings need to be determined by their explanations in the specific embodiments or further in combination with the context of the specific embodiments.

[0025] It should be understood that although the steps in the flowcharts in the embodiments of the present invention are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise clearly stated in this article, the execution of these steps has no strict order limit, and they can be executed in other orders. Moreover, at least a part of the steps in the figure may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.

[0026] It should be noted that in this document, step codes such as 101 and 102 are used. The purpose is to more clearly and briefly express the corresponding content, and it does not constitute a substantial limitation in terms of sequence. Those skilled in the art may execute 102 first and then 101 during specific implementation, etc., but all of these should be within the protection scope of the present invention.

[0027] Referring to "embodiments" in this document means that the specific features, structures, or characteristics described in connection with the embodiments may be included in at least one embodiment of the present invention. The phrase appearing at various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.

[0028] An embodiment of the present invention provides a multi-user collaborative editing method. The execution subject of the multi-user collaborative editing method may be the multi-user collaborative editing device provided by the embodiment of the present invention, or an intelligent terminal and a server integrated with the multi-user collaborative editing device, where the multi-user collaborative editing device may be implemented in a hardware or software manner.

[0029] Before describing the technical solutions of the present invention, relevant technical terms are briefly explained as follows:

[0030] OT: Operational Transformation, which is a real-time collaborative editing technology that allows multiple users to simultaneously edit a shared document in a network environment. The main principle of OT is to convert an operation into a form suitable for remote operations when performing a local operation. In this way, when multiple operations occur simultaneously, they can be correctly merged without causing conflicts.

[0031] CRDT: Conflict-free Replicated Data Type, which is a data structure for solving data synchronization problems in distributed systems. The core idea of CRDT is to ensure data consistency among all replicas without the need for complex operation transformation. CRDT has two main types: State-based CRDT and Operation-based CRDT.

[0032] In the context of the existing Internet technology, although the data synchronization technology based on a central server has brought convenience to multi-user collaborative editing, its inherent defects cannot be ignored. First of all, the centralized architecture makes the entire system vulnerable to single-point failures. Once the central server fails, the collaborative editing activities of all users may be suspended or interrupted. Secondly, since all data processing and synchronization operations rely on the central server, a large amount of data interaction and processing tasks may cause the server resources to be quickly exhausted, thus affecting the real-time editing experience of users. Especially during peak hours or when a large number of users are online simultaneously, data synchronization delays and conflicts may occur frequently. In addition, this centralized method may also lead to data security and privacy issues because all user data needs to pass through the central server.

[0033] Based on this, the embodiments of the present invention provide a new multi-user collaborative editing method, which solves the above problems by introducing an Operational Transformation based Real-time Data Type (ORDT) application component. ORDT allows real-time data synchronization in a distributed environment, effectively reducing the load on the central server and enhancing data consistency and integrity. In addition, this technical solution also optimizes the data synchronization mechanism, enabling a smooth collaborative editing experience even when a large number of users are editing online simultaneously.

[0034] Specifically, please refer to Figure 1 , Figure 1 which is the first process schematic diagram of the multi-user collaborative editing method provided by the embodiments of the present invention. The specific process of this multi-user collaborative editing method can be as follows:

[0035] 101. Obtain the editing operations of users for the target event in the local port.

[0036] 102. Convert the editing operations into operation logs and synchronize the operation logs to other ports in the distributed network.

[0037] From a technical perspective, the multi-user collaborative editing technology based on ORDT mainly relies on the principle of OT. This is an algorithm designed for distributed systems that can synchronize data in real time between different users or devices, ensuring data consistency and integrity.

[0038] The core of the multi-user collaborative editing technology based on ORDT lies in the application of operation transformation. This is an advanced synchronization algorithm designed for a distributed environment to ensure that data remains consistent and complete under high-concurrency editing.

[0039] In an embodiment of the present invention, each editing operation of a user, whether it is insertion, deletion, or replacement, is converted into a specific operation representation. These operation representations are added to a local operation queue, and at the same time, they are immediately applied to the user's editing interface to achieve zero-latency local feedback. That is, after converting the editing operation into an operation log, the method further includes: adding the operation log to the local operation queue, and applying the editing operation to the editing interface of the current user on the local port based on the local operation queue.

[0040] 103. When other ports receive the operation log, pause the operation queues of other ports.

[0041] 104. Control other ports to execute the editing content corresponding to the operation log, and resume the operation queue after the execution is completed.

[0042] In one embodiment, when multiple users edit the same data simultaneously, conflicts will inevitably occur. To solve this problem, the embodiment of the present invention adopts a parallel processing technology. Specifically, when a device receives the operation representation of other users, the device will first pause its own operation queue, and then apply the operation representation of other users received. By applying the conflict resolution algorithm of OT, it can be ensured that each operation is correctly applied regardless of the arrival order of these operations.

[0043] In one embodiment, the above-mentioned distributed networks can be connected through WebSocket and P2P networks to implement an efficient and low-latency data synchronization mechanism, ensuring that all users can see the same data state almost at the same time, further enhancing the fluency and real-time performance of collaborative editing.

[0044] In this embodiment, by combining ORDT with mainstream front-end frameworks, an efficient, stable, and modular collaborative editing solution is provided for developers. This means that whether it is document collaboration within an enterprise, real-time chat on an online platform, or collaborative assignment editing in the education field, this solution can provide a smooth and accurate data interaction experience.

[0045] Most importantly, this solution is not limited to text editing, and its implementation method supports various data types and structures, and can be widely applied from simple text, images to complex charts and interactive applications. Generally speaking, this technical solution provides a powerful, flexible, and scalable solution path for current and future real-time multi-user collaborative editing scenarios.

[0046] As described above, the multi-user collaborative editing method proposed by the embodiments of the present invention can obtain the editing operations of users on a target event in the local port, convert the editing operations into operation logs, and synchronize the operation logs to other ports in the distributed network. When other ports receive the operation logs, they pause their own operation queues, execute the editing content corresponding to the operation logs, and resume their own operation queues after the execution is completed. The solution provided by the embodiments of the present invention can synchronize data in real time in a distributed environment, effectively reducing the load on the central server and enhancing the consistency and integrity of the data.

[0047] The method described in the previous embodiments will be further described in detail below.

[0048] Please refer to Figure 2 , Figure 2 which is the second process schematic diagram of the multi-user collaborative editing method provided by the embodiments of the present invention. The method includes:

[0049] 201. Obtain the editing operations of users on a target event in the local port.

[0050] 202. Convert the editing operations into operation logs, and synchronize the operation logs to other ports in the distributed network.

[0051] 203. When other ports receive the operation logs, pause the operation queues of other ports.

[0052] Specifically, each editing operation of the user, whether it is an insertion, deletion, or replacement, is converted into a specific operation representation. When a device receives the operation representations of other users, the device first pauses its own operation queue and then applies the operations received from other users. By applying the conflict resolution algorithm of OT, it can be ensured that each operation is correctly applied regardless of the order in which these operations arrive.

[0053] 204. Detect whether there is a conflict between the editing content corresponding to the operation logs and the editing content in the current operation queue of other ports. If so, execute step 205; otherwise, execute step 206.

[0054] 205. Convert the editing content corresponding to the operation logs, and execute the converted editing content.

[0055] In one embodiment, by using a consistency algorithm, such as the OT algorithm, the user editing content is adjusted to generate consistent modification results on multiple clients. Among them, OT is a real-time collaborative editing technology that allows multiple users to edit a shared document simultaneously in a network environment. The main principle of OT is to convert the operation into a form that adapts to remote operations when performing local operations. In this way, when multiple operations occur simultaneously, they can be correctly merged without causing conflicts.

[0056] Specifically, the core of the OT algorithm is two transformation functions, such as transform(client_operation, server_operation) and transform(server_operation, client_operation). These two functions transform one operation into another, enabling the smooth merging of client and server operations. That is, the steps for transforming the edit content corresponding to the operation log may include: extracting two operation sequences corresponding to the conflicting edit content respectively, and transforming the two operation sequences into a target operation sequence that can be executed serially through the operation transformation algorithm.

[0057] For example, suppose there are two users, A and B, editing a document simultaneously. User A inserts the character 'a' into the document, while user B inserts the character 'b' at the same position. To correctly merge these two operations, the transformation function can be used to transform these operations into a form relative to each other's operations. In this way, the final document will contain the two characters 'ab' or 'ba' instead of conflicts. Among them, the order of the above characters 'a' and 'b' can be determined according to the order of receiving the insertion operations (chronological order) or the priorities of the users. For example, if the system is set to process according to the order of receiving the insertion operations, the character corresponding to the insertion operation received first will be ranked first. Another example is that if a user has higher editing permissions or priorities, the character inserted by them will also be ranked first.

[0058] Specifically, a transformation function, namely the transform function, can be defined first. This function takes two operations (clientOp and serverOp) as inputs. This function determines how to transform the client operation according to the position of the operation to adapt to the server operation, and then initializes the document as a string, defining the insertion operations of users A and B. Each insertion operation has a type (insert), an insertion position, and an inserted character. Use the transform function to process the insertion operation of user A. In this example, the insertion operation of user A is transformed into inserting the character 'a' between "hb", and the transformed operation is applied to the document. First, apply the insertion operation of user B, and then apply the transformed insertion operation of user A. That is, the above operation sequence includes the type, the insertion position, and the inserted symbol. The operation transformation algorithm includes the transformation function. The steps for transforming the two operation sequences into a target operation sequence that can be executed serially through the operation transformation algorithm may include: using the transformation function to perform transformation processing on the two operation sequences based on the type, the insertion position, and the inserted symbol to obtain a target operation sequence that can be executed serially.

[0059] In other embodiments, the CRDT can also be used to solve the data synchronization problem in a distributed system. For example, assume there are two users, A and B, editing a document simultaneously, with the initial content being "hello". User A inserts the character "a" after "h", and user B inserts the character "b" after "h". Specifically, when users A and B perform the insertion operation, the characters to be inserted are generated into new characters with identifiers. For example, when user A inserts "a", the identifier is 1; when user B inserts "b", the identifier is 2. Finally, the document will contain the following character sequence: h(0), a(1), b(2), e(3), l(4), l(5), o(6). In this way, regardless of the order of operations, the final document content will be "habello", that is, the inserted characters are sorted according to the size of the corresponding identifiers. That is to say, the step of converting the edit content corresponding to the operation log described above may include: setting corresponding identifiers for two conflicting edit contents respectively, and merging the two edit contents based on the identifiers.

[0060] 206. Control other ports to execute the edit content corresponding to the operation log.

[0061] 207. Restore the operation queue of other ports.

[0062] In one embodiment, considering that device failures or network interruptions may occur, the technical solution of the present invention can implement the data persistence function. Each operation data is saved to the local database to ensure that the data will not be lost under any circumstances. If any problem occurs, the user can easily restore the edit operation from the last known state. Specifically, after controlling the other ports to execute the edit content corresponding to the operation log, the method may further include: obtaining the start execution time and the insertion position information of the edit content, and saving the edit content to the database corresponding to the other ports based on the start execution time and the insertion position information. Due to the decentralized design and efficient data persistence mechanism, the technical solution of the present invention can still maintain a high degree of stability in the face of device failures or network interruptions.

[0063] This embodiment is based on the mainstream front-end framework and combines modular design, providing developers with extensive customization and extension capabilities. And the technical solution based on ORDT, due to its modular and reusable design, greatly reduces the development difficulty and cost.

[0064] As described above, the multi-user collaborative editing method proposed by the embodiments of the present invention can obtain the editing operations of users for a target event in a local port, convert the editing operations into operation logs, and synchronize the operation logs to other ports in a distributed network. When other ports receive the operation logs, they pause their own operation queues and detect whether the editing content corresponding to the operation logs conflicts with the editing content in the current operation queues of other ports. If so, the editing content corresponding to the operation logs is converted and the converted editing content is executed. If not, other ports are controlled to execute the editing content corresponding to the operation logs, and their own original operation queues are restored after the execution is completed. The solution provided by the embodiments of the present invention can synchronize data in real time in a distributed environment, effectively reducing the load on the central server and enhancing the consistency and integrity of the data.

[0065] To implement the above method, the embodiments of the present invention also provide a multi-user collaborative editing device, which can be specifically integrated in terminal devices such as mobile phones, tablet computers, etc.

[0066] For example, as Figure 3 shown, it is the first structural schematic diagram of the multi-user collaborative editing device provided by the embodiments of the present invention. The multi-user collaborative editing device may include:

[0067] An obtaining unit 301, configured to obtain the editing operations of users for a target event in a local port;

[0068] A sending unit 302, configured to convert the editing operations into operation logs and synchronize the operation logs to other ports in a distributed network;

[0069] A receiving unit 303, configured to pause the operation queue of the other port when the other port receives the operation logs;

[0070] A processing unit 304, configured to control the other port to execute the editing content corresponding to the operation logs and restore the operation queue after the execution is completed.

[0071] The multi-user collaborative editing device proposed by the embodiments of the present invention can obtain the editing operations of users for a target event in a local port, convert the editing operations into operation logs, and synchronize the operation logs to other ports in a distributed network. When other ports receive the operation logs, they pause their own operation queues, control other ports to execute the editing content corresponding to the operation logs, and restore their own operation queues after the execution is completed. The solution provided by the embodiments of the present invention can synchronize data in real time in a distributed environment, effectively reducing the load on the central server and enhancing the consistency and integrity of the data.

[0072] The embodiments of the present invention also provide a terminal, such asFigure 4 As shown in the figure, the terminal 400 may include a memory 401 and a processor 402. Among them, an application processing program is stored on the memory 401, and when the application processing program is executed by the processor 402, the steps of the multi-user collaborative editing method in this embodiment are implemented.

[0073] Specifically in this embodiment, the processor 402 in the terminal will, according to the following instructions, load the executable files corresponding to the processes of one or more applications into the memory 401, and the processor 402 will run the applications stored in the memory 401 to implement various functions:

[0074] Obtain the editing operations of the user for the target event in the local port;

[0075] Convert the editing operation into an operation log and synchronize the operation log to other ports in the distributed network;

[0076] When the other port receives the operation log, pause the operation queue of the other port;

[0077] Control the other port to execute the editing content corresponding to the operation log, and resume the operation queue after the execution is completed.

[0078] In the above embodiments, the descriptions of each embodiment have their own emphases. For the parts not detailed in a certain embodiment, reference may be made to the detailed description of the multi-user collaborative editing method above, and details will not be repeated here.

[0079] As can be seen from the above, the terminal according to the embodiment of the present invention can obtain the editing operations of the user for the target event in the local port, convert the editing operations into operation logs, and synchronize the operation logs to other ports in the distributed network. When the other port receives the operation logs, it pauses the operation queue of the other port, controls the other port to execute the editing content corresponding to the operation logs, and resumes the operation queue after the execution is completed. The solution provided by the embodiment of the present invention can synchronize data in real time in a distributed environment, effectively reduce the load on the central server, and enhance the consistency and integrity of the data.

[0080] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling relevant hardware through instructions. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0081] For this reason, the embodiment of the present invention provides a computer-readable storage medium, in which multiple instructions are stored, and these instructions can be loaded by a processor to execute the steps in any of the multi-user collaborative editing methods provided by the embodiment of the present invention.

[0082] For the specific implementation of each of the above operations, reference may be made to the previous embodiments, which will not be elaborated herein.

[0083] Among them, the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

[0084] Since the instructions stored in the storage medium can execute the steps in any of the multi-user collaborative editing methods provided by the embodiments of the present invention, the beneficial effects achievable by any of the multi-user collaborative editing methods provided by the embodiments of the present invention can be realized. For details, refer to the previous embodiments, which will not be elaborated herein.

[0085] The above has introduced in detail a multi-user collaborative editing method, apparatus, terminal, and storage medium provided by the embodiments of the present invention. Specific examples are used herein to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A multi-user collaborative editing method, characterized in that: include: Get the user's editing operation on the target event in the local port; Converting the editing operation into an operation log, and synchronizing the operation log to other ports in the distributed network; When the other port receives the operation log, pausing the operation queue of the other port; Control the other ports to execute the editing content corresponding to the operation log, and restore the operation queue after the execution is completed.

2. The multi-user collaborative editing method according to claim 1, characterized in that: After converting the editing operation into an operation log, the method further includes: Add the operation log to the local operation queue; Applying the editing operation to the editing interface of the current user of the local port based on the local operation queue.

3. The multi-user collaborative editing method according to claim 1, characterized in that: The controlling the other ports to execute the editing content corresponding to the operation log includes: Detecting whether the edited content corresponding to the operation log conflicts with the edited content in the current operation queue of the other port; If so, the editing content corresponding to the operation log is converted, and the converted editing content is executed.

4. The multi-user collaborative editing method according to claim 3, characterized in that: The converting the edited content corresponding to the operation log includes: Extract two operation sequences corresponding to the conflicting edit contents; The two operation sequences are converted into a target operation sequence that can be executed serially through an operation conversion algorithm.

5. The multi-user collaborative editing method according to claim 4, characterized in that: The operation sequence includes a type, an insertion position, and an insertion symbol. The operation conversion algorithm includes a conversion function. The operation conversion algorithm converts the two operation sequences into a target operation sequence that can be executed serially, including: The two operation sequences are converted using the conversion function based on the type, the insertion position and the insertion symbol to obtain a target operation sequence that can be executed serially.

6. The multi-user collaborative editing method according to claim 3, characterized in that: The converting the edited content corresponding to the operation log includes: Set corresponding identifiers for the two conflicting edit contents respectively; The two edits are merged based on the identifier.

7. The multi-user collaborative editing method according to any one of claims 1 to 6, characterized in that: After controlling the other ports to execute the edited content corresponding to the operation log, the method further includes: Obtaining the start execution time and insertion position information of the edited content; The edited content is saved in a database corresponding to the other port based on the execution start time and the insertion position information.

8. A multi-user collaborative editing device, characterized in that: include: An acquisition unit, used for acquiring the editing operation of the user on the target item in the local port; A sending unit, used to convert the editing operation into an operation log, and synchronize the operation log to other ports in the distributed network; A receiving unit, configured to suspend the operation queue of the other port when the other port receives the operation log; The processing unit is used to control the other ports to execute the editing content corresponding to the operation log, and restore the operation queue after the execution is completed.

9. A terminal, characterized in that: The terminal comprises: a memory and a processor, wherein the memory stores an application processing program, and when the application processing program is executed by the processor, the steps of the multi-user collaborative editing method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the multi-user collaborative editing method according to any one of claims 1 to 7.