Content updating method and device, electronic equipment, medium and program product

By performing editing operations in the first document and processing the second document accordingly based on the reference relationships, the problem of complex and inaccurate multi-document editing operations is solved, and efficient and accurate content synchronization and updating is achieved.

CN116070598BActive Publication Date: 2025-11-25BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111300825.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-04
Publication Date
2025-11-25
Estimated Expiration
2041-11-04

AI Technical Summary

Technical Problem

When multiple documents within an enterprise contain the same content, editing the content of one document requires simultaneously editing the same content in other documents, which is a complex operation with low accuracy.

Method used

By performing editing operations in the first document, the target content in the second document is processed accordingly based on the editing operations, including dragging, swapping positions, adding, modifying or deleting, etc., and reference relationships are established and managed to improve the accuracy of synchronous updates.

Benefits of technology

It improves the accuracy of content synchronization and updates between multiple documents, avoids misidentification of editing operations, and enhances the security and efficiency of document editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116070598B_ABST
    Figure CN116070598B_ABST
Patent Text Reader

Abstract

The application relates to a content updating method and device, electronic equipment, medium and program product, and applies to the technical field of document processing. The method comprises the following steps: in response to an editing operation on first target content of a first document, editing the first target content of the first document; according to the editing operation, performing processing corresponding to the editing operation on second target content in a second document; wherein the first target content and the second target content have a reference relationship. The application can improve the accuracy of content updating.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of document processing, and in particular to a content updating method and device, electronic equipment, medium and program product. BACKGROUND

[0002] In the case that there are same contents among a plurality of different documents in an enterprise, if the same content in a certain document is edited, the same content in other documents also needs to be edited, which is relatively complex.

[0003] At present, the editing efficiency of document content can be improved through referencing, that is, the content in a source document can be referenced by one or more reference documents. When the content in the source document is edited, the content in the reference document can also be updated. However, the accuracy of the content update in the reference document is low. SUMMARY

[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a content updating method and device, electronic equipment, medium and program product.

[0005] According to a first aspect of the present application, a content updating method is provided, comprising:

[0006] In response to an editing operation on a first target content of a first document, editing processing is performed on the first target content of the first document.

[0007] According to the editing operation, processing corresponding to the editing operation is performed on a second target content in a second document; wherein the first target content and the second target content have a reference relationship.

[0008] Optionally, according to the editing operation, performing processing corresponding to the editing operation on the target content in the second document comprises:

[0009] In response to the editing operation being a drag operation on the first target content, keeping the display state of the second target content in the second document unchanged; or,

[0010] In response to the editing operation being other than the drag operation on the first target content, performing editing processing on the second target content in the second document according to the editing operation.

[0011] Optionally, the first target content comprises at least two content blocks; and performing editing processing on the second target content in the second document according to the editing operation comprises:

[0012] in response to the editing operation being a position exchange operation for a first content block and a second content block in the first target content, performing position exchange on corresponding first content block and second content block in the second target content; or,

[0013] in response to the editing operation being a drag operation for a third content block in the first target content, deleting the third content block in the second target content; or,

[0014] in response to the editing operation being an operation of adding a sixth content block between a fourth content block and a fifth content block in the first target content, adding the sixth content block between the fourth content block and the fifth content block in the second target content; or,

[0015] in response to the editing operation being a modification operation for the first target content, modifying corresponding content in the second target content; or,

[0016] in response to the editing operation being a deletion operation for the first target content, deleting the second target content.

[0017] Optionally, if the first target content references the second target content, and the user performing the editing operation has editing permission for the first document;

[0018] The method further comprises:

[0019] obtaining editing permission of the user for the second document;

[0020] if the user has editing permission for the second document, performing the step of editing the first target content in the first document.

[0021] Optionally, the first target content comprises at least two content blocks; and the editing the first target content in the first document comprises:

[0022] in response to the editing operation being a position exchange operation for a first content block and a second content block in the first target content, performing position exchange on corresponding first content block and second content block in the first target content; or,

[0023] in response to the editing operation being a drag operation for a third content block in the first target content, dragging the third content block in the first document from a first position to a second position; or,

[0024] in response to the editing operation being a drag operation for the first target content, dragging the first target content in the first document from a third position to a fourth position; or,

[0025] in response to the edit operation being an operation of adding a sixth content block between a fourth content block and a fifth content block in the first target content, adding the sixth content block into the first target content between the corresponding fourth content block and the fifth content block;

[0026] in response to the edit operation being a modification operation for the first target content, modifying the corresponding content of the first target content;

[0027] in response to the edit operation being a deletion operation for the first target content, deleting the first target content.

[0028] Optionally, the method further comprises:

[0029] establishing a reference relationship between the second target content and the first target content in the first document in the second document.

[0030] Optionally, the first target content comprises at least two content blocks, and the establishing a reference relationship between the second target content and the first target content in the first document in the second document comprises:

[0031] merging the corresponding at least two content blocks in the second target content into an integral content block, and establishing a reference relationship between the integral content block and the first target content.

[0032] Optionally, the establishing a reference relationship between the second target content and the first target content in the first document in the second document comprises:

[0033] in response to a copy operation for the first target content in the first document, copying the first target content;

[0034] in response to a paste operation in the second document, pasting the first target content into the second document to generate a second target content, and displaying a reference control;

[0035] in response to a trigger operation for the reference control, establishing a reference relationship between the second target content and the first target content.

[0036] According to a second aspect of the present application, a content updating apparatus is provided, comprising:

[0037] a first edit processing module, configured to perform edit processing on a first target content of a first document in response to an edit operation for the first target content of the first document;

[0038] The second editing processing module is configured to perform processing corresponding to the editing operation on the second target content in the second document according to the editing operation, wherein the first target content and the second target content have a reference relationship.

[0039] Optionally, the second editing processing module is specifically configured to, in response to the editing operation being a drag operation on the first target content, keep the display state of the second target content in the second document unchanged, or in response to the editing operation being an operation other than the drag operation on the first target content, perform editing processing on the second target content in the second document according to the editing operation.

[0040] Optionally, the first target content includes at least two content blocks, and the second editing processing module is specifically configured to, in response to the editing operation being a position exchange operation on a first content block and a second content block in the first target content, exchange the positions of the corresponding first content block and the second content block in the second target content, or,

[0041] in response to the editing operation being a drag operation on a third content block in the first target content, delete the corresponding third content block in the second target content, or,

[0042] in response to the editing operation being an operation of adding a sixth content block between a fourth content block and a fifth content block in the first target content, add the sixth content block to the second target content between the corresponding fourth content block and the fifth content block, or,

[0043] in response to the editing operation being a modification operation on the first target content, modify the corresponding content in the second target content, or,

[0044] in response to the editing operation being a deletion operation on the first target content, delete the second target content.

[0045] Optionally, if the first target content references the second target content, and the user performing the editing operation has an editing permission for the first document.

[0046] The apparatus further includes:

[0047] an editing permission acquisition module configured to acquire an editing permission of the user for the second document.

[0048] The first editing processing module is specifically configured to, in response to an editing operation on a first target content of a first document, if it is determined that the user has an editing permission for the second document, perform the step of performing editing processing on the first target content of the first document.

[0049] Optionally, the first target content comprises at least two content blocks; and the first editing processing module is specifically configured to, in response to the editing operation being a position exchange operation for a first content block and a second content block in the first target content, exchange positions of the corresponding first content block and the second content block in the first target content; or,

[0050] in response to the editing operation being a drag operation for a third content block in the first target content, drag the third content block in the first document from a first position to a second position; or,

[0051] in response to the editing operation being a drag operation for the first target content, drag the first target content in the first document from a third position to a fourth position; or,

[0052] in response to the editing operation being an operation of adding a sixth content block between a fourth content block and a fifth content block in the first target content, add the sixth content block to the first target content between the corresponding fourth content block and the fifth content block;

[0053] in response to the editing operation being a modification operation for the first target content, modify the corresponding content of the first target content;

[0054] in response to the editing operation being a deletion operation for the first target content, delete the first target content.

[0055] Optionally, the content updating apparatus further comprises:

[0056] a reference relationship establishing module configured to establish a reference relationship between the second target content and the first target content in the first document in the second document.

[0057] Optionally, the first target content comprises at least two content blocks, and the reference relationship establishing module is specifically configured to merge the corresponding at least two content blocks in the second target content into an integral content block, and establish a reference relationship between the integral content block and the first target content.

[0058] Optionally, the reference relationship establishing module is specifically configured to, in response to a copy operation for a first target content in a first document, copy the first target content; in response to a paste operation in a second document, paste the first target content into the second document to generate a second target content, and display a reference control; and in response to a trigger operation for the reference control, establish a reference relationship between the second target content and the first target content.

[0059] According to a third aspect of the present application, an electronic device is provided, comprising: a processor configured to execute a computer program stored in a memory, the computer program, when executed by the processor, implements the method of the first aspect.

[0060] According to a fourth aspect of the present application, a computer readable storage medium is provided, having stored thereon a computer program, the computer program, when executed by a processor, implements the method of the first aspect.

[0061] According to a fifth aspect of the present application, a computer program product is provided, which, when running on a computer, causes the computer to execute the method of the first aspect.

[0062] The technical solution provided by the embodiments of the present application has the following advantages compared with the prior art:

[0063] When the editing operation is performed on the first target content in the first document, the first target content in the first document is edited. At the same time, since the first target content and the second target content have a reference relationship, the processing corresponding to the editing operation can be performed on the second target content in the second document based on the editing operation. That is, different processing can be performed on the second target content in the second document based on different editing operations, avoiding misidentification of the editing operation, and improving the accuracy of the synchronous updating of the target content in the second document. BRIEF DESCRIPTION OF DRAWINGS

[0064] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0065] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced as follows. Obviously, those drawings can also be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0066] Figure 1 A scenario diagram of the content updating method in the embodiments of the present application;

[0067] Figure 2 A flowchart of the content updating method in the embodiments of the present application;

[0068] Figure 3 Another flowchart of the content updating method in the embodiments of the present application;

[0069] Figure 4 A diagram of displaying a reference setting menu in the embodiments of the present application;

[0070] Figure 5 This is a schematic diagram of content exchange in an embodiment of this application;

[0071] Figure 6 This is a schematic diagram added to the embodiments of this application;

[0072] Figure 7 This is a schematic diagram of a content updating device in an embodiment of this application;

[0073] Figure 8 This is a schematic diagram of the structure of an electronic device in an embodiment of this application. Detailed Implementation

[0074] To better understand the above-mentioned objectives, features, and advantages of this application, the solution of this application will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described in these embodiments can be combined with each other.

[0075] Many specific details are set forth in the following description in order to provide a full understanding of this application, but this application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some embodiments of this application, and not all embodiments.

[0076] Figure 1 This is a schematic diagram illustrating one scenario of the content update method in an embodiment of this application. For example... Figure 1 As shown, the first document and the second document contain the same content A. Copying content A from the first document to the second document will return content A, meaning that content A in the second document references content A from the first document. If a user edits content A in the first document, content A in the second document will be updated accordingly. Conversely, if a user edits content A in the second document, content A in the first document will also be updated accordingly.

[0077] For example, if you drag content A in the first document, your actual intention might be simply to adjust the order of content A within the first document, rather than to delete it. Therefore, you can keep the display of content A unchanged in the second document. Similarly, if you delete content A in the first document, you can delete content A in the second document, and so on.

[0078] The content update method of this application embodiment will be described in detail below.

[0079] See Figure 2 , Figure 2 This is a flowchart of a content update method in an embodiment of this application, which may include the following steps:

[0080] In step S210, the first target content in the first document is edited in response to the editing operation on the first target content in the first document.

[0081] The first target content in the first document has a reference relationship with the content in other documents (for example, the second document below). For example, the first target content can be content referenced by other documents, or content referenced from other documents. The editing operation on the first target content in the first document can include dragging, modifying, deleting, cutting, etc. Based on the editing operation, the first target content in the first document can be edited.

[0082] In step S220, the second target content in the second document is processed according to the editing operation.

[0083] In the embodiment of the present application, the second target content in the second document has a reference relationship with the first target content, so the second target content is the same as the first target content. The number of second documents can be one or more. The second target content in the second document can have a direct reference relationship with the first target content in the first document, or an indirect reference relationship. For example, the target content in document 1 is directly referenced by document 2, and the target content in document 2 is further referenced by document 3. In the case of document 1 as the first document, document 2 and document 3 can both be the second document.

[0084] The present application can divide the editing operation, and the processing performed on the second target content in the second document can also be different according to different editing operations. In this way, according to the editing operation, the processing corresponding to the editing operation is performed on the second target content in the second document, which can accurately identify the editing intention of the user, thereby improving the accuracy of updating the second target content in the second document.

[0085] Optionally, if the first target content references the second target content, and the user performing the editing operation has editing permission for the first document, the user's editing permission for the second document is obtained in response to the editing operation on the first target content in the first document. If the user has editing permission for the second document, the above step of editing the first target content in the first document is performed. In this way, in the case where the user has editing permission for the first document but no editing permission for the second document, the user cannot modify the first target content in the first document that references the second target content. Furthermore, the second target content in the second document is not updated synchronously, avoiding the user without editing permission from performing editing operations on the document, and improving the security of document editing.

[0086] The content updating method of the embodiment of the present application performs editing processing on the first target content in the first document when performing an editing operation on the first target content in the first document. Meanwhile, since the first target content has a reference relationship with the second target content, processing corresponding to the editing operation on the second target content in the second document can be performed based on the editing operation. That is, different processing can be performed on the second target content in the second document based on different editing operations, avoiding misrecognition of the editing operation and improving the accuracy of synchronous updating of the target content in the second document.

[0087] The content updating method of the embodiment of the present application is introduced below by taking the second target content referencing the first target content as an example.

[0088] Referring to Figure 3 , Figure 3 Another flowchart of the content updating method in the embodiment of the present application can include the following steps:

[0089] Step S310: establishing a reference relationship between the second target content and the first target content in the first document in the second document.

[0090] Suppose the second document is to reference the first target content in the first document, a reference relationship between the second target content and the first target content in the first document can be established in the second document. The first target content in the first document and the second target content in the second document can establish the reference relationship through copying and pasting.

[0091] In an optional implementation, the first target content is copied in response to a copying operation on the first target content in the first document. Then, the user can select a position to be pasted and perform a pasting operation in the second document. In response to the pasting operation in the second document, the first target content is pasted to the second document to generate the second target content, and a reference control is displayed. The reference control is used to establish the reference relationship, and after the reference relationship is established, the second target content in the second document is automatically updated when the first target content in the first document is edited.

[0092] In response to a triggering operation on the reference control, the reference relationship between the second target content and the first target content is established. In this way, when the first target content in the first document is edited, the second target content in the second document is automatically edited accordingly.

[0093] Referring to Figure 4 , Figure 4 An example of displaying a reference setting menu in the embodiment of the present application is based on Figure 1The reference of content A is shown. After pasting content A in the second document, a reference setting menu is displayed. The reference setting menu includes an "automatic update" control, i.e., a reference control, and an "ignore" control. If the user selects the "ignore" control, it indicates that no reference relationship is established. If the user selects the "automatic update" control, it indicates that a reference relationship is established.

[0094] The content block is a basic editing unit of the document. Each document can include one or more content blocks, and each content block is independent of each other. Optionally, if the first target content includes at least two content blocks, the corresponding at least two content blocks in the second target content can be merged into an integral content block, and a reference relationship between the integral content block and the first target content is established. That is, if the first target content and the second target content have a plurality of content block reference relationships before, the plurality of content block reference relationships can be merged into one integral content block reference relationship, so as to simplify the process of document processing and improve the efficiency of document processing.

[0095] In step S320, the first target content of the first document is edited in response to the editing operation on the first target content of the first document.

[0096] It can be understood that whether the reference relationship is established or not, the editing operation on the first target content in the first document can be performed to edit the first target content in the first document. In the case where the reference relationship is established, step S330 can also be performed.

[0097] In the case where the first target content includes at least two content blocks, the position of each content block in the first target content of the first document can be exchanged by the present application. In response to the editing operation being a position exchange operation on the first content block and the second content block in the first target content, the corresponding first content block and the second content block in the first target content are exchanged in position. The first content block and the second content block are two different content blocks in the first target content.

[0098] Referring to Figure 5 , Figure 5 An example of content exchange in the embodiment of the present application is shown. It can be seen that the first target content is content A, which includes content B and content C. The content B and the content C correspond to the first content block and the second content block respectively. The exchange operation can be performed on the first content block and the second content block to exchange the positions of the content B and the content C.

[0099] The application can drag part of the first target content in the first document, or can drag the first target content as a whole. In response to the editing operation being a drag operation on the third content block in the first target content, the third content block in the first document is dragged from the first position to the second position; in response to the editing operation being a drag operation on the first target content, the first target content in the first document is dragged from the third position to the fourth position. It can be seen that when part of the first target content is dragged and the first target content is dragged as a whole, the corresponding editing processing in the first document is the same, that is, the position of the dragged content is moved.

[0100] The application can also add new content in the first target content. In response to the editing operation being to add a sixth content block between a fourth content block and a fifth content block in the first target content, the sixth content block is added between the corresponding fourth content block and the fifth content block in the first target content. The added content can be original content in the first document, or content obtained from other documents, etc. See Figure 6 Figure 6 An example of adding content in the embodiment of the application can be seen. Content D is added between content B and content C.

[0101] In addition, in response to the editing operation being a modification operation on the first target content, the corresponding content of the first target content is modified; in response to the editing operation being a deletion operation on the first target content, the first target content is deleted.

[0102] In step S330, according to the editing operation, the second target content in the second document is executed corresponding processing corresponding to the editing operation; wherein the first target content and the second target content have a reference relationship.

[0103] In the embodiment of the application, the editing operation can be divided into two categories: a drag operation on the first target content and other operations except the drag operation on the first target content. If the editing operation is a drag operation on the first target content, it can be determined that the actual intention of the user is to adjust the order of the first target content in the first document, rather than to delete the first target content. In response to the editing operation being a drag operation on the first target content, the display state of the second target content in the second document is kept unchanged, that is, the second target content in the second document is not deleted. In this way, it can be avoided that the user only adjusts the first target content in the first document, and the second target content in the second document is deleted in real time, and the accuracy of updating the content in the second document is improved.

[0104] ​​​​​​​If the editing operation is other than the drag operation on the first target content, in response to the editing operation being other than the drag operation on the first target content, the second target content is edited according to the editing operation.

[0105] Similar to the editing process of the first document, in response to the editing operation being a position exchange operation on the first content block and the second content block in the first target content, the corresponding first content block and the second content block in the second target content are exchanged in position; or, in response to the editing operation being an operation of adding a sixth content block between the fourth content block and the fifth content block in the first target content, the sixth content block is added to the second target content between the corresponding fourth content block and the fifth content block; or, in response to the editing operation being a modification operation on the first target content, the corresponding content in the second target content is modified; or, in response to the editing operation being a deletion operation on the first target content, the second target content is deleted. For the editing process, refer to the editing process of the first document in step S320, which will not be described here.

[0106] It should be noted that, in response to the editing operation being a drag operation on the third content block in the first target content, the corresponding third content block in the second target content is deleted. As can be seen, this editing processing manner is different from the editing processing manner of the first document. If the editing operation is a drag operation on part of the content in the first target content, rather than all of the content, it can be determined that the actual intention of the user is to adjust the first target content in the first document referenced by other documents, so that the third content block is not referenced by other documents. Therefore, according to the drag operation on the third content block in the first target content, the third content block in the second document can be deleted.

[0107] The content updating method of the embodiments of the present application, when the user pastes the first target content in the first document to the second document, the reference relationship can be established. In this way, when the user edits the first target content in the first document, the second target content in the second document can also be updated synchronously. Specifically, the second target content in the second document can be processed based on the editing operation on the first target content in the first document. For example, if the editing operation is a drag operation on the first target content, it can be determined that the actual intention of the user is to adjust the order of the first target content in the first document, rather than deleting the first target content, and the display state of the second target content in the second document can be kept unchanged. If the editing operation is another operation, the second target content in the second document is edited according to the editing operation. The present application avoids misidentification of the editing operation, and improves the accuracy of updating the second target content in the second document. Similarly, when the editing operation is performed on the second target content in the second document, the first target content in the first document can also be processed based on the editing operation, and the accuracy of updating the first target content in the first document is improved.

[0108] Corresponding to the method embodiments described above, the embodiments of the present application also provide a content updating device, see Figure 7 The content updating device 700 comprises:

[0109] The first editing processing module 710 is configured to perform editing processing on the first target content in the first document in response to an editing operation on the first target content in the first document.

[0110] The second editing processing module 720 is configured to perform processing corresponding to the editing operation on the second target content in the second document according to the editing operation, wherein the first target content and the second target content have a reference relationship.

[0111] Optionally, the second editing processing module 720 is specifically configured to keep the display state of the second target content in the second document unchanged in response to the editing operation being a drag operation on the first target content, or perform editing processing on the second target content in the second document according to the editing operation in response to the editing operation being an operation other than the drag operation on the first target content.

[0112] Optionally, the first target content comprises at least two content blocks, and the second editing processing module 720 is specifically configured to exchange the positions of the corresponding first content block and the second content block in the second target content in response to the editing operation being a position exchange operation on the first content block and the second content block in the first target content, or

[0113] in response to the editing operation being a drag operation on a third content block in the first target content, delete the corresponding third content block in the second target content, or

[0114] in response to the editing operation being an operation of adding a sixth content block between a fourth content block and a fifth content block in the first target content, adding the sixth content block between the corresponding fourth content block and the fifth content block in the second target content; or

[0115] in response to the editing operation being a modification operation on the first target content, modifying the corresponding content in the second target content; or

[0116] in response to the editing operation being a deletion operation on the first target content, deleting the second target content.

[0117] Optionally, if the first target content references the second target content, and the user performing the editing operation has the editing permission on the first document;

[0118] The content updating apparatus 700 further comprises:

[0119] an editing permission obtaining module, configured to obtain the editing permission of the user on the second document;

[0120] The first editing processing module 710 is specifically configured to, in response to the editing operation on the first target content of the first document, if it is determined that the user has the editing permission on the second document, perform the step of editing processing on the first target content of the first document.

[0121] Optionally, the first target content comprises at least two content blocks; and the first editing processing module 710 is specifically configured to, in response to the editing operation being an operation of exchanging positions of a first content block and a second content block in the first target content, exchange positions of the corresponding first content block and the second content block in the first target content; or

[0122] in response to the editing operation being a drag operation on a third content block in the first target content, dragging the third content block in the first document from a first position to a second position; or

[0123] in response to the editing operation being a drag operation on the first target content, dragging the first target content in the first document from a third position to a fourth position; or

[0124] in response to the editing operation being an operation of adding a sixth content block between a fourth content block and a fifth content block in the first target content, adding the sixth content block between the corresponding fourth content block and the fifth content block in the first target content;

[0125] in response to the editing operation being a modification operation on the first target content, modifying the corresponding content in the first target content; or

[0126] In response to the edit operation being a deletion operation for the first target content, the first target content is deleted.

[0127] Optionally, the content updating apparatus 700 further comprises:

[0128] The reference relationship establishing module is configured to establish a reference relationship between the second target content and the first target content in the first document in the second document.

[0129] Optionally, the first target content comprises at least two content blocks, and the reference relationship establishing module is specifically configured to merge the at least two corresponding content blocks in the second target content into an integral content block, and establish a reference relationship between the integral content block and the first target content.

[0130] Optionally, the reference relationship establishing module is specifically configured to, in response to a copy operation for the first target content in the first document, copy the first target content; in response to a paste operation in the second document, paste the first target content to the second document to generate the second target content, and display the reference control; and in response to a trigger operation for the reference control, establish a reference relationship between the second target content and the first target content.

[0131] The specific details of each module or unit in the above apparatus have been described in detail in the corresponding method, and thus will not be described here again.

[0132] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such a division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into a plurality of modules or units.

[0133] In the exemplary embodiments of the present application, an electronic device is also provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the above-mentioned content updating method in the present exemplary embodiments.

[0134] Figure 8 A structural schematic diagram of an electronic device in the embodiments of the present application. It should be noted that, Figure 8 The electronic device 800 shown is only an example, and should not impose any limitation on the functions and use range of the embodiments of the present application.

[0135] As Figure 8As shown, the electronic device 800 includes a central processing unit (CPU) 801 which can perform various appropriate actions and processes in accordance with a program stored in a read only memory (ROM) 802 or a program loaded from a storage section 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for system operation are also stored. The central processing unit 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0136] Connected to the I / O interface 805 are an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a local area network (LAN) card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as necessary. A removable media 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 810 as necessary, so that a computer program read therefrom is installed into the storage section 808 as necessary.

[0137] In particular, according to embodiments of the present application, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 809, and / or installed from the removable media 811. When the computer program is executed by the central processing unit 801, various functions defined in the apparatus of the present application are performed.

[0138] In embodiments of the present application, there is also provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the content update method described above.

[0139] Note that the computer-readable storage media described herein can be transitory or non-transitory computer-readable storage media, a non-limiting example of which includes a tangible medium that can be accessed (read) in a particular manner by a computer. Non-limiting examples of tangible computer- readable storage media include hard disks, floppy disks, magnetic tape, optical disk, magnetic hard drive, solid state hard drive (SSD) or drive, random access memory (RAM), and CD-ROM. Non-transitory computer-readable storage media do not include communication media, which can refer to any medium that can be used to carry desired program code in a modulated data signal. The modulated data signal is itself merely a carrier wave including the desired program code, and does not include the tangible storage medium described above. A non-limiting example of a communication medium includes a wired medium such as a wired network or direct-wired connection carrying the modulated data signal. Another non-limiting example of a communication medium includes a wireless medium such as an RF, Wi-Fi, or other wireless network connection, carrying the modulated data signal.

[0140] In an embodiment of the present application, a computer program product is provided, which, when running on a computer, causes the computer to perform the content updating method.

[0141] It should be noted that the relational terms herein, such as first and second, and the like, are used solely to distinguish one from another entity or action without necessarily requiring or implying any actual relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus. Additionally, terms such as "plurality" or "a plurality" are intended to convey a quantity of at least two.

[0142] The foregoing is merely illustrative of the principles of this application and various modifications can be made by those skilled in the art without departing from the spirit and scope of the application. The above embodiments are illustrative, and not restrictive, of the scope of the application. Thus, it is intended that the scope of the application should be determined not with reference to the above description but should be determined with reference to the appended claims along with their full scope of equivalents.

Claims

1. A content update method characterized by comprising: The method comprises: in response to an editing operation on first target content of a first document, performing editing processing on the first target content of the first document, the first target content comprising at least two content blocks; according to the editing operation, performing processing corresponding to the editing operation on second target content in a second document; wherein the first target content and the second target content have a reference relationship; according to the editing operation, performing processing corresponding to the editing operation on the second target content in the second document, comprising: in response to the editing operation being a drag operation on the first target content, keeping the display state of the second target content in the second document unchanged; or, in response to the editing operation being an operation other than the drag operation on the first target content, performing editing processing on the second target content in the second document according to the editing operation; the editing processing on the second target content in the second document according to the editing operation, comprising: in response to the editing operation being a drag operation on a third content block in the first target content, deleting the corresponding third content block in the second target content.

2. The method of claim 1, wherein, the editing processing on the second target content in the second document according to the editing operation, comprising: in response to the editing operation being a position exchange operation on a first content block and a second content block in the first target content, exchanging the positions of the corresponding first content block and the second content block in the second target content; or, in response to the editing operation being an operation of adding a sixth content block between a fourth content block and a fifth content block in the first target content, adding the sixth content block to the second target content between the corresponding fourth content block and the fifth content block; or, in response to the editing operation being a modification operation on the first target content, modifying the corresponding content in the second target content; or, in response to the editing operation being a deletion operation on the first target content, deleting the second target content.

3. The method of claim 1, wherein, if the first target content references the second target content, and a user performing the editing operation has editing permission for the first document; the method further comprises: obtaining editing permission of the user for the second document; if the user has editing permission for the second document, performing the step of editing processing on the first target content of the first document.

4. The method of claim 1, wherein, The first target content comprises at least two content blocks; the editing processing on the first target content in the first document comprises: in response to the editing operation being a position exchange operation on a first content block and a second content block in the first target content, exchanging the positions of the corresponding first content block and the second content block in the first target content; or, in response to the editing operation being a drag operation on a third content block in the first target content, dragging the third content block in the first document from a first position to a second position; or, in response to the editing operation being a drag operation on the first target content, dragging the first target content in the first document from a third position to a fourth position; or in response to the editing operation being an operation of adding a sixth content block between a fourth content block and a fifth content block in the first target content, adding the sixth content block between the corresponding fourth content block and the fifth content block in the first target content; in response to the editing operation being a modification operation on the first target content, modifying the corresponding content of the first target content; in response to the editing operation being a deletion operation on the first target content, deleting the first target content.

5. The method of claim 1, wherein, The method further comprises: establishing a reference relationship between the second target content and the first target content in the first document in the second document.

6. The method of claim 5, wherein, The first target content comprises at least two content blocks, and the establishing a reference relationship between the second target content and the first target content in the first document in the second document comprises: merging the corresponding at least two content blocks in the second target content into an integral content block, and establishing a reference relationship between the integral content block and the first target content.

7. The method of claim 5, wherein, The establishing a reference relationship between the second target content and the first target content in the first document in the second document comprises: in response to a copy operation on the first target content in the first document, copying the first target content; in response to a paste operation in the second document, pasting the first target content into the second document to generate a second target content, and displaying a reference control; in response to a triggering operation on the reference control, establishing a reference relationship between the second target content and the first target content.

8. A content update apparatus characterized by comprising: The apparatus comprises: a first editing processing module configured to perform editing processing on a first target content of a first document in response to an editing operation on the first target content, the first target content comprising at least two content blocks; a second editing processing module configured to perform processing corresponding to the editing operation on a second target content in a second document according to the editing operation, wherein the first target content and the second target content have a reference relationship; the second editing processing module is specifically configured to, in response to the editing operation being a drag operation on the first target content, keep a display state of the second target content in the second document unchanged, or in response to the editing operation being an operation other than the drag operation on the first target content, perform editing processing on the second target content in the second document according to the editing operation; the second editing processing module is specifically configured to, in response to the editing operation being a drag operation on a third content block in the first target content, delete the corresponding third content block in the second target content.

9. An electronic device, comprising: comprise: a processor configured to execute a computer program stored in a memory, the computer program being executed by the processor to implement the steps of the method of any one of claims 1-7.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, which when executed by a processor, implements the steps of the method of any one of claims 1-7.

11. A computer program product, characterised in that, The computer program product, when running on a computer, causes the computer to perform the steps of the method of any one of claims 1-7.

Citation Information

Patent Citations

  • Reference document updating method and device, electronic equipment and storage medium

    CN111858518A

  • Method and system of cloud-computing based content management and collaboration platform with content blocks

    US20140365555A1