Document processing method, device, program product, computer device and medium

CN117034223BActive Publication Date: 2026-10-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210933207.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-04
Publication Date
2026-10-27
Estimated Expiration
2042-08-04

AI Technical Summary

Technical Problem

现有应用中,多人在编辑同一个在线文档时,一个人在文档中编辑的内容容易被另外对该文档进行协作编辑的人进行误删或者误改,导致多人对文档的编辑并不准确

Benefits of technology

[0055]本申请可以显示文档的编辑界面;文档支持被多个对象协作编辑;获取多个对象中目标对象在文档内的段落权限设置,使得目标对象具有目标段落的编辑权限;其中,目标段落为文档中的段落,且仅允许具有该目标段落的编辑权限的对象进行编辑。由此可见,本申请提出的方法目标对象可以在文档中触发段落权限设置,以得到目标段落的编辑权限,并且只有具有目标段落的编辑权限的对象才能编辑目标段落,其他不具有目标段落的编辑权限的对象则不能对目标段落进行编辑,使得目标对象在目标段落内编辑的内容不会被其他对象错误修改,因此,提高了多个对象对文档的编辑准确性,另外,由于对文档进行协作的对象(包括目标对象)还可以通过对文档中的段落进行权限设置,以快速获取到对所设置段落的编辑权限,因此,还可以提高对象获取文档中段落的编辑权限的效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117034223B_ABST
    Figure CN117034223B_ABST
Patent Text Reader

Abstract

The application discloses a document processing method and device, a program product, computer equipment and a medium. The method comprises the following steps: displaying an editing interface of a document; the document supports being cooperatively edited by multiple objects; obtaining paragraph permission settings of a target object in the multiple objects in the document, so that the target object has editing permission of a target paragraph; and the target paragraph is a paragraph in the document, and only an object having the editing permission of the target paragraph is allowed to edit. By using the application, the accuracy of editing the document by the multiple objects can be improved, and the efficiency of obtaining the editing permission of the paragraph in the document by the object can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of document processing, and more particularly to a document processing method, apparatus, program product, computer equipment, and medium. Background Technology

[0002] With the continuous development of computer networks, there are increasingly more ways to edit documents, such as multiple people collaborating on the same online document. In existing applications, when multiple people are editing the same online document, the content edited by one person can easily be accidentally deleted or modified by other collaborators, leading to inaccuracies in the edited document. Summary of the Invention

[0003] This application provides a document processing method, apparatus, program product, computer equipment, and medium that can improve the accuracy of document editing.

[0004] This application provides a document processing method, which includes:

[0005] Displays the document editing interface; the document supports collaborative editing by multiple objects;

[0006] Retrieve the paragraph permission settings of the target object within the document from multiple objects, thereby granting the target object editing permissions for the target paragraph;

[0007] The target paragraph is a paragraph in the document, and only objects with editing permissions for that target paragraph are allowed to edit it.

[0008] This application provides a document processing apparatus, which includes:

[0009] The display module is used to display the document editing interface; the document supports collaborative editing by multiple objects.

[0010] The settings module is used to obtain the paragraph permission settings of the target object in the document among multiple objects, so that the target object has the editing permission of the target paragraph;

[0011] The target paragraph is a paragraph in the document, and only objects with editing permissions for that target paragraph are allowed to edit it.

[0012] Optionally, objects that have editing permissions for the target paragraph also include at least one object selected by the target object from other objects.

[0013] Optionally, paragraph permission settings include adding a paragraph to the document; the settings module can retrieve the paragraph permission settings of the target object within the document from multiple objects, granting the target object editing permissions for the target paragraph, including:

[0014] In response to the operation of adding a new paragraph in the document for the target object, add the target paragraph to the document;

[0015] The target object has editing permissions for the added target paragraph.

[0016] Optionally, the module can be configured to respond to the target object's action of adding a new paragraph in the document, including the following methods for adding the target paragraph to the document:

[0017] When the target object performs a trigger operation on a paragraph in the document that it does not have editing permissions, the paragraph addition control is displayed;

[0018] This feature allows you to add a new paragraph after a paragraph that does not have editing permissions, using the paragraph addition control.

[0019] Optionally, the above-mentioned device is also used for;

[0020] In response to a selection operation by a target object on content in a paragraph for which it does not have editing permissions, an action bar is displayed, which includes at least one of the following: copy, comment, and select.

[0021] Optionally, the module can be configured to respond to the target object's action of adding a new paragraph in the document, including the following methods for adding the target paragraph to the document:

[0022] In response to the target object adding a new paragraph in the document, add a new paragraph at the end of the document.

[0023] Optionally, editing permission settings include the first editing operation to be performed on the target paragraph in the document;

[0024] The first editing operation includes either the first time the content of the target paragraph is edited, or the first time the target paragraph is put into editing mode.

[0025] Optionally, the document contains N paragraphs, where N is a positive integer; the above device is also used for:

[0026] For each paragraph, display the associated information of the object with editing permissions around the paragraph; the associated information of the object can be fully displayed, partially hidden, partially displayed, or fully hidden, and the associated information of the object includes at least one of the following: the object's avatar information, the object's nickname, or the object's account information.

[0027] Optionally, the above-mentioned device is also used for:

[0028] In response to a trigger action by the target object on the associated information displayed around a paragraph that does not have editing permissions, a conversation interface is displayed between the target object and the object corresponding to the paragraph that does not have editing permissions.

[0029] Optionally, the above-mentioned device is also used for:

[0030] In response to a target object's selection of content in a paragraph that it does not have editing permissions, a session interface is displayed between the target object and the object corresponding to the paragraph that it does not have editing permissions. The virtual keyboard of this session interface contains the content selected in the paragraph that it does not have editing permissions.

[0031] Optionally, each paragraph in the document can be saved, shared, or commented on.

[0032] Optionally, the above-mentioned device is also used for:

[0033] In response to editing operations on paragraphs in a document for which the user does not have editing permissions, a message indicating that editing is not possible is displayed.

[0034] Optionally, the document contains N paragraphs, where N is a positive integer. Each paragraph is displayed differently in the editing interface depending on the object with different editing permissions.

[0035] Optionally, the above-mentioned device is also used for:

[0036] In response to the target object's settings for how the target paragraph is displayed, the target paragraph is displayed in the document according to the set display method.

[0037] Optionally, the above-mentioned device is also used for:

[0038] In response to a paragraph aggregation operation on any of a plurality of objects, the paragraphs of any object that have editing permissions in the document are aggregated and displayed.

[0039] Optionally, clustering paragraphs in the document that any object has edit permissions for includes: clustering and displaying paragraphs in the document that any object has edit permissions for in a floating layer that is displayed independently above the editing interface.

[0040] Optionally, the above-mentioned device is also used for:

[0041] In response to paragraph aggregation operations on the target object in the document, the paragraphs of the target object that have editing permissions in the document are aggregated and displayed.

[0042] The target object is used to uniformly edit the aggregated paragraphs that have editing permissions.

[0043] Optionally, the above-mentioned device is also used for:

[0044] In response to the target object's splitting operation on the target paragraph, multiple first sub-paragraphs after splitting the target paragraph are displayed in the editing interface;

[0045] The target object has editing permissions for multiple first sub-paragraphs.

[0046] Optionally, after the target paragraph is split by the document creator, the editing interface is used to display multiple second sub-paragraphs after the target paragraph has been split.

[0047] The target object has editing permissions for the first of multiple second sub-paragraphs, and the creator has editing permissions for all of the second sub-paragraphs except the first one.

[0048] Optionally, when the target object does not have editing permissions for the next paragraph following the target paragraph, but the document creator performs a merge operation on the target paragraph and the next paragraph, the target object has editing permissions for the merged paragraph; or, the target object and the object with editing permissions for the next paragraph both have editing permissions for the merged paragraph.

[0049] Optionally, the settings module can obtain the paragraph permission settings of the target object within the document from multiple objects, thereby granting the target object editing permissions for the target paragraph. This includes:

[0050] Get the paragraph permission settings for the target object within the document, and get the paragraph permission identifier of the target paragraph for which paragraph permission settings are made;

[0051] Establish a binding relationship between paragraph permission identifiers and object identifiers of target objects, wherein objects bound to paragraph permission identifiers have editing permissions for the target paragraph.

[0052] This application provides a computer device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the method of this application.

[0053] This application provides a computer-readable storage medium storing a computer program, the computer program including program instructions that, when executed by a processor, cause the processor to perform the method described above.

[0054] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various alternative embodiments described above.

[0055] This application can display a document editing interface; the document supports collaborative editing by multiple objects; it obtains the paragraph permission settings of the target object within the document, granting the target object editing permissions for the target paragraph; wherein, the target paragraph is a paragraph within the document, and only objects with editing permissions for that target paragraph are allowed to edit it. Therefore, the method proposed in this application allows the target object to trigger paragraph permission settings within the document to obtain editing permissions for the target paragraph, and only objects with editing permissions for the target paragraph can edit it. Other objects without editing permissions for the target paragraph cannot edit it, ensuring that the content edited by the target object within the target paragraph is not mistakenly modified by other objects. This improves the accuracy of document editing by multiple objects. Furthermore, since objects collaborating on the document (including the target object) can also quickly obtain editing permissions for the set paragraphs by setting permissions within the document, the efficiency of objects obtaining editing permissions for paragraphs within the document is also improved. Attached Figure Description

[0056] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0057] Figure 1 This is a schematic diagram of a network architecture provided in this application;

[0058] Figure 2 This is a schematic diagram of a document editing interface provided in this application;

[0059] Figure 3 This is a schematic diagram of an interface for setting permissions provided in this application;

[0060] Figures 4a-4c This is a schematic diagram of the interface of a document application provided in this application;

[0061] Figure 5 This is a schematic diagram of the interface of a document application provided in this application;

[0062] Figure 6 This is a flowchart illustrating a document processing method provided in this application;

[0063] Figure 7 This is a schematic diagram of a document editing interface provided in this application;

[0064] Figure 8 This is a schematic diagram of an interface for adding paragraphs provided in this application;

[0065] Figure 9 This is a schematic diagram of an interface for creating paragraphs provided in this application;

[0066] Figure 10 This is a schematic diagram of a content selection interface provided in this application;

[0067] Figure 11 This is a schematic diagram of another content selection interface provided in this application;

[0068] Figure 12 This is a schematic diagram of another content selection interface provided in this application;

[0069] Figure 13 This is a schematic diagram of a content display interface provided in this application;

[0070] Figure 14 This is a schematic diagram of an editing mode setting interface provided in this application;

[0071] Figure 15 This is a schematic diagram of an interface for setting permissions provided in this application;

[0072] Figure 16 This is a schematic diagram of an interface for displaying an identity, as provided in this application.

[0073] Figure 17 This is a flowchart illustrating a permission allocation process provided in this application;

[0074] Figure 18 This is a schematic diagram of the structure of a document processing device provided in this application;

[0075] Figure 19 This is a schematic diagram of the structure of a computer device provided in this application. Detailed Implementation

[0076] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0077] This application relates to blockchain-related technologies. Blockchain is a novel application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanisms, and cryptographic algorithms. Essentially, a blockchain is a decentralized database, a chain of data blocks linked together using cryptographic methods. Each data block contains information about a batch of network transactions, used to verify the validity of the information (anti-counterfeiting) and generate the next block. A blockchain can include a blockchain underlying platform, a platform product service layer, and an application service layer. A blockchain consists of a series of blocks sequentially generated in chronological order. Once a new block is added to the blockchain, it cannot be removed. Each block records the data submitted by nodes in the blockchain system.

[0078] A blockchain underlying platform can include processing modules such as user management, basic services, smart contracts, and operations. The user management module is responsible for managing the identity information of all blockchain participants, including maintaining public and private key generation (account management), key management, and maintaining the correspondence between users' real identities and blockchain addresses (access management). Under authorization, it also monitors and audits transactions of certain real identities and provides risk control rule configuration (risk control audit). The basic service module is deployed on all blockchain node devices to verify the validity of business requests. After consensus is reached on valid requests, they are recorded in storage. For a new business request, the basic service first performs interface adaptation parsing and authentication (interface adaptation), then encrypts the business information using a consensus algorithm (consensus management), and transmits it completely and consistently to the shared ledger (network communication) for recording and storage. The smart contract module is responsible for contract registration, issuance, triggering, and execution. Developers can define contract logic using a programming language and publish it to the blockchain (contract registration). Based on the contract terms, it calls keys or other events to trigger execution, completing the contract logic. It also provides functions for contract upgrades and cancellations. The operations module is mainly responsible for deployment, configuration modification, contract settings, cloud adaptation, and real-time status visualization during product launch. In this application, the edited document can be added to the blockchain for storage to ensure that the edited document cannot be tampered with.

[0079] This application also relates to cloud technology. Cloud technology refers to a managed technology that unifies a series of resources such as hardware, software, and networks within a wide area network or local area network to realize the computing, storage, processing, and sharing of data.

[0080] Cloud technology is a collective term for network technology, information technology, integration technology, management platform technology, and application technology applied to the cloud computing business model. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to backend systems for logical processing. Data at different levels will be processed separately, and various industry data will all require robust system support, which can only be achieved through cloud computing.

[0081] The cloud technology mentioned in this application can refer to the collaborative editing of the same document by multiple people online, which can be done through the "cloud".

[0082] First, it should be noted that this application may display a prompt interface or pop-up window before and during the collection of user data (such as content edited by the user in a document, user account information in the document application, etc.). This prompt interface or pop-up window is used to inform the user that their data is being collected. This ensures that the application only begins the steps to collect user data after receiving confirmation from the user regarding the prompt interface or pop-up window; otherwise (i.e., without confirmation from the user), the steps to collect user data end, meaning no user data is collected. In other words, all user data collected in this application is collected with the user's consent and authorization, and the collection, use, and processing of relevant user data must comply with the relevant laws, regulations, and standards of the relevant countries and regions.

[0083] Please see Figure 1 , Figure 1 This is a schematic diagram of a network architecture provided in this application. For example... Figure 1 As shown, the network architecture may include server 200 and a terminal device cluster. The terminal device cluster may include one or more terminal devices; the number of terminal devices is not limited here. Figure 1 As shown, multiple terminal devices may specifically include terminal device 1, terminal device 2, terminal device 3, ..., terminal device n; as... Figure 1 As shown, terminal device 1, terminal device 2, terminal device 3, ..., terminal device n can all connect to server 200 via the network, so that each terminal device can interact with server 200 through the network connection.

[0084] like Figure 1The server 200 shown can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. Terminal devices can be smart terminals such as smartphones, tablets, laptops, desktop computers, smart TVs, and in-vehicle terminals. The following description uses the communication between terminal devices 1 to 4 and server 200 as an example to illustrate the specific implementation of this application.

[0085] Please see also Figure 2 , Figure 2 This is a schematic diagram of a document editing interface provided in this application. Figure 2 The document editing interface shown can be the application page of the document application in terminal device 1. The upper right corner 102a of the editing interface displays the avatar of the user account logged in in the document application of terminal device 1. This user can be Xiao Le.

[0086] Figure 2 The document titled "What are you thinking about today" in the document editing interface shown can be created by Xiao Le. Area 101a of the editing interface also displays the avatars of multiple users who can collaborate on editing the document, including Xiao Le's avatar, an avatar containing the text "Avatar 1", an avatar containing the text "Avatar 2", and an avatar containing the text "Avatar 3". Among these multiple users who can collaborate on editing the document, all users other than Xiao Le can be users that Xiao Le selected in the document application to collaborate on editing the documents he created.

[0087] Among them, the user whose avatar contains the text "avatar 1" could be Xiaoming, the user whose avatar contains the text "avatar 2" could be Xiaoke, and the user whose avatar contains the text "avatar 3" could be Xiaotian.

[0088] In the editing interface, the document titled "What are you thinking about today" created by Xiaole can be a document that Xiaole has set to prevent deletion and editing. In a document that has been set to prevent deletion and editing, the editor (such as Xiaoming, Xiaoke, and Xiaotian) can only edit the paragraphs they created, and cannot delete or modify the content of others.

[0089] For example, terminal device 2 can be owned by Xiaoming, terminal device 3 can be owned by Xiaoke, and terminal device 4 can be owned by Xiaotian. Therefore, Xiaoming, Xiaoke, and Xiaotian can all collaboratively edit the document created by Xiaole through the document application on their respective terminal devices. Specifically, Xiaoming's user account in the document application can be logged in on the document application of terminal device 2, Xiaoke's user account in the document application can be logged in on the document application of terminal device 3, and Xiaotian's user account in the document application can be logged in on the document application of terminal device 4.

[0090] In a document that has been set to prevent deletion and editing, Xiaoming, Xiaoke, and Xiaotian can only edit the paragraphs they create (i.e., add) in the document, and cannot modify the content edited in the paragraphs created by others in the document. However, the user who created the document (i.e., Xiaole) has the permission to edit the entire document, meaning that Xiaole can freely edit the entire document.

[0091] Optionally, the avatar of the user who created each paragraph can be displayed before each paragraph in the document. For example, Xiaoming's avatar can be displayed before the paragraph created by Xiaoming, Xiaoke's avatar can be displayed before the paragraph created by Xiaoke, Xiaotian's avatar can be displayed before the paragraph created by Xiaotian, and Xiaole's avatar can be displayed before the paragraph created by Xiaole.

[0092] Furthermore, the content edited by Xiaoming, Xiaoke, Xiaotian, and Xiaole on their respective terminal devices can be sent to server 200. Server 200 can act as a backend server for the document application. Server 200 can record the content edited by Xiaoming and synchronize it to Xiaoke, Xiaotian, and Xiaole; ​​similarly, server 200 can also record the content edited by Xiaoke and synchronize it to Xiaoming, Xiaotian, and Xiaole; ​​similarly, server 200 can also... The system can record the content edited by Xiaotian on the document and then synchronize that content with Xiaoming, Xiaoke, and Xiaole. Similarly, server 200 can also record the content edited by Xiaole on the document and then synchronize that content with Xiaoming, Xiaotian, and Xiaoke. Through this process, the content of the document in the editing interface of Xiaoming, Xiaotian, Xiaoke, and Xiaole's terminal devices can be kept consistent and synchronized, thus enabling Xiaoming, Xiaotian, Xiaoke, and Xiaole to collaboratively edit the same document simultaneously.

[0093] Understandably, an image in a document can also form its own paragraph. For example... Figure 2As shown, paragraph 103a in the document was created by Xiaoming. Xiaoming can edit paragraph 103a, while Xiaoke and Xiaotian cannot edit or modify paragraph 103a, including deleting paragraph 103a or modifying the content of paragraph 103a (such as deleting or adding content to paragraph 103a).

[0094] Similarly, paragraph 104a in the document was created by Xiao Ke, who can edit paragraph 104a, while Xiao Ming and Xiao Tian cannot edit or modify paragraph 104a; Likewise, paragraph 105a in the document was created by Xiao Tian, ​​who can edit paragraph 105a, while Xiao Ke and Xiao Ming cannot edit or modify paragraph 105a.

[0095] Optionally, Xiaoming, Xiaoke, and Xiaotian can transfer their created paragraphs to each other. After the transfer, the transferor can no longer edit the transferred paragraph, while the recipient can edit it. This can be understood as the transferor transferring their editing rights to the paragraph to the recipient, granting the recipient editing rights to the paragraph created by the transferor. Alternatively, after the transfer, both the transferor and the recipient can have editing rights to the transferred paragraph; the specific choice depends on the actual application scenario.

[0096] For example, Xiaoming can transfer his created paragraph 103a to Xiaoke. After the transfer, Xiaoming can no longer edit paragraph 103a, while Xiaoke can edit paragraph 103a.

[0097] Please see again Figure 3 , Figure 3 This is a schematic diagram of the permission settings interface provided in this application. Figure 3 The interface shown can be the interface where Xiaole can edit the permissions of the created document (i.e., the interface for advanced permission settings). In this permission editing interface, the document can be set to "free editing" mode or the "anti-deletion and anti-modification editing" mode mentioned above.

[0098] The "free editing" mode indicates that the editor can freely edit all the content in the document, while the "anti-deletion and anti-modification editing" mode indicates that the editor can only edit the paragraphs they created and cannot delete or modify other people's content, such as the document that Xiaoming, Xiaoke, Xiaotian and Xiaole collaborated to edit and was set to the "anti-deletion and anti-modification editing" mode.

[0099] like Figure 3As shown, compared to the "free editing" mode, the "anti-deletion and anti-modification editing" mode has additional settings in area 106a. Documents with the "anti-deletion and anti-modification editing" mode set can also have their content addition order set, which is used to limit the position of newly added paragraphs in the document.

[0100] If you add a new paragraph to a document and set it so that new paragraphs can be added freely and inserted between other paragraphs, then the new paragraph can be added between two existing adjacent paragraphs in the document. On the other hand, if you set it so that new paragraphs can only be added at the end of the document, then the new paragraph can only be added at the end of all existing paragraphs in the document.

[0101] In addition, documents with the "anti-deletion and anti-editing" mode set can also be configured to display the paragraph editor's avatar. If set to display, the user avatar of the user who created each paragraph will be displayed near each paragraph in the document application. If set to not display, the avatar of the user who created each paragraph will not be displayed near each paragraph in the document application.

[0102] Please see again Figures 4a-4c , Figures 4a-4c This is a schematic diagram of the interface of a document application provided in this application. Figures 4a-4c The above are displayed respectively. Figure 3 Different entry points for the permission settings interface.

[0103] like Figure 4a As shown, the document editing interface may include a "Share" button 101b. Clicking the "Share" button 101b will display the sharing interface, which may contain a control 102b. The control 102b also contains the text "Advanced Permissions: Paragraph Editing Permissions, Watermark, Disallow Copying, etc." This text is used to indicate the function of the control 102b. Clicking the control 102b will display the aforementioned permissions. Figure 3 The interface for setting permissions.

[0104] More, such as Figure 4b As shown, the document editing interface may also include a "Menu" button 103b. Clicking the "Menu" button 103b will display a function bar 104b, which contains a "Permission Settings" control. Clicking the "Permission Settings" control will display a function bar 105b, which contains a "Content Operation Permission" control. Clicking the "Content Operation Permission" control will display the aforementioned... Figure 3 The interface for setting permissions.

[0105] More, such as Figure 4b As shown, the document editing interface can also include an "Invite Friends" button 106b. Clicking the button 106b will display a document permission settings window 107b. In this window 107b, users with viewing and editing permissions for the document can be managed, and more friends can be invited to collaborate on editing the document.

[0106] Window 107b also contains control 108b, which contains the text "Advanced Permissions: Paragraph Editing Permissions, Watermark, Copy Prohibition, etc." This text indicates the function of control 108b; clicking control 108b will display the aforementioned permissions. Figure 3 The interface for setting permissions.

[0107] Please see again Figure 5 , Figure 5 This is a schematic diagram of the interface of a document application provided in this application. Figure 5 The document interface shown can be the interface style displayed by the document application on a handheld device (such as a mobile phone). The logic is the same as described above. The document can also be set on the handheld device, including the setting of the editing mode.

[0108] like Figure 5 As shown, Interface 1 can be a document sharing interface. Interface 1 can include the document sharing method and target. Interface 1 also includes a permission setting control 101c, which contains the description information "Advanced Permissions: Paragraph Editing Permissions, Watermark, etc." Clicking on control 101c will display Interface 2.

[0109] In Interface 2, you can set the document's editing mode, such as setting it to free editing mode or anti-deletion / modification editing mode. The default is free editing mode. If you select the anti-deletion / modification editing mode in Interface 2, you will be displayed in Interface 3, which contains some settings related to the anti-deletion / modification editing mode, including the order in which content is added and whether the paragraph editor's avatar is displayed.

[0110] For more information, clicking the "Learn More" button 102c in interface 3 will take you to interface 4, which contains a pop-up window 103c explaining the anti-deletion / editing mode. This pop-up window 103c states that "collaborators with editing permissions can only edit paragraphs they created and cannot modify or delete paragraphs belonging to others. Only the document creator can freely edit the entire document. When enabled, the editor's avatar and nickname are displayed above paragraphs by default; the editor can click the avatar to hide it." Pop-up window 103c also explains the applicable scenarios for the anti-deletion / editing mode, including topic-based communication scenarios and opinion-gathering scenarios.

[0111] By using the method provided in this application, the editing permissions of paragraphs created by each user in a collaborative document editing process can be automatically granted to each user, ensuring that each user can only edit the paragraphs they created and cannot modify or edit the paragraphs created by other users. This guarantees the accuracy of document editing when multiple people are collaboratively editing a document.

[0112] Please see Figure 6 , Figure 6 This is a flowchart illustrating a document processing method provided in this application. The execution entity in the embodiments of this application can be a computer device, which can be a terminal device or other device capable of document editing. The specific device can be determined according to the actual application scenario and is not limited thereto. In the following description, a terminal device will be used as the execution entity in the embodiments of this application. Figure 6 As shown, the method may include:

[0113] Step S101: Display the document editing interface; the document supports collaborative editing by multiple objects.

[0114] This document can be any document created through a document application (which can be software, a mini-program, etc.) that can be collaboratively edited by multiple objects. These multiple objects can refer to multiple users in the document application, multiple users in a social application, or multiple users in other platforms or contact lists. The specific number of these multiple objects can be determined based on the actual application scenario and is not limited thereto.

[0115] The document application can be any application capable of document editing. The terminal device can have a document application installed. In this application, the target object's user account can be logged into the document application on the terminal device, meaning the terminal device can be owned by the target object. Furthermore, the document application in this embodiment can also be a browser corresponding to the document, or a document mini-program.

[0116] In this application, the document-related operations performed by the terminal device can be performed by the terminal device through its document application, or it can be understood that the document-related operations performed by the terminal device are performed by the document application.

[0117] The aforementioned objects may also include the object that created the document (i.e., the document creator). When creating a document in the document application, the document creator can choose multiple objects to collaboratively edit the document they create. In other words, these multiple objects are selected by the creator and can be collaboratively edited together with the creator's document.

[0118] Optionally, after creating a document and selecting collaborating partners (hereinafter referred to as "collaborating partners"), the document creator can share the document with these partners. This can be done via a link, allowing the recipient to open the document and view it in their editing interface. Alternatively, the document can be shared via QR code or other methods; there are no restrictions on this. The multiple partners collaborating on the document can be considered as the document's multiple collaborating partners.

[0119] Therefore, the terminal device can display the document content in the editing interface by clicking on the document shared by the document creator (such as by clicking on the link of the document shared by the document creator).

[0120] Since the aforementioned document can be an online document, edited collaboratively by multiple collaborators, the editing interface can display in real time the content edited by each of these collaborators.

[0121] Optionally, the document creator may have permission to edit the entire document at will.

[0122] Collaborating partners can display the document editing interface on their own terminal devices and edit the document. This editing interface can be an online document interface belonging to the document application.

[0123] Step S102: Obtain the paragraph permission settings of the target object within the document from among multiple objects, so that the target object has editing permissions for the target paragraph. The target object can be one of the aforementioned collaborative objects.

[0124] The target paragraph is a paragraph within the document. Only collaborating objects (including the target object and the document creator) with the appropriate editing permissions (i.e., editing permissions for the target paragraph) are allowed to edit the target paragraph. Furthermore, the content within the target paragraph cannot be modified by collaborating objects without the appropriate editing permissions. Such modifications can include substantive changes to the content within the target paragraph, such as deleting the target paragraph, adding or deleting content within the target paragraph, changing the format of the content within the target paragraph (such as font format), or dividing the content within the target paragraph into segments.

[0125] The target paragraph can be any paragraph in the document. A paragraph in the document can be defined by the two line breaks before and after the paragraph. That is, there can be a paragraph between two adjacent line breaks.

[0126] Optionally, the paragraph permission settings for the target object within the document may include: adding a paragraph to the document (i.e., creating a new paragraph), and this newly added paragraph can be referred to as the target paragraph. This process may include: the terminal device responding to the target object's operation of adding a paragraph to the document, adding the target paragraph, which is then displayed in the document's editing interface. Subsequently, the terminal device can grant the target object editing permissions for the added target paragraph. For example, the document application on the terminal device may request its parent backend device to grant the target object editing permissions for the target paragraph, thus granting the target object editing permissions for the target paragraph it created.

[0127] Optionally, when adding a new paragraph to a document, it can be added to the end of all existing paragraphs in the document. Therefore, the terminal device can create the target paragraph at the end of the document in response to the target object's action of adding a new paragraph.

[0128] Optionally, when the target object adds the target paragraph to the document, it can also select at least one collaborating object from the other collaborating objects (i.e., collaborating objects other than the target object) to edit the target paragraph together. That is, at least one collaborating object selected by the target object from the other collaborating objects can also have editing permissions for the target paragraph. In other words, after the target object adds the target paragraph to the document, the editing permission for the target paragraph can belong not only to the target object, but also to at least one collaborating object selected by the target object from the other collaborating objects. The specific number of at least one collaborating object can be determined according to the actual application scenario.

[0129] For example, after a target object adds a target paragraph to a document, a permission settings pop-up window can appear in the document application. The target object can then select at least one collaborating object from among other objects to edit the target paragraph together.

[0130] It is understood that the operations performed by a collaborating object on a document in this application (such as editing operations or setting permissions for paragraphs in the document) can be understood as the operations performed by that collaborating object on the document using its user account in the document application. In other words, each collaborating object can be identified by its user account in the document application.

[0131] Optionally, a document can be initially created as a blank document, and the paragraphs may not exist in the document. In this case, setting paragraph permissions for the target object within the document can refer to creating the target paragraph (i.e., adding a new paragraph). This scenario occurs when the target object triggers the aforementioned paragraph permission settings in the document before the target paragraph does not yet exist in the document.

[0132] Optionally, the target object can create a target paragraph at the end of the document by clicking on the blank canvas area of ​​the document in the editing interface. This blank canvas area can be the blank canvas area at the end of an existing paragraph in the document. In this scenario, the paragraph permission settings for the target object in the document can be initiated by clicking on the blank canvas area of ​​the document.

[0133] Alternatively, the terminal device can determine the line and / or paragraph that the target object is about to occupy by obtaining the position of the cursor in the document (hereinafter referred to as the cursor position), and the target object has editing permissions for the line and / or paragraph it occupies. The terminal device can then assemble the aforementioned target paragraph using the line and / or paragraph that the target object occupies in the document.

[0134] For example, after a target object sets paragraph permissions on the line where the cursor is located (such as allowing the target object to edit content on that line, or allowing the target object to put the line where the cursor is located into edit mode), the target object begins editing the document from that line. When the edited content exceeds that starting line and is displayed on lines following it (such as the next line or the line after that starting line), the target paragraph can include the line where the document editing began at the cursor position, as well as the other lines occupied by the content edited by the target object starting from that line. In other words, the line where the cursor is located, and the other lines occupied by the content edited by the target object starting from that line, can constitute the target paragraph, and the target object has editing permissions for that target paragraph.

[0135] Alternatively, the paragraph permission settings for the target object within the document can also be initiated based on the paragraph addition control. This process may include: the document may also contain paragraphs created by other collaborating objects besides the target object, and the target object does not have editing permissions. The editing interface can display the paragraph, and the editing permissions corresponding to a paragraph are the editing permissions of that paragraph.

[0136] Therefore, when a target object performs a trigger operation on a paragraph that it does not have editing permissions, the terminal device can display a paragraph creation control in the editing interface. This paragraph creation control is used to create a new paragraph in the document. Optionally, this paragraph creation control can be a button, and it can be displayed in a position adjacent to (e.g., next to) the paragraph on which the target object performed the trigger operation.

[0137] Optionally, the triggering operation performed by the target object on a paragraph that does not have editing permissions can be a click operation, a double-click operation, a mouse hover operation, or other operations on the paragraph that does not have editing permissions.

[0138] Furthermore, the target object can perform the operation of adding a new paragraph in the document using the aforementioned paragraph addition control (such as by clicking the paragraph addition control). The terminal device can then add a new paragraph after the paragraph in the document that the target object triggers and does not have editing permissions. This newly added paragraph is the aforementioned target paragraph. For example, the target paragraph can be created after the paragraph that the target object triggers and does not have editing permissions.

[0139] Please see Figure 7 , Figure 7 This is a schematic diagram of a document editing interface provided in this application. For example... Figure 7 As shown, in the editing interface, the user whose avatar contains the text "avatar 1" can be Xiaoming, the user whose avatar contains the text "avatar 2" can be Xiaoke, and the user whose avatar contains the text "avatar 3" can be Xiaotian. Figure 7 The document editing interface shown can be the editing interface on Xiaoming's terminal device; Xiaoming is not the creator of the document.

[0140] Since Xiaoming does not have permission to edit Xiaoke's paragraphs, when Xiaoming's mouse hovers over Xiaoke's paragraph 103d in the document for the first time, a control 102d and a tooltip 101d will appear in front of Xiaoke's avatar next to the paragraph. The control 102d can be the paragraph addition control mentioned above. Xiaoming can click on the control 102d to add his own paragraph in the document, which is adjacent to Xiaoke's paragraph 103d. The tooltip 101d is used to inform Xiaoming that the paragraph currently hovering over the mouse is edited by someone else, and Xiaoming does not have permission to edit the paragraph currently hovering over the mouse.

[0141] Here, Xiao Ke's paragraph 103d can be understood as a paragraph without editing permissions that is triggered by the target object mentioned above. Xiao Ming's hovering of the mouse over Xiao Ke's paragraph 103d can be understood as triggering the operation on Xiao Ke's paragraph 103d, thereby displaying the newly added paragraph control 102d.

[0142] Optionally, if Xiaoming's mouse hovers over paragraph 103d, but this is not the first time Xiaoming's mouse has hovered over paragraph 103d, then the above control 102d can be displayed in the editing interface, but the tooltip 101d will not be displayed.

[0143] Please see again Figure 8 , Figure 8 This is a schematic diagram of an interface for adding paragraphs provided in this application. For example... Figure 8 As shown, similarly, the user whose avatar contains the text "avatar 1" in the editing interface could be Xiaoming, the user whose avatar contains the text "avatar 2" could be Xiaoke, and the user whose avatar contains the text "avatar 3" could be Xiaotian. Figure 8 The document editing interface shown can be the editing interface on Xiaoming's terminal device; Xiaoming is not the creator of the document.

[0144] When Xiaoming clicks or double-clicks Xiaoke's paragraph 104d and then enters content on the keyboard (either a virtual or physical keyboard) (such as typing), since Xiaoming does not have editing permissions for paragraph 104d, the terminal device can display a prompt message 105d and automatically create a new paragraph 106d below paragraph 104d for Xiaoming, allowing him to edit the content in this new paragraph 106d. The prompt message 105d serves to inform Xiaoming that he cannot modify paragraph 104d and needs to create a new paragraph.

[0145] Here, paragraph 104d can be understood as a paragraph that does not have editing permissions triggered by the aforementioned target object. Xiaoming's operation of clicking or double-clicking paragraph 104d and entering content on the keyboard can also be understood as performing a trigger operation on the paragraph that does not have editing permissions. However, in this case, a new paragraph can be automatically created for Xiaoming without having to create it through the paragraph addition control.

[0146] Please see again Figure 9 , Figure 9 This is a schematic diagram of an interface for paragraph creation provided in this application. For example... Figure 9 As shown, similarly, the user whose avatar contains the text "avatar 1" in the editing interface could be Xiaoming, the user whose avatar contains the text "avatar 2" could be Xiaoke, and the user whose avatar contains the text "avatar 3" could be Xiaotian. Figure 9 The document editing interface shown can be the editing interface on Xiaoming's terminal device; Xiaoming is not the creator of the document.

[0147] Optionally, when Xiaoming clicks on Xiaoke's paragraph 107d in editing interface 1, since Xiaoming does not have permission to edit paragraph 107d, the terminal device can display editing interface 2. Editing interface 2 displays control 111d, which also includes the prompt "Add my paragraph below". This control 111d is used to add a new paragraph below paragraph 107d. The editing interface also includes a prompt message 110d, which informs Xiaoming that he does not have permission to edit the currently clicked paragraph 107d.

[0148] In this context, Xiao Ke's paragraph 107d can be understood as a paragraph that does not have editing permissions, triggered by the aforementioned target object. Xiao Ming's clicking on paragraph 107d can be understood as performing a trigger operation on paragraph 107d. Control 111d can be the newly added control for the aforementioned paragraph.

[0149] Therefore, Xiaoming can click on control 111d, and the terminal device will display the editing interface 112d. The editing interface 112d can include a new blank paragraph 114d created for Xiaoming below paragraph 113d. The blank paragraph 114d can also contain the prompt message "Successfully captured the paragraph, please edit...", and Xiaoming can then edit the content in the blank paragraph 114d.

[0150] Additionally, editing interface 3 may include a prompt 112d, which indicates to Xiaoming that a new paragraph has been successfully created. Editing interface 3 also includes controls in area 113d, which allow Xiaoming to perform the previous and next operations on the document.

[0151] Furthermore, the editing interface can also include controls 108d and 109d. Control 108d is used to create new paragraphs in the document. If Xiaoming clicks control 108d, the terminal device can create a new paragraph for Xiaoming at the end of the document. Control 109d is used to display the list of headings in the document. If the content of a certain paragraph in the document is set to heading format, clicking control 109d will display the content (i.e., the heading) of that paragraph.

[0152] Optionally, the editing interface can also continuously display the paragraph addition control (such as control 108d mentioned above). The target object can also add its own paragraph to the document by triggering (such as clicking) the paragraph addition control, such as adding its own paragraph at the end of the document.

[0153] Optionally, the paragraph permission settings for the target object within the document may also include the first editing operation performed on the target paragraph in the document. This first editing operation may refer to the first editing operation performed by the target object on the target paragraph among the aforementioned multiple objects, that is, before the target object performs the first editing operation on the target paragraph, none of the aforementioned multiple collaborating objects have performed any editing operations on the target paragraph.

[0154] Optionally, the first editing operation on the target paragraph may include any of the following: the first operation of content editing in the target paragraph (i.e., the first operation of entering content (such as any character, image, link or plugin) in the target paragraph); or the first operation of putting the target paragraph into editing mode, i.e., the first operation of putting the target paragraph into editing state.

[0155] If the target paragraph already exists in the document before the target object triggers the above paragraph permission settings, then the above paragraph permission settings for the target object in the document can refer to the above-mentioned first editing operation on the target paragraph.

[0156] Furthermore, the terminal device can also display an operation bar in response to a selection operation by the target object on content within a target paragraph (which may be content edited by the target object within the target paragraph). Since the target object has editing permissions for the target paragraph, this operation bar can be used to modify the selected content within the target paragraph. For example, the operation bar may include controls for modifying the selected content within the target paragraph. These controls may include controls for formatting the selected content within the target paragraph (such as font formatting), cut controls, paste controls, controls for inserting links, controls for inserting images, etc. Optionally, the operation bar may also include controls for performing other operations on the selected content within the target paragraph (such as copying, annotating, and multi-selection).

[0157] Furthermore, the terminal device can also respond to a selection operation by a target object on content in a paragraph that it does not have editing permissions for (this content may be edited by a collaborating object that has editing permissions for the paragraph that it does not have editing permissions for). The operation bar can not be used to modify the content selected by the target object in the paragraph that it does not have editing permissions for. If the operation bar does not contain controls for modifying the content selected in the paragraph that it does not have editing permissions for, the operation bar may contain other controls besides the controls for modifying the content selected in the paragraph that it does not have editing permissions for. For example, the other controls may include controls for copying, annotating, and multi-selecting (i.e., selecting) the content selected in the paragraph that it does not have editing permissions for.

[0158] Please see Figure 10 , Figure 10 This is a schematic diagram of a content selection interface provided in this application. Figure 10 In the editing interface shown, the user whose avatar contains the text "avatar 1" could be Xiaoming, the user whose avatar contains the text "avatar 2" could be Xiaoke, and the user whose avatar contains the text "avatar 3" could be Xiaotian. Figure 10 The document editing interface shown can be the editing interface on Xiaoming's terminal device; Xiaoming is not the creator of the document.

[0159] When Xiaoming performs a selection operation (such as long-pressing to select) on the content of Xiaoke's paragraph and selects the content "Activities to promote the spirit of science", an operation bar 101e will appear next to the selected content "Activities to promote the spirit of science". The operation bar 101e can include controls for selecting all (such as selecting all content in the paragraph containing the selected content), copying, annotating (i.e. adding annotations to the selected content in the document), and multi-selecting (i.e., selecting other content in the document in addition to the currently selected content). However, since Xiaoming does not have editing permissions for Xiaoke's paragraph, the controls in the operation bar 101e do not include controls for modifying the content selected in Xiaoke's paragraph.

[0160] Please see again Figure 11 , Figure 11 This is a schematic diagram of another content selection interface provided in this application. Figure 11 In the editing interface shown, the user whose avatar contains the text "avatar 1" could be Xiaoming, the user whose avatar contains the text "avatar 2" could be Xiaoke, and the user whose avatar contains the text "avatar 3" could be Xiaotian. Figure 11 The document editing interface shown can be the editing interface on Xiaotian's terminal device.

[0161] When Xiaotian selects content from his paragraph in browsing mode (i.e., document viewing mode) and selects the content "process before reselling", an operation bar 102e can be displayed next to the selected content "process before reselling". The operation bar 102e can include controls for selecting all, copying, formatting (such as "format" controls), annotating, and multi-selecting the selected content. Among them, the formatting control (such as adjusting font color, weight, font type, underline, etc.) belongs to the control used to modify the selected content.

[0162] Please see again Figure 12 , Figure 12 This is a schematic diagram of another content selection interface provided in this application. Figure 12 In the editing interface shown, the user whose avatar contains the text "avatar 1" could be Xiaoming, the user whose avatar contains the text "avatar 2" could be Xiaoke, and the user whose avatar contains the text "avatar 3" could be Xiaotian. Figure 12 The document editing interface shown can be the editing interface on Xiaotian's terminal device.

[0163] When Xiaotian selects content in his paragraph while in edit mode (i.e., document editing mode) and selects the content "process before reselling", an operation bar 103e can be displayed next to the selected content "process before reselling". This operation bar 103e can include controls for selecting all, cutting, copying, pasting, inserting links, adding comments, clearing formatting, and multi-selecting the selected content. Among these, the controls for cutting, pasting, inserting links, and clearing formatting are controls used to modify the selected content.

[0164] Optionally, after granting editing permissions to the target paragraph to the target object (i.e., after the target object obtains editing permissions to the target paragraph), the terminal device can display the associated information of the collaborating objects with editing permissions to the target paragraph around the target paragraph (such as the adjacent position to the left of the target paragraph), such as the associated information of the target object.

[0165] Optionally, since the document creator has editing rights to the entire document, if the target object is not the document creator, the document creator's association information may not be displayed around the target paragraph. However, the document creator's association information can be displayed around paragraphs created by the document creator within the document.

[0166] Optionally, the associated information of the collaboration object may include, but is not limited to, at least one of the following: the collaboration object's avatar information in the document application (such as an image or GIF of the avatar), the collaboration object's nickname information in the document application (i.e., the object's name in the document application), or the collaboration object's relevant account information in the document application. It is understood that the associated information of the collaboration object may include any information used to identify the collaboration object, and the specific details can be determined according to the actual application scenario.

[0167] Furthermore, the terminal device can also respond to the target object's operation of hiding the association information of collaborative objects displayed around the target paragraph, and hide the association information of collaborative objects displayed around the target paragraph. Optionally, this hiding can refer to collapsing the association information of collaborative objects through a hide control, and the hiding operation can refer to clicking the hide control. After the association information of collaborative objects displayed around the target paragraph is hidden, clicking the hide control again will re-display the association information of collaborative objects (such as the target object) that have editing permissions for the target paragraph around the target paragraph.

[0168] Optionally, the document can contain N paragraphs, where N is a positive integer, and the specific value of N can be determined according to the actual application scenario. Therefore, for each paragraph in the document, the association information of the collaborating objects with editing permissions for that paragraph can be displayed around the paragraph. Furthermore, the association information of the collaborating objects displayed around each paragraph can be fully displayed, partially hidden, partially displayed, or fully hidden.

[0169] For example, each paragraph can be surrounded by a hidden control, allowing users to choose to show or hide the associated information of collaborating objects around each paragraph. Alternatively, a control can be provided to hide all associated information of collaborating objects with a single click. This control can hide all associated information of collaborating objects around each paragraph; by default, all associated information of collaborating objects around each paragraph is shown. Optionally, the terminal device can also display the associated information of the target object only around the paragraphs in the document that the target object has editing permissions for, allowing the target object to quickly locate the paragraphs it has editing permissions for.

[0170] The document may also contain paragraphs added by other collaborators that the target object does not have editing permissions for. Optionally, the terminal device may also respond to the target object's triggering action on related information displayed around the paragraphs that it does not have editing permissions for (such as clicking, long-pressing, or other actions on the related information), displaying a conversation interface (i.e., a chat interface) between the target object and the collaborator corresponding to the paragraph that it does not have editing permissions for (which may exclude the document creator but include the collaborator that created the paragraph). The collaborator corresponding to the paragraph may refer to a collaborator with editing permissions for that paragraph. Thus, the target object can communicate with the collaborator corresponding to the paragraph that it does not have editing permissions for in this conversation interface. For example, the target object can communicate online with the collaborator corresponding to the paragraph that it does not have editing permissions for regarding questions related to the content within the paragraph that it does not have editing permissions for (i.e., the collaborator that edited the content within the paragraph that it does not have editing permissions for).

[0171] Alternatively, the terminal device may also respond to the target object's selection operation on the content in the paragraph that it does not have editing permissions by displaying a conversation interface with the collaborating object corresponding to the paragraph that the target object does not have editing permissions (which may exclude the document creator but include the collaborating object that created the paragraph that it does not have editing permissions). The virtual keyboard of the conversation interface may contain the content selected by the target object in the paragraph that it does not have editing permissions (which can be understood as messages in the conversation interface referencing the content selected in the paragraph that it does not have editing permissions). In the conversation interface, the target object may initiate a discussion with the collaborating object corresponding to the paragraph that it does not have editing permissions about the content selected in the paragraph that it does not have editing permissions.

[0172] Optionally, each paragraph (or the content within each paragraph) in the document can be individually saved, shared (such as forwarding), liked, or commented on. In other words, each paragraph in the document can be saved, shared, or commented on.

[0173] Optionally, the terminal device can also respond to the target object's editing operation on a paragraph in the document that it does not have editing permissions by displaying a prompt message indicating that it cannot be edited at the paragraph being operated on, so as to inform the target object that it does not have permission to edit the paragraph currently being operated on.

[0174] Optionally, the document can contain the aforementioned N paragraphs. Each paragraph can be displayed differently in the editing interface based on the collaborating objects with different editing permissions (this may exclude the document creator, but include the collaborating objects that created the paragraph). That is, paragraphs belonging to different collaborating objects can be displayed differently in the document, with one collaborating object corresponding to one display method. It is understood that the different display methods do not involve modifying the content within the paragraphs; they are simply to make it easier for each collaborating object to locate and distinguish paragraphs edited by other collaborating objects.

[0175] For example, the multiple collaborative objects that can collaboratively edit a document may include Collaborative Object 1, Collaborative Object 2, and Collaborative Object 3. The paragraphs in the document that Collaborative Object 1, Collaborative Object 2, and Collaborative Object 3 have editing permissions can be distinguished by using different background colors, so that each collaborative object can quickly locate and differentiate the paragraphs that each collaborative object has editing permissions for.

[0176] Optionally, each collaborating party can also set the display method for paragraphs they have editing permissions on their own terminal device's editing interface. For example, the aforementioned terminal device can also respond to the target party's setting of the display method for the target paragraph and display the target paragraph in the editing interface according to the display method set by the target party. This display method can include a highlight display method, a display method with a specific background color, a mask display method, etc., and can be set according to the actual application scenario.

[0177] The terminal device can also respond to the target object's paragraph aggregation operation on any of the above-mentioned collaborative objects (such as by performing a relevant gesture on any of the collaborative objects or by performing an aggregation control), and aggregate and display all paragraphs that any of the collaborative objects have editing permissions in the document. For example, all paragraphs may include all paragraphs added by any of the collaborative objects in the document.

[0178] Understandably, as more content is edited in a paragraph, the paragraph will automatically and adaptively increase in size; conversely, as less content is edited in a paragraph, the paragraph will automatically and adaptively decrease in size.

[0179] Optionally, the way to aggregate and display paragraphs in the document that any collaborating object has editing permissions for may include: aggregating and displaying paragraphs in the document that any collaborating object has editing permissions for in a floating layer that is displayed independently above the editing interface.

[0180] Alternatively, the method of aggregating and displaying paragraphs in the document that any collaborating object has editing permissions for may also include: aggregating and displaying paragraphs in the document that any collaborating object has editing permissions for in a specific area of ​​the editing interface.

[0181] After the aggregated display shows the paragraphs in the document that any of the above-mentioned collaborating objects have editing permissions for, the target object can intuitively view the content of all the paragraphs edited by that collaborating object in the document.

[0182] Furthermore, the terminal device can also respond to paragraph aggregation operations of the target object in the document (such as any of the above-mentioned collaborative objects referring to the target object), aggregate and display all paragraphs in the document that the target object has editing permissions for, and the target object can also uniformly view and edit the aggregated paragraphs that it has editing permissions for.

[0183] Optionally, the content within the paragraphs of the target object that has editing permissions after aggregation can be partially or fully selected, and the target object can perform unified editing on the partially or fully selected content (such as modifying the overall font, modifying the overall display format, etc.).

[0184] In other words, the target object can edit the paragraphs it has editing permissions for after the aggregation display, and the content edited by the target object in the aggregated display of paragraphs it has editing permissions for will also be automatically synchronized to the corresponding location in the document. For example, if the paragraphs the target object has editing permissions for after the aggregation display include the aforementioned target paragraph, then any modifications made by the target object to the content within the target paragraph in the aggregated display of paragraphs it has editing permissions for will also be automatically synchronized to the target paragraph in the document (achieving synchronization and effectiveness of modifications).

[0185] Please see Figure 13 , Figure 13 This is a schematic diagram of a content display interface provided in this application. For example... Figure 13 As shown, Figure 13 In the editing interface shown, the user whose avatar contains the text "Avatar 1" could be Xiaoming, the user whose avatar contains the text "Avatar 2" could be Xiaoke, and the user whose avatar contains the text "Avatar 3" could be Xiaotian. Xiaotian, Xiaoke, Xiaoming, and Xiaole can collaboratively edit the document together. Figure 13 The editing interface in the text is the editing interface on Xiaole's terminal device.

[0186] like Figure 13 As shown, the document editing interface displays the following entries in sequence: Xiao Le's edited content "I want to go for a spring outing today", Xiao Ming's edited content "I'm a little sleepy today~", Xiao Ke's edited content "I'm so happy today, hahahahaha", Xiao Le's edited content "I'm also planning to go to the amusement park tomorrow~", Xiao Ke's edited content "I'm going to have a good meal today." and Xiao Le's edited content "Thinking about how much work is coming up~".

[0187] Therefore, the terminal device can aggregate and display the paragraphs edited by Xiaole in the document in a floating layer 104e that is independently displayed above the editing interface, based on the paragraph aggregation operation performed by Xiaole in the document (such as long-pressing Xiaole's avatar, or other operations, depending on the actual application scenario). Furthermore, the paragraph number of each paragraph in the document can be displayed after the content of each paragraph of Xiaole displayed in the floating layer 104e.

[0188] Xiao Le can edit the aggregated content displayed in the 104e overlay. The content Xiao Le edits in the overlay can also be automatically synchronized to the document in the editing interface. However, if the overlay aggregates paragraphs that Xiao Le does not have editing permissions for (such as paragraphs belonging to other people), then Xiao Le can only view the content edited by others in the overlay, but cannot modify the content edited by others.

[0189] For more information, please see Figure 14 , Figure 14This is a schematic diagram of an editing mode setting interface provided in this application. As shown in the editing interface 101g, the document editing interface can also display various editing modes that can be set for the document, including the basic mode in area 101f (which allows free editing of the entire document), the preemption mode (i.e., the aforementioned anti-deletion and modification editing mode, where the editor has priority to preempt paragraphs and cannot modify other people's paragraphs), and the pet mode, etc.

[0190] Users can select the preemptive mode in area 101f, which will display interface 102g. Interface 102g includes explanations of the preemptive mode (same as the explanations for the anti-deletion / modification editing mode mentioned above), and also includes a button 103f to confirm setting the current document to preemptive mode. Clicking button 103f will display the editing interface 103g on the terminal device. In interface 103f, because the document is set to preemptive mode, the avatars of the respective paragraph creators are displayed before each paragraph (as shown in area 104f). The editing interface 103g may include area 105f, which contains other settings related to the preemptive mode, such as the preemption order (i.e., the order in which the content was added) and whether the paragraph editor's avatar is displayed.

[0191] For more details, please see [link / reference]. Figure 15 , Figure 15 This is a schematic diagram of the permission settings interface provided in this application. Figure 15 The interface shown is for setting relevant permissions for the document. This interface can include settings for collaborative editing, the order in which content is added under anti-deletion / modification editing mode, and the display of paragraph editor identity.

[0192] As shown in area 106f, for the settings of paragraph editor identity display, you can also choose to display the editor's (such as a collaborating partner who is collaboratively editing the document) avatar and nickname at the same time, display only the editor's avatar, or display only the editor's nickname. Here, display can refer to displaying the avatar around the paragraphs created by the editor in the document.

[0193] Please see also Figure 16 , Figure 16 This is a schematic diagram of an interface for displaying an identity, as provided in this application. Regarding the display of the paragraph editor's identity, if different identity information is displayed, the layout of each paragraph displayed in the document can also be different. The specific layout can be determined according to the actual application scenario, and there are no restrictions on it. For example... Figure 16 As shown, when the editor's avatar and nickname are displayed next to the paragraph, each editor's paragraphs can be displayed below their own avatar and nickname.

[0194] Furthermore, the terminal device can also respond to the target object's splitting operation on the target paragraph (which can be understood as splitting the content within the target paragraph) and display multiple paragraphs after splitting the target paragraph in the editing interface. These multiple paragraphs after splitting the target paragraph can be referred to as multiple first sub-paragraphs.

[0195] If the target paragraph is a paragraph in a document, then splitting the target paragraph can be an operation of dividing the content of the target paragraph into segments. Dividing the content of the target paragraph into segments is actually a form of editing and modifying the content of the target paragraph.

[0196] If the content of the target paragraph is divided into segments once, the content of the target paragraph can be divided into two segments, that is, into two segments. The multiple first sub-segments mentioned above can be these two segments, and the segment after splitting can be a first sub-segment of the target paragraph.

[0197] If the content of the target paragraph is divided into two segments, then the content of the target paragraph can be divided into three segments, that is, into three paragraphs. The multiple first sub-paragraphs mentioned above can be these three paragraphs, and each segment after splitting can be a first sub-paragraph.

[0198] Similarly, the target object can split the target paragraph several times. The specific number of splits can be determined according to the actual application scenario. After splitting, the target paragraph will be divided into multiple first sub-paragraphs. The terminal device can grant the target object the editing permissions of these multiple first sub-paragraphs. That is, the target object has the editing permissions of these multiple first sub-paragraphs. These multiple first sub-paragraphs can all be paragraphs in the document. From the overall understanding, these multiple first sub-paragraphs are also created by the target object.

[0199] More specifically, the terminal device described above (i.e., the terminal device acting as the execution subject in this embodiment) is the target object's terminal device, which is logged into the target object's user account in the document application. Since the document creator has the permission to edit the entire document, if the target object is not the document creator, the document creator can also perform the splitting operation on their own terminal device (which is logged into the document application with the document creator's user account; this terminal device can be referred to as the main terminal device below). The document editing interface on the main terminal device and the document editing interface on the target object's terminal device can synchronously display the multiple paragraphs after the target paragraph has been split, because the editing of the document by each collaborating object is synchronized, and each collaborating object is editing the same document. Here, the multiple paragraphs after the document creator splits the target paragraph can be referred to as multiple second sub-paragraphs. Alternatively, the target paragraph can be segmented, and the resulting multiple paragraphs are multiple second sub-paragraphs.

[0200] Optionally, the editing permissions of the first second sub-paragraph (which may be referred to as the first second sub-paragraph) among the plurality of second sub-paragraphs can be granted to the target object by the main terminal device, and the editing permissions of the second sub-paragraphs other than the first second sub-paragraph among the plurality of second sub-paragraphs can be granted to the document creator by the main terminal device.

[0201] Since the document creator has editing permissions for the entire document, the editing permissions for the second sub-paragraphs (excluding the first one) are granted to the document creator. This can be understood as making the document creator a collaborating object in creating the second sub-paragraphs (excluding the first one). Subsequently, the document creator's association information can be displayed around the second sub-paragraphs (excluding the first one), but the target object's association information will not be displayed.

[0202] This can be understood as recognizing any second sub-paragraph (excluding the first one) as a contribution from the document creator to the document's content editing. Similarly, content edited by a collaborating partner within a paragraph they have editing permissions for can be considered a contribution from that partner to the document's content editing.

[0203] Alternatively, the main terminal device can grant editing permissions for all of the aforementioned second sub-paragraphs to the target object. Or, the document creator can specify the collaborating objects to whom the editing permissions for these second sub-paragraphs belong via the main terminal device. The specific collaborating objects to whom the editing permissions for these second sub-paragraphs are assigned can be determined based on the actual application scenario and are not restricted in this regard.

[0204] Furthermore, a document can also contain the next paragraph after the target paragraph.

[0205] If the target object does not have editing permissions for the next paragraph of the target paragraph, and the document creator performs a merge operation on the target paragraph and the next paragraph of the target paragraph, the document editing interface in the main terminal device and the document editing interface in the target object's terminal device can both display the paragraph after the merge operation on the target paragraph and the next paragraph. For example, the paragraph after the merge operation can be a paragraph obtained by deleting the line break between the target paragraph and the next paragraph of the target paragraph.

[0206] Optionally, the editing permissions for the merged paragraphs can be granted by the main terminal device to the collaborating objects whose paragraphs appear earlier in the original sequence (such as the target object, since the target paragraph appears earlier than its next paragraph). Alternatively, the editing permissions for the merged paragraphs can also be granted by the main terminal device to all collaborating objects whose editing permissions belong to the original two paragraphs, including the target object and the collaborating objects whose editing permissions belong to the next paragraph of the target paragraph (this may exclude the document creator but include the collaborating object that created the next paragraph). In other words, the editing permissions for the merged paragraphs can also be granted to both the target object and the collaborating objects whose editing permissions belong to the next paragraph. The specific collaborating objects(s) to which the editing permissions for the merged paragraphs are granted can be determined based on the actual application scenario.

[0207] In other words, the target object can have editing permissions for the merged paragraph, or the collaborating object to which the editing permissions for the target paragraph and the next paragraph of the target paragraph belong can also have editing permissions for the merged paragraph.

[0208] More specifically, granting editing permissions for a paragraph in a document to a collaborating object can mean binding the paragraph's permission identifier to the collaborating object's object identifier. This creates a binding relationship between the paragraph's permission identifier and the collaborating object's object identifier. In other words, the collaborating object has a binding relationship with the paragraph's permission identifier, and the collaborating object that has this binding relationship has editing permissions for that paragraph.

[0209] The paragraph permission identifier can be randomly generated by the terminal device that triggers the allocation of editing permissions for that paragraph, with each paragraph corresponding to a unique paragraph permission identifier. The object identifier of a collaborating object can be a unique identifier for that collaborating object within the document application. As the name suggests, the object identifier of a collaborating object is used to uniquely identify that collaborating object. The object identifier can be a string of characters or other identifiers, which can be determined according to the actual application scenario. For example, the object identifier of a collaborating object can also be the collaborating object's account in the document application.

[0210] Therefore, the principle of obtaining the paragraph permission settings of the target object in the document, so that the target object has the editing permission of the target paragraph, can include: the terminal device (the terminal device without a prefix can be the terminal device of the target object) can obtain the paragraph permission identifier of the target paragraph when obtaining the paragraph permission settings of the target object in the document, and the paragraph permission identifier of the target paragraph can be randomly generated by the terminal device of the target object.

[0211] Furthermore, the terminal device can send the paragraph permission identifier of the generated target paragraph to the backend device (such as the backend server) of the document application to request the backend device to bind the paragraph permission identifier of the target paragraph to the object identifier of the target object. After the object identifier of the target object is bound to the paragraph permission identifier of the target paragraph, the target object has the editing permission of the target paragraph.

[0212] Optionally, in this application, each collaborating party can transfer the editing permissions of paragraphs they have access to (such as paragraphs they created themselves). After the transfer, the transferor will no longer have editing permissions for the transferred paragraphs, while the transferee will have editing permissions for the transferred paragraphs.

[0213] The paragraph transfer can be implemented in the following ways: if collaborating object 1 transfers its paragraph 1 to collaborating object 2, then collaborating object 1 can request the document application's backend through its terminal device to create a binding relationship between the object identifier of collaborating object 2 and the paragraph permission identifier of paragraph 1, and destroy the binding relationship between the object identifier of collaborating object 1 and the paragraph permission identifier of paragraph 1, so as to realize the transfer of paragraph 1 to collaborating object 2.

[0214] In this application, a paragraph can be divided and defined by two adjacent newline characters, and a paragraph is contained between two adjacent newline characters.

[0215] In this application, each collaborating object that is collaboratively editing a document can preemptively trigger (e.g., preemptively create) paragraphs in the document. This allows the collaborating object to automatically grant editing permissions to the paragraphs it creates, thus achieving automatic allocation of paragraph editing permissions. In other words, each collaborating object can independently obtain editing permissions for the paragraphs it creates in the document without the document creator having to allocate them, improving the efficiency and flexibility of each collaborating object obtaining editing permissions for paragraphs in the document.

[0216] Furthermore, since each paragraph in the document can only be edited by collaborators with corresponding editing permissions, and the content within each paragraph cannot be modified by collaborators without corresponding editing permissions, it prevents collaborators from accidentally deleting or modifying the content edited by others, thus improving the accuracy of multiple collaborators synchronously editing the same document.

[0217] In summary, the method provided in this application can prevent accidental deletion or modification of others' content during collaborative work, especially in large-scale online document collaboration scenarios involving strangers. Furthermore, the editor's avatar, nickname, and other identifying information are transparently displayed on the document's main text page, enhancing the collaborative atmosphere and engagement. Additionally, it allows for traceability of contributors during content creation, clearly identifying who contributed (i.e., who edited) the main text content, facilitating ongoing communication after content creation. For example, in brainstorming documents, if the group approves of a member's idea, that member can be encouraged to initiate a project.

[0218] This application can display a document editing interface; the document supports collaborative editing by multiple objects; it obtains the paragraph permission settings of the target object within the document, granting the target object editing permissions for the target paragraph; wherein, the target paragraph is a paragraph within the document, and only objects with editing permissions for that target paragraph are allowed to edit it. Therefore, the method proposed in this application allows the target object to trigger paragraph permission settings within the document to obtain editing permissions for the target paragraph, and only objects with editing permissions for the target paragraph can edit it. Other objects without such permissions cannot edit the target paragraph, ensuring that the content edited by the target object within the target paragraph is not mistakenly modified by other objects. This improves the accuracy of document editing by multiple objects. Furthermore, since objects collaborating on the document (including the target object) can also quickly obtain editing permissions for the set paragraphs by setting permissions within the document, the efficiency of objects obtaining editing permissions for paragraphs within the document is also improved.

[0219] Please see Figure 17 , Figure 17 This is a flowchart illustrating a permission allocation process provided in this application. For example... Figure 17 As shown, when a user clicks the empty paragraph button (such as the paragraph addition control mentioned above) in the editing interface to add their own paragraph to the document (such as s1), the terminal device can randomly generate a region protection ID (i.e., the paragraph permission identifier mentioned above), and send the generated region protection ID to the backend (such as the document application's backend) via Ajax (a data interaction method), and request editing permissions for the currently added paragraph from the backend (such as s2).

[0220] A paragraph can also be understood as an editing area in a document, except that the editing area will automatically expand or shrink as content is added or removed from the paragraph.

[0221] At the same time, the background can also pause the network layer queue for the current terminal device (this network layer queue is used in the background to store the content edited by the user in the document), that is, pause the writing of the content edited by the terminal device in the new paragraph (such as s6) to the network layer queue.

[0222] The terminal device can insert user-added paragraphs (empty paragraphs) into the body of a document and can generate a region protection, that is, protect the newly added empty paragraphs from being edited by others (such as s7). Then, the terminal device can submit the content edited in the newly added paragraphs to the network layer (such as s8). However, the network layer will not write at this time because the permission for the newly added paragraphs has not yet been successfully assigned to the user.

[0223] The terminal device determines whether the request for editing permissions for the newly added paragraph from the backend was successful (e.g., s3). If successful, it indicates that the user has editing permissions for the newly added paragraph, and the backend can restart the network layer and successfully write the content previously submitted by the user in the newly added paragraph to the network layer (e.g., s4, i.e., restore submitted data). If the request fails, the backend can send a paragraph addition failure message to the terminal device, and the terminal device can notify the user of the paragraph addition failure on the frontend page (e.g., s5).

[0224] This application can display a document editing interface; the document supports collaborative editing by multiple objects; it obtains the paragraph permission settings of the target object within the document, granting the target object editing permissions for the target paragraph; wherein, the target paragraph is a paragraph within the document, and only objects with editing permissions for that target paragraph are allowed to edit it. Therefore, the method proposed in this application allows the target object to trigger paragraph permission settings within the document to obtain editing permissions for the target paragraph, and only objects with editing permissions for the target paragraph can edit it. Other objects without editing permissions for the target paragraph cannot edit it, ensuring that the content edited by the target object within the target paragraph is not mistakenly modified by other objects. This improves the accuracy of document editing by multiple objects. Furthermore, since objects collaborating on the document (including the target object) can also quickly obtain editing permissions for the set paragraphs by setting permissions within the document, the efficiency of objects obtaining editing permissions for paragraphs within the document is also improved.

[0225] Please see Figure 18 , Figure 18 This is a schematic diagram of a document processing apparatus provided in this application. The document processing apparatus can be a computer program (including program code) running on a computer device; for example, the document processing apparatus is an application software. This document processing apparatus can be used to execute the corresponding steps in the methods provided in the embodiments of this application. Figure 18 As shown, the document processing device 1 may include: a display module 11 and a setting module 12;

[0226] Display module 11 is used to display the document editing interface; the document supports collaborative editing by multiple objects;

[0227] Setting module 12 is used to obtain the paragraph permission settings of the target object in the document among multiple objects, so that the target object has the editing permission of the target paragraph;

[0228] The target paragraph is a paragraph in the document, and only objects with editing permissions for that target paragraph are allowed to edit it.

[0229] Optionally, objects that have editing permissions for the target paragraph also include at least one object selected by the target object from other objects.

[0230] Optionally, paragraph permission settings include adding a paragraph to the document; the method by which setting module 12 obtains the paragraph permission settings of the target object within the document from multiple objects, so that the target object has editing permissions for the target paragraph, includes:

[0231] In response to the operation of adding a new paragraph in the document for the target object, add the target paragraph to the document;

[0232] The target object has editing permissions for the added target paragraph.

[0233] Optionally, module 12 can be configured to add the target paragraph to the document in response to the target object's action of adding a new paragraph, including:

[0234] When the target object performs a trigger operation on a paragraph in the document that it does not have editing permissions, the paragraph addition control is displayed;

[0235] This feature allows you to add a new paragraph after a paragraph that does not have editing permissions, using the paragraph addition control.

[0236] Optionally, the aforementioned device 1 is also used for;

[0237] In response to a selection operation by a target object on content in a paragraph for which it does not have editing permissions, an action bar is displayed, which includes at least one of the following: copy, comment, and select.

[0238] Optionally, module 12 can be configured to add the target paragraph to the document in response to the target object's action of adding a new paragraph, including:

[0239] In response to the target object adding a new paragraph in the document, add a new paragraph at the end of the document.

[0240] Optionally, editing permission settings include the first editing operation to be performed on the target paragraph in the document;

[0241] The first editing operation includes either the first time the content of the target paragraph is edited, or the first time the target paragraph is put into editing mode.

[0242] Optionally, the document contains N paragraphs, where N is a positive integer; the device 1 described above is also used for:

[0243] For each paragraph, display the associated information of the object with editing permissions around the paragraph; the associated information of the object can be fully displayed, partially hidden, partially displayed, or fully hidden, and the associated information of the object includes at least one of the following: the object's avatar information, the object's nickname, or the object's account information.

[0244] Optionally, the above-mentioned device 1 is also used for:

[0245] In response to a trigger action by the target object on the associated information displayed around a paragraph that does not have editing permissions, a conversation interface is displayed between the target object and the object corresponding to the paragraph that does not have editing permissions.

[0246] Optionally, the above-mentioned device 1 is also used for:

[0247] In response to a target object's selection of content in a paragraph that it does not have editing permissions, a session interface is displayed between the target object and the object corresponding to the paragraph that it does not have editing permissions. The virtual keyboard of this session interface contains the content selected in the paragraph that it does not have editing permissions.

[0248] Optionally, each paragraph in the document can be saved, shared, or commented on.

[0249] Optionally, the above-mentioned device 1 is also used for:

[0250] In response to editing operations on paragraphs in a document for which the user does not have editing permissions, a message indicating that editing is not possible is displayed.

[0251] Optionally, the document contains N paragraphs, where N is a positive integer. Each paragraph is displayed differently in the editing interface depending on the object with different editing permissions.

[0252] Optionally, the above-mentioned device 1 is also used for:

[0253] In response to the target object's settings for how the target paragraph is displayed, the target paragraph is displayed in the document according to the set display method.

[0254] Optionally, the above-mentioned device 1 is also used for:

[0255] In response to a paragraph aggregation operation on any of a plurality of objects, the paragraphs of any object that have editing permissions in the document are aggregated and displayed.

[0256] Optionally, clustering paragraphs in the document that any object has edit permissions for includes: clustering and displaying paragraphs in the document that any object has edit permissions for in a floating layer that is displayed independently above the editing interface.

[0257] Optionally, the above-mentioned device 1 is also used for:

[0258] In response to paragraph aggregation operations on the target object in the document, the paragraphs of the target object that have editing permissions in the document are aggregated and displayed.

[0259] The target object is used to uniformly edit the aggregated paragraphs that have editing permissions.

[0260] Optionally, the above-mentioned device 1 is also used for:

[0261] In response to the target object's splitting operation on the target paragraph, multiple first sub-paragraphs after splitting the target paragraph are displayed in the editing interface;

[0262] The target object has editing permissions for multiple first sub-paragraphs.

[0263] Optionally, after the target paragraph is split by the document creator, the editing interface is used to display multiple second sub-paragraphs after the target paragraph has been split.

[0264] The target object has editing permissions for the first of multiple second sub-paragraphs, and the creator has editing permissions for all of the second sub-paragraphs except the first one.

[0265] Optionally, when the target object does not have editing permissions for the next paragraph following the target paragraph, but the document creator performs a merge operation on the target paragraph and the next paragraph, the target object has editing permissions for the merged paragraph; or, the target object and the object with editing permissions for the next paragraph both have editing permissions for the merged paragraph.

[0266] Optionally, the setting module 12 obtains the paragraph permission settings of the target object within the document from multiple objects, enabling the target object to have editing permissions for the target paragraph, including:

[0267] Get the paragraph permission settings for the target object within the document, and get the paragraph permission identifier of the target paragraph for which paragraph permission settings are made;

[0268] Establish a binding relationship between paragraph permission identifiers and object identifiers of target objects, wherein objects bound to paragraph permission identifiers have editing permissions for the target paragraph.

[0269] According to one embodiment of this application, Figure 6The steps involved in the document processing method shown can be derived from... Figure 18 The document processing apparatus 1 shown is executed by each module. For example, Figure 6 Step S101 shown can be performed by Figure 18 The display module 11 in the middle is used to execute, Figure 6 Step S102 shown can be performed by Figure 18 The settings module 12 in the middle is used to execute.

[0270] This application can display a document editing interface; the document supports collaborative editing by multiple objects; it obtains the paragraph permission settings of the target object within the document, granting the target object editing permissions for the target paragraph; wherein, the target paragraph is a paragraph within the document, and only objects with editing permissions for that target paragraph are allowed to edit it. Therefore, the device proposed in this application allows the target object to trigger paragraph permission settings within the document to obtain editing permissions for the target paragraph, and only objects with editing permissions for the target paragraph can edit it. Other objects without such permissions cannot edit the target paragraph, ensuring that the content edited by the target object within the target paragraph is not mistakenly modified by other objects. This improves the accuracy of document editing by multiple objects. Furthermore, since objects collaborating on the document (including the target object) can also quickly obtain editing permissions for the set paragraphs by setting permissions within the document, the efficiency of objects obtaining editing permissions for paragraphs within the document is also improved.

[0271] According to one embodiment of this application, Figure 18 The various modules in the document processing device 1 shown can be individually or entirely combined into one or more units, or some of the units can be further divided into multiple functionally smaller sub-units to achieve the same operation without affecting the technical effects of the embodiments of this application. The above modules are based on logical function division. In practical applications, the function of one module can also be implemented by multiple units, or the function of multiple modules can be implemented by one unit. In other embodiments of this application, the document processing device 1 may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.

[0272] According to one embodiment of this application, a general-purpose computer device, such as a computer, which includes processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), can perform operations such as... Figure 6 The computer program (including program code) for each step involved in the corresponding method shown, to construct such... Figure 18The document processing apparatus 1 shown herein, and the document processing method for implementing the embodiments of this application, are described. The computer program described above may be recorded on, for example, a computer-readable recording medium, loaded onto the aforementioned computing device via the computer-readable recording medium, and run therein.

[0273] Please see Figure 19 , Figure 19 This is a schematic diagram of the structure of a computer device provided in this application. For example... Figure 19 As shown, the computer device 1000 may include a processor 1001, a network interface 1004, and a memory 1005. Furthermore, the computer device 1000 may also include a user interface 1003 and at least one communication bus 1002. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen and a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 1005 may also be at least one storage device located remotely from the aforementioned processor 1001. Figure 19 As shown, the memory 1005, which serves as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a device control application program.

[0274] exist Figure 19 In the computer device 1000 shown, the network interface 1004 provides network communication functionality; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0275] Displays the document editing interface; the document supports collaborative editing by multiple objects;

[0276] Retrieve the paragraph permission settings of the target object within the document from multiple objects, thereby granting the target object editing permissions for the target paragraph;

[0277] The target paragraph is a paragraph in the document, and only objects with editing permissions for that target paragraph are allowed to edit it.

[0278] It should be understood that the computer device 1000 described in the embodiments of this application can execute the foregoing text. Figure 6 The document processing method described in the corresponding embodiments can also be executed as described above. Figure 18The description of the document processing apparatus 1 in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated.

[0279] Furthermore, it should be noted that this application also provides a computer-readable storage medium storing a computer program executed by the aforementioned document processing apparatus 1. The computer program includes program instructions, which, when executed by a processor, enable the execution of the aforementioned document processing apparatus 1. Figure 6 The description of the document processing method in the corresponding embodiments is already provided and will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer storage medium embodiments related to this application, please refer to the description of the method embodiments of this application.

[0280] As an example, the above program instructions can be deployed and executed on a single computer device, or deployed and executed on multiple computer devices located in one location, or executed on multiple computer devices distributed across multiple locations and interconnected via a communication network. Multiple computer devices distributed across multiple locations and interconnected via a communication network can form a blockchain network.

[0281] The aforementioned computer-readable storage medium can be an internal storage unit of the document processing apparatus or computer device provided in any of the foregoing embodiments, such as a hard disk or memory of the computer device. The computer-readable storage medium can also be an external storage device of the computer device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on the computer device. Furthermore, the computer-readable storage medium may include both internal and external storage units of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

[0282] This application provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned... Figure 6The document processing method described in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer-readable storage medium embodiments related to this application, please refer to the description of the method embodiments of this application.

[0283] The terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the term "comprising," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or device that includes a series of steps or units is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other step units inherent to these processes, methods, apparatuses, products, or devices.

[0284] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0285] The methods and related apparatuses provided in this application are described with reference to the method flowcharts and / or structural diagrams provided in this application. Specifically, each block of the method flowchart and / or structural diagram, as well as combinations of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to create a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing device, generate instructions for implementing the process. Figure 1 A schematic diagram of one or more processes and / or structures. Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 A schematic diagram of one or more processes and / or structures. Figure 1The functions specified in one or more boxes. 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, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 A process or multiple processes and / or structures illustrate the steps of the functions specified in one or more boxes.

[0286] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A document processing method, characterized in that, The method includes: The document displays an editing interface; the document supports collaborative editing by multiple objects; Obtain the paragraph permission settings of the target object among the multiple objects within the document, so that the target object has editing permissions for the target paragraph; The target paragraph is a paragraph in the document, and only objects with editing permissions for the target paragraph are allowed to edit it; The step of obtaining the paragraph permission settings of the target object among the plurality of objects within the document, so that the target object has editing permissions for the target paragraph, includes: The document retrieves the paragraph permission settings for the target object within the document and obtains the paragraph permission identifier of the target paragraph for which the paragraph permission settings are performed. A binding relationship is established between the paragraph permission identifier and the object identifier of the target object, wherein the object bound to the paragraph permission identifier has the editing permission for the target paragraph. Each object transfers the editing permissions of the paragraphs it has. After the transfer, the transferor no longer has editing permissions for the transferred paragraphs, while the transferee has editing permissions for the transferred paragraphs. The implementation of the permission transfer includes: if the target object transfers the target paragraph for which it has editing permissions to another object as the transferee, the target object requests the document application's backend through the terminal device to create a binding relationship between the object identifier of the transferee and the paragraph permission identifier of the target paragraph, and destroys the binding relationship between the object identifier of the target object and the paragraph permission identifier of the target paragraph.

2. The method according to claim 1, characterized in that, The objects that have editing permissions for the target paragraph also include at least one object selected by the target object from other objects.

3. The method according to claim 1, characterized in that, The paragraph permission settings include adding a paragraph to the document; obtaining the paragraph permission settings of the target object among the plurality of objects within the document, so that the target object has editing permissions for the target paragraph, includes: In response to the operation of adding a paragraph to the document by the target object, the target paragraph is added to the document; The target object has editing permissions for the added target paragraph.

4. The method according to claim 3, characterized in that, The step of adding the target paragraph to the document in response to the operation of the target object to add a new paragraph in the document includes: When the target object performs a trigger operation on a paragraph in the document that it does not have editing permissions, the paragraph addition control is displayed; Based on the paragraph addition control, a new paragraph is added after the paragraph that does not have editing permissions.

5. The method according to claim 4, characterized in that, The method further includes; In response to the target object's selection operation on the content of a paragraph for which it does not have editing permissions, an operation bar is displayed, which includes at least one of the following: copy, annotation, and selection.

6. The method according to claim 3, characterized in that, The step of adding the target paragraph to the document in response to the operation of the target object to add a new paragraph in the document includes: In response to the target object's operation of adding a new paragraph in the document, a new paragraph is added to the end of the document.

7. The method according to claim 1, characterized in that, The editing permission settings include the first editing operation performed on the target paragraph in the document; The initial editing operation includes any one of the following: the operation of editing the content in the target paragraph for the first time, or the operation of putting the target paragraph into editing mode for the first time.

8. The method according to claim 1, characterized in that, The document contains N paragraphs, where N is a positive integer; the method further includes: For each paragraph, the associated information of the object with editing permissions for that paragraph is displayed around the paragraph; wherein, the associated information of the object can be fully displayed, partially hidden, partially displayed, or fully hidden, and the associated information of the object includes at least one of the following: the object's avatar information, the object's nickname, and the object's account information.

9. The method according to claim 8, characterized in that, The method further includes: In response to a triggering operation by the target object to display associated information around a paragraph that does not have editing permissions, a session interface is displayed between the object corresponding to the paragraph that does not have editing permissions.

10. The method according to claim 1, characterized in that, The method further includes: In response to the target object's selection operation on the content in a paragraph that it does not have editing permissions, a session interface is displayed between the object corresponding to the paragraph that it does not have editing permissions, and the virtual keyboard of the session interface contains the content selected in the paragraph that it does not have editing permissions.

11. The method according to claim 1, characterized in that, Each paragraph in the document can be saved, shared, or commented on.

12. The method according to claim 1, characterized in that, The method further includes: In response to an editing operation on a paragraph in the document that the user does not have editing permissions, a message indicating that editing is not possible is displayed.

13. The method according to claim 1, characterized in that, The document contains N paragraphs, where N is a positive integer. Each paragraph is displayed differently in the editing interface depending on the editing permissions of the object to which it belongs.

14. The method according to claim 1, characterized in that, The method further includes: In response to the target object's setting operation for the display mode of the target paragraph, the target paragraph is displayed in the document according to the set display mode.

15. The method according to claim 1, characterized in that, The method further includes: In response to a paragraph aggregation operation on any of the plurality of objects, the paragraphs of any object that have editing permissions in the document are aggregated and displayed.

16. The method according to claim 15, characterized in that, The step of aggregating and displaying paragraphs in the document for which any object has editing permissions includes: aggregating and displaying paragraphs in the document for which any object has editing permissions in a floating layer that is displayed independently above the editing interface.

17. The method according to claim 1, characterized in that, The method further includes: In response to a paragraph aggregation operation on the target object in the document, the paragraphs of the target object that have editing permissions in the document are aggregated and displayed; The target object is used to uniformly edit the aggregated paragraphs that have editing permissions.

18. The method according to claim 1, characterized in that, The method further includes: In response to the target object's splitting operation on the target paragraph, the editing interface displays multiple first sub-paragraphs after the target paragraph has been split; The target object has editing permissions for the plurality of first sub-paragraphs.

19. The method according to claim 1, characterized in that, After the target paragraph is split by the creator of the document, the editing interface is used to display multiple second sub-paragraphs after the target paragraph has been split. The target object has editing permissions for the first second sub-paragraph among the plurality of second sub-paragraphs, and the creator has editing permissions for the second sub-paragraphs other than the first second sub-paragraph among the plurality of second sub-paragraphs.

20. The method according to claim 1, characterized in that, When the target object does not have editing permissions for the next paragraph following the target paragraph, but the document creator performs a merge operation on the target paragraph and the next paragraph, the target object has editing permissions for the merged paragraph; or, the target object and the object with editing permissions for the next paragraph both have editing permissions for the merged paragraph.

21. A document processing apparatus, characterized in that, The device includes: The display module is used to display the document editing interface; the document supports collaborative editing by multiple objects. The settings module is used to obtain the paragraph permission settings of the target object among the multiple objects in the document, so that the target object has the editing permission of the target paragraph; The target paragraph is a paragraph in the document, and only objects with editing permissions for the target paragraph are allowed to edit it; The setting module obtains the paragraph permission settings of the target object among the multiple objects within the document, and grants the target object editing permissions for the target paragraph in the following ways: The document retrieves the paragraph permission settings for the target object within the document and obtains the paragraph permission identifier of the target paragraph for which the paragraph permission settings are performed. A binding relationship is established between the paragraph permission identifier and the object identifier of the target object, wherein the object bound to the paragraph permission identifier has the editing permission for the target paragraph. Each object transfers the editing permissions of the paragraphs it has. After the transfer, the transferor no longer has editing permissions for the transferred paragraphs, while the transferee has editing permissions for the transferred paragraphs. The implementation of the permission transfer includes: if the target object transfers the target paragraph for which it has editing permissions to another object as the transferee, the target object requests the document application's backend through the terminal device to create a binding relationship between the object identifier of the transferee and the paragraph permission identifier of the target paragraph, and destroys the binding relationship between the object identifier of the target object and the paragraph permission identifier of the target paragraph.

22. A computer program product comprising a computer program / instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1-20.

23. A computer device, characterized in that, It includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1-20.

24. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded by a processor and executed as described in any one of claims 1-20.

Citation Information

Patent Citations

  • Structured Coauthoring

    US20090327294A1