Online document editing method and device, electronic equipment, storage medium and product

Through the collaborative work of the client and server, online document editing within the cloud drive is realized, supporting multiple editing methods, solving the problem of online document editing within the cloud drive, and meeting users' creative needs.

CN119623432BActive Publication Date: 2026-05-08BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING BAIDU NETCOM SCI & TECH CO LTD
Filing Date
2024-12-09
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing online document editing systems cannot achieve efficient online document editing within cloud storage, thus failing to meet the creative needs of cloud storage users.

Method used

Through the collaborative work of the client and server, the client responds to user requests by pulling data entities from the server and displaying and editing them in the webpage view. The server updates the data entities synchronously, supporting functions such as inserting attachments, modifying content, and AI editing.

Benefits of technology

It enables online document editing within the cloud drive, supports multiple editing methods to meet the creative needs of cloud drive users, and combines video note-taking functionality to provide efficient document editing and data synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119623432B_ABST
    Figure CN119623432B_ABST
Patent Text Reader

Abstract

The present disclosure provides an online document editing method and device, electronic equipment, storage medium and product, relates to the technical field of computers, in particular to the technical fields of document processing, document editing, artificial intelligence and the like. The specific implementation scheme is: the client sends a data acquisition request for a target file to the server in response to an opening request for the target file; receiving the data entity of the target file returned by the server; the data entity contains a plurality of log data; loading the data entity in a preset web view container and displaying a web view loading the data entity; receiving an editing instruction for the web view, displaying the response result data in the web view in response to the editing instruction, and sending the response result data to the server, so that the server updates the data entity of the target file according to the response result data, realizing online document editing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, specifically to the fields of document processing, document editing, and artificial intelligence, and particularly to an online document editing method, apparatus, electronic device, storage medium, and product. Background Technology

[0002] With the rapid development of computer technology, online document editing has emerged to facilitate document editing and sharing. Online document editing can be achieved through the built-in online editing functions of applications, editing using third-party applications, or downloading documents to local storage for editing. Summary of the Invention

[0003] This disclosure provides an online document editing method, apparatus, electronic device, storage medium, and product.

[0004] According to one aspect of this disclosure, an online document editing method is provided, applied to a client, comprising:

[0005] In response to an open request for a target file, a data retrieval request for the target file is sent to the server;

[0006] Receive the data entity of the target file returned by the server; the data entity contains multiple log data.

[0007] Load the data entity into a preset webpage view container and display the webpage view containing the data entity;

[0008] The system receives an editing instruction for the webpage view, and in response to the editing instruction, displays the response result data in the webpage view and sends the response result data to the server so that the server updates the data entity of the target file based on the response result data.

[0009] According to another aspect of this disclosure, an online document editing method is provided, applied on a server side, including:

[0010] Receive a data acquisition request for a target file sent by a client, wherein the data acquisition request includes a user identifier and a file identifier of the target file;

[0011] Based on the user identifier and the file identifier, and the correspondence between the user identifier, the file identifier, and the data identifier of the data entity, the data entity corresponding to the target file is determined; the data entity contains multiple log data.

[0012] Send the data entity to the client;

[0013] Receive the response result data sent by the client, and update the data entity corresponding to the target file using the response result data.

[0014] According to another aspect of this disclosure, an online document editing device is provided for use on a client, comprising:

[0015] The first request sending module is used to send a data acquisition request for the target file to the server in response to an open request for the target file;

[0016] The data acquisition module is used to receive the data entity of the target file returned by the server; the data entity contains multiple log data.

[0017] A data loading module is used to load the data entity into a preset webpage view container and display the webpage view containing the loaded data entity.

[0018] An online editing module is used to receive editing instructions for the webpage view, respond to the editing instructions, display the response result data in the webpage view, and send the response result data to the server so that the server updates the data entity of the target file according to the response result data.

[0019] According to another aspect of this disclosure, an online document editing device is provided, applied on a server, comprising:

[0020] The first request receiving module is used to receive a data acquisition request for a target file sent by the client. The data acquisition request includes a user identifier and a file identifier of the target file.

[0021] The data determination module is used to determine the data entity corresponding to the target file based on the user identifier and the file identifier, as well as the correspondence between the user identifier, the file identifier, and the data identifier of the data entity; the data entity contains multiple log data.

[0022] A data sending module is used to send the data entity to the client;

[0023] The data update module is used to receive response result data sent by the client and update the data entity corresponding to the target file using the response result data.

[0024] According to another aspect of this disclosure, an electronic device is provided, comprising:

[0025] At least one processor; and

[0026] A memory communicatively connected to the at least one processor; wherein,

[0027] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform any of the methods described above.

[0028] According to another aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are configured to cause the computer to perform the method described in any of the preceding claims.

[0029] According to another aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method described in any of the preceding claims.

[0030] This disclosure embodiment realizes online document editing.

[0031] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0032] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0033] Figure 1 This is a schematic diagram based on the interface of this publicly available cloud storage service;

[0034] Figure 2 This is a schematic diagram illustrating the method of creation based on this disclosure document;

[0035] Figure 3 This is a schematic diagram of an online document editing method disclosed herein;

[0036] Figure 4 This is a schematic diagram of the online document editing interface disclosed herein;

[0037] Figure 5 This is a schematic diagram based on the video playback interface disclosed herein;

[0038] Figure 6a This is a schematic diagram of the editing interface based on this publicly available document;

[0039] Figure 6b This is another schematic diagram of the editing interface based on this public document;

[0040] Figure 6c This is another illustration of the editing interface based on this public document;

[0041] Figure 7a This is a schematic diagram of an AI editing interface based on this disclosure;

[0042] Figure 7b This is another schematic diagram of the AI ​​editing interface based on this disclosure;

[0043] Figure 7c This is yet another illustration of the AI ​​editing interface disclosed herein;

[0044] Figure 8 This is another schematic diagram based on the online document editing method disclosed herein;

[0045] Figure 9 This is an interactive diagram illustrating the online document editing method disclosed herein;

[0046] Figure 10 This is a schematic diagram of a structure of an online document editing device according to the present disclosure;

[0047] Figure 11 This is another structural schematic diagram of the online document editing device according to this disclosure;

[0048] Figure 12 This is a block diagram of an electronic device used to implement the online document editing method of the embodiments of this disclosure. Detailed Implementation

[0049] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0050] In related technologies, online document editing products such as Tencent Docs, Youdao Cloud Notes, and Evernote treat documents as standalone items, allowing editing only using local resources. In practical applications, cloud storage users have a strong need to create or reproduce content based on data stored within their cloud storage. Therefore, how to enable online document editing within cloud storage has become a pressing issue to address in order to better meet these users' creative needs.

[0051] To better meet the creative needs of cloud storage users and enable them to edit documents online, this disclosure provides an online document editing method, apparatus, electronic device, storage medium, and product.

[0052] This disclosure provides an online document editing method in which a client, in response to an open request for a target file, sends a data acquisition request for the target file to a server; receives a data entity of the target file returned by the server; the data entity contains multiple log data; loads the data entity into a preset webpage view container and displays the webpage view containing the loaded data entity; receives an editing instruction for the webpage view; in response to the editing instruction, displays response result data in the webpage view and sends the response result data to the server, so that the server updates the data entity of the target file according to the response result data.

[0053] In this embodiment, the data entity corresponding to the target file on the client is stored on the server. The client retrieves the corresponding data entity from the server through the target file opening request, loads the retrieved data entity into a webpage view container preset on the client, and displays the webpage view with the loaded data entity to form an online editable document. That is, the displayed webpage view is a document view that the user can see and edit online on the client. Furthermore, the client responds to the editing command for the webpage view, displays the response result data in the webpage view, and uses the response result data to synchronize the data entity stored on the server, thereby realizing online document editing.

[0054] The online document editing method provided in the embodiments of this disclosure will be described in detail below.

[0055] The online document editing method provided in this disclosure can be applied to online document editing scenarios within cloud storage. In one example, a user logs into their personal cloud storage via a client and further interacts with the server via a network connection to achieve online document editing. Exemplarily, the client can be a terminal device such as a laptop, personal computer, or a smart terminal device. The server can be an online service device such as a cloud storage cloud platform, a cloud storage backend, or a cloud storage database.

[0056] When users need to create content within the cloud storage, such as editing documents, they log in to their personal cloud storage via a client. This establishes a connection between the client and the cloud storage backend, i.e., the server. The client can be a laptop, personal computer, or mobile phone.

[0057] For example, such as Figure 1 As shown, Figure 1 This is a sample interface of a user's personal cloud storage after logging in via a client. Before users can edit online documents, they first need to create or open a new online document. For example, when a user clicks... Figure 1 The "Create New Online Document" function control allows you to create new online documents.

[0058] Accordingly, see Figure 2 This disclosure provides a method for creating a file, applied to a client, including:

[0059] S201, in response to the file creation request, sends the file creation request to the server.

[0060] S202, Receive the file identifier of the target file returned by the server if the data entity is successfully generated.

[0061] For example, the user clicks Figure 1 The system creates a new online document control. When a client receives a file creation request from a user, this request includes the user's identifier. In response, the client sends the file creation request to the server. Upon receiving the request, the server generates a data entity corresponding to the request and stores it in a target database (which can be a cloud storage database). Simultaneously, the server generates a target file of a preset file type for the data entity and stores it in a preset location (which can be the user's personal cloud storage space). Furthermore, the server assigns a data identifier to the data entity and a file identifier to the target file, establishing and storing the correspondence between the user identifier, file identifier, and data identifier. Upon successful generation of the data entity and target file, the server returns a success message and the file identifier of the generated target file to the client.

[0062] The data entity can contain multiple log data entries for the target file, such as creation time, size, and content. A preset file type could be a pnad file, represented as xxx.pand, where xxx is the filename and .pand indicates the pnad file type. This file type can be understood as similar to shortcuts or application clones. If the target file is successfully generated on the server, the client will display the corresponding target file, which will occupy storage space on the user's personal cloud drive.

[0063] The target file is a file of a preset file type generated for the data entity. Correspondingly, there is a mapping relationship between the generated data entity and the target file. The server also establishes and stores the correspondence between user identifier, file identifier and data identifier. Thus, the client can trace back to the corresponding data entity on the server through the identifier of the target file.

[0064] In this way, when the client receives a file creation request, the interaction between the client and the server enables the generation of the data entity corresponding to the file creation request on the server and the generation of the target file displayed on the client. The target file on the client can be directly associated with the data entity on the server, so as to facilitate subsequent online document editing.

[0065] See Figure 3 , Figure 3 This is a flowchart illustrating an online document editing method provided in an embodiment of the present disclosure, applied to a client, and includes the following steps:

[0066] S301, in response to the request to open the target file, sends a data retrieval request for the target file to the server.

[0067] If the target file already exists, since the data entities corresponding to the target file are stored on the server, opening the target file requires fetching the data entities from the server for rendering.

[0068] Specifically, when a user clicks on a target file to open it, the client receives the user's request to open the target file. In response to this request, the client sends a data retrieval request for the target file to the server. This data retrieval request may include the user's identifier and the target file's file identifier, so as to retrieve the corresponding data entity from the server.

[0069] S302, Receive the data entity of the target file returned by the server.

[0070] When the server receives a file creation request and generates a data entity and a target file, it establishes and stores the correspondence between the user identifier contained in the file creation request, the file identifier of the target file, and the data identifier of the generated data entity. Then, when the server receives a data retrieval request from the client, it can query the above correspondence using the user identifier and the file identifier of the target file contained in the data retrieval request to obtain the corresponding data entity and return the data entity of the target file to the client.

[0071] The data entity contains multiple log data entries. Each log data entry can represent an operation record on the target file. For example, the log data for a newly generated target file is empty, while the log data for a target file that has undergone an editing operation contains information such as the edited content and the editing time.

[0072] S303, Load the data entity into the preset webpage view container and display the webpage view containing the loaded data entity.

[0073] After the client retrieves the data entity of the target file from the server, it renders the data entity in a document style within a predefined webpage view container. Once rendering is complete, the client displays the webpage view containing the loaded data entity, forming an online editable document. The predefined webpage view container can be, for example, a WebView. After being rendered in a document style, the displayed webpage view is in document form. The data content contained within the webpage view is the same as the data content of the data entity.

[0074] For example, such as Figure 4 As shown, Figure 4 This is a webpage view that displays loaded data entities, and the content in the editing interface of this webpage view has not yet been edited.

[0075] S304, receive an editing instruction for the webpage view, respond to the editing instruction, display the response result data in the webpage view, and send the response result data to the server so that the server updates the data entity of the target file according to the response result data.

[0076] The client responds to the user's editing instructions for the webpage view, displays the response result data in the webpage view, and simultaneously synchronizes the response result data to the data entity of the target file on the server.

[0077] Specifically, response data can be sent to the server in real time or periodically to facilitate data synchronization on the server side.

[0078] In this embodiment, the data entity corresponding to the target file on the client is stored on the server. The client retrieves the corresponding data entity from the server through an open request for the target file, loads the retrieved data entity into a webpage view container preset on the client, and displays the webpage view containing the loaded data entity to form an online editable document. That is, the displayed webpage view is a document view that the user can see and edit online on the client. Furthermore, the client responds to editing instructions for the webpage view, displays response result data in the webpage view, and uses the response result data to synchronize the data entity stored on the server, thus realizing online document editing. Since the editing of the webpage view is performed on the client, while the corresponding data entity is stored on the server, the client can retrieve data from the server, and thus can comprehensively utilize server-side data and local data during the document editing process. This can better meet the creative needs of cloud storage users and enable users to better utilize the data in the cloud storage for online document editing.

[0079] In one possible implementation, the above-described online document editing method can be applied to scenarios where online notes are added or edited for watching videos. Accordingly, the above-described response to a file creation request, sending the file creation request to the server, may include:

[0080] For the video being watched by the user, receive the user's trigger operation on the preset function in the preset function area of ​​the video playback interface, and generate a file creation request for the video being watched;

[0081] In response to a file creation request, the file creation request is sent to the server; the file creation request also includes a video identifier.

[0082] The preset function areas can be located in specific positions on the video playback interface, such as the left sidebar, right sidebar, top sidebar, or bottom sidebar. These preset function areas can also be collapsed, hiding when the user clicks to collapse and displaying when the user clicks to show. Preset functions include adding notes and creating text.

[0083] For example, such as Figure 5 As shown, a user is watching a video in the video playback window. When they want to add notes to the video, they click the "Add Note" button or control in the right sidebar. Upon receiving the user's trigger action on the "Add Note" button, the client generates a file creation request for the watched video. In response to this request, the client sends a file creation request containing the user's identifier and the video identifier to the server. This allows the server to generate the corresponding data entity and target file, and return the file identifier of the target file. In the scenario of adding or editing online notes for watching videos, the target object is the video. The processes for generating the specific data entity and target file, as well as subsequent note editing operations, are consistent with the online document editing process described above.

[0084] In this embodiment of the disclosure, a video note-adding function is implemented for the video being watched by the user. When the user triggers the add note function button, online notes can be added and edited during the video viewing process, which can help the user record video notes while watching the video, thus combining video function with document editing function.

[0085] In one possible implementation, the above editing instructions may include at least one of the following: inserting attachments, modifying content, and AI (Artificial Intelligence) editing.

[0086] The "Insert Attachment" function allows you to insert local files as well as files from cloud storage. For example, such as... Figure 6a As shown, the user clicks the insert button on the webpage view in the online document editing interface (i.e., the webpage view). Figure 6a When not displayed in the text, a dialog box will pop up asking the user to select an insertion method. After the user selects an insertion method, the following will be displayed: Figure 6b The dialog box shown allows the user to select the file to insert. After the user selects the target file, the dialog box displays the result data in the web page view in response to the insert command, such as... Figure 6c The example shows the insertion of a video file, followed by a response that is sent to the server for synchronization. After insertion, the file can be viewed or previewed; for example, by clicking on it. Figure 6c The program includes a play button and the ability to preview inserted videos.

[0087] Modifications can include writing content, deleting or modifying already written content. AI editing enables AI-assisted editing.

[0088] In this embodiment, the editing instructions include inserting attachments, modifying content, and AI editing, which realizes multiple editing methods for online documents and can comprehensively utilize server-side data and local data to better meet the creative needs of cloud storage users and enable writing and viewing simultaneously.

[0089] In one possible implementation, when the editing instruction is an AI editing instruction, step S304 above, which involves receiving the editing instruction for the webpage view, responding to the editing instruction, displaying the response result data in the webpage view, and sending the response result data to the server, includes:

[0090] Receive AI editing instructions for the webpage view and display an interface containing multiple AI editing functions; obtain the user's selection instructions for the AI ​​editing functions, call the corresponding function interface to obtain AI response data based on the selection results and display it; when the user confirms the use of AI response data, display the AI ​​response data in the webpage view and send the AI ​​response data to the server.

[0091] For example, such as Figure 7a As shown, after editing "The weather is so nice today" in the webpage view's editing interface, the user clicks the AI ​​editing function button. Figure 7a (Not shown in the image), the client receives AI editing instructions for the webpage view and displays a screen interface containing multiple AI editing functions.

[0092] The AI ​​editing functions include at least one of the following: writing outlines, brainstorming, polishing, abbreviating, continuing, expanding, and summarizing.

[0093] In this embodiment of the disclosure, the AI ​​editing function can help users create documents from scratch, such as helping users write outlines, brainstorm, etc., and can also help users polish, shorten, continue, expand and summarize the content they have created, thereby better assisting users in their creation.

[0094] When a user selects a specific AI editing function, the client obtains the user's selection instruction, calls the corresponding function interface based on the selection result to retrieve the AI ​​response data, and displays it. Different AI editing functions correspond to different function interfaces, and the function interfaces encapsulate add-in functions to implement the corresponding functional operations.

[0095] For example, such as Figure 7bAs shown, after the user selects the retouching function, the client calls the corresponding function interface to obtain AI response data, namely, "Today the sun is shining brightly and the weather is absolutely beautiful," and then displays the AI ​​response data.

[0096] Afterwards, the user confirms whether to use the AI ​​response data. When the client receives the user's confirmation, it displays the AI ​​response data in the webpage view and sends the AI ​​response data to the server.

[0097] For example, when a user selects to use AI response data and specifies the usage method as "insert below," the client receives the user's instruction to use AI response data and insert it below, and then displays the AI ​​response data in the webpage view, such as... Figure 7c As shown.

[0098] This embodiment of the disclosure implements AI editing functions for online document editing, which can help users create documents from scratch, and can also help users polish, abbreviate, continue, expand and summarize the content they have created, so as to better assist users in creation.

[0099] In one possible implementation, the AI ​​editing instruction can be a text instruction or a voice instruction; when the AI ​​editing instruction is a voice instruction, the above method further includes: performing intent recognition on the voice instruction, and determining the intent recognition result as the AI ​​editing instruction.

[0100] AI editing instructions can be text instructions that are manually selected or entered by the user, or voice instructions. When the AI ​​editing instruction is a voice instruction, the client can also perform intent recognition on the received voice instruction and determine the intent recognition result as the AI ​​editing instruction.

[0101] In this embodiment of the disclosure, the AI ​​editing instructions can be text instructions or voice instructions, which expands the AI ​​editing function of online document editing, enables intent recognition of voice instructions, and thus better assists users in creation.

[0102] In this embodiment, the client can retrieve the data entity corresponding to the target file from the server by clicking on the target file, render and display a webpage view of the loaded data entity locally on the client, and perform online document editing through the webpage view. Regardless of whether document editing is performed, the target file will be displayed locally on the client after it is generated. The target file on the client's local machine does not have a specific data entity; its corresponding data entity is stored on the server. Furthermore, this embodiment also provides a method for operating on the target file, specifically, based on the above method, it may further include:

[0103] In response to an operation command for the target file, the operation command is sent to the server; the operation command contains an operation identifier for the target file.

[0104] The receiving server calls the corresponding operation interface based on the operation identifier to respond to the operation command and returns the result information.

[0105] The client receives and responds to user commands regarding a target file, sending the commands back to the server. Each command includes an operation identifier for the target file, such as a copy, delete, or move identifier. The server then invokes the corresponding operation interface based on the operation identifier to respond to the command and returns the result to the client. The client receives this result. The server stores operation interfaces corresponding to different operation identifiers, and these interfaces encapsulate add-in functions to implement the corresponding operations. The server-returned result may indicate success, failure, or provide prompts or instructions for the next step.

[0106] In this embodiment of the disclosure, the operation of the target file on the server is implemented to store the data entity.

[0107] The operation instructions may include at least one of the following: download, share, save, export, print, move, copy, favorite, delete.

[0108] In this embodiment of the disclosure, diverse operations on target files where data entities are stored on the server are implemented.

[0109] See Figure 8 , Figure 8 A flowchart illustrating another online document editing method provided in this disclosure, applied to a server, includes the following steps:

[0110] S801 receives a data retrieval request for a target file sent by the client.

[0111] The data retrieval request includes the user identifier and the file identifier of the target file.

[0112] S802, based on the user identifier and file identifier, and the correspondence between the user identifier, file identifier and data identifier of the data entity, determine the data entity corresponding to the target file.

[0113] The data entity contains multiple log data.

[0114] S803 sends the data entity to the client.

[0115] S804 receives the response result data sent by the client and uses the response result data to update the data entity corresponding to the target file.

[0116] In this embodiment, the data entity corresponding to the target file on the client is stored on the server. The client retrieves the corresponding data entity from the server via an open request for the target file, loads the retrieved data entity into a pre-defined webpage view container on the client, and displays the webpage view containing the loaded data entity to form an online document for editing. Furthermore, the client sends the response result data corresponding to the editing instructions for the webpage view to the server, allowing the server to synchronously update the stored data entity using the response result data, thus realizing online document editing. Moreover, since the editing of the webpage view is performed on the client, while the corresponding data entity is stored on the server, the client retrieves data from the server, enabling the comprehensive utilization of server-side and local data during document editing. This better meets the creative needs of cloud storage users, allowing them to better utilize data within the cloud storage for online document editing.

[0117] In one possible implementation, the above method further includes:

[0118] Receive a file creation request sent by the client, which contains a user identifier;

[0119] Generate the data entity corresponding to the file creation request and store the data entity in the target database;

[0120] Generate target files of a preset file type for data entities and store the target files in a preset location;

[0121] Assign data identifiers to data entities and file identifiers to target files, and establish and store the correspondence between user identifiers, file identifiers and data identifiers;

[0122] If the data entity and target file are successfully generated, the file identifier of the target file will be returned to the client.

[0123] Additionally, if the network connection between the client and the server is lost or the cloud disk corresponding to the server has insufficient capacity, the server will fail to generate the data entity and the target file, and in this case, the server will return a creation failure message to the client.

[0124] In this embodiment of the disclosure, the interaction between the client and the server enables the generation of a data entity corresponding to the file creation request on the server and the generation of a target file displayed on the client. The target file on the client can be directly associated with the data entity on the server, so as to facilitate subsequent online document editing.

[0125] In one possible implementation, receiving the file creation request sent by the client includes: receiving the file creation request sent by the client for watching a video, wherein the file creation request also includes a video identifier;

[0126] Accordingly, the correspondence between user identifiers, file identifiers and data identifiers is established and stored, including: establishing and storing the correspondence between user identifiers, video identifiers, file identifiers and data identifiers;

[0127] The above-mentioned storage of the target file to a preset location includes: storing the target file in the storage directory of the video being watched.

[0128] In this embodiment, a video note-adding function is implemented for videos watched by users. When a user triggers the add note function button, online notes can be added and edited during video viewing, enabling users to take video notes while watching the video. This combines video functionality with document editing functionality. The target file is stored in the storage directory of the watched video for better management of the video and video notes.

[0129] In one possible implementation, the above method further includes:

[0130] Receive operation instructions for the target file sent by the client; the operation instructions contain operation identifiers for the target file.

[0131] The corresponding operation interface is invoked based on the operation identifier to respond to the operation command, and the response result information is returned to the client.

[0132] In this embodiment of the disclosure, the operation of the target file on the server is implemented to store the data entity.

[0133] For example, such as Figure 9 As shown in the embodiments of this disclosure, the online document editing method includes:

[0134] S901: In response to a file creation request, the client sends the file creation request to the server.

[0135] The file creation request includes a user identifier.

[0136] In a scenario where a user is watching a video, the client can also receive the user's triggering operations on preset functions in the preset function area of ​​the video playback interface, and generate a file creation request for the video being watched; furthermore, the file creation request sent by the client to the server also includes the video identifier.

[0137] S902, the server receives a file creation request sent by the client, generates a data entity corresponding to the file creation request, and stores the data entity in the target database; generates a target file of a preset file type for the data entity, and stores the target file in a preset location; assigns a data identifier to the data entity and a file identifier to the target file, and establishes and stores the correspondence between the user identifier, the file identifier and the data identifier.

[0138] S903: If the server successfully generates the data entity and the target file, it will return the file identifier of the target file to the client.

[0139] Corresponding to the above-mentioned user video viewing scenario, the file creation request received by the server also includes a video identifier. After assigning a data identifier to the data entity and a file identifier to the target file, the correspondence between the user identifier, video identifier, file identifier and data identifier is established and stored. The target file is stored in the preset location, which is the storage directory where the video is viewed.

[0140] S904, the client receives the file identifier of the target file returned by the server.

[0141] S905: In response to the request to open the target file, the client sends a data retrieval request for the target file to the server.

[0142] The data retrieval request includes the user identifier and the file identifier of the target file.

[0143] S906, the server receives a data acquisition request for a target file from the client, and determines the data entity corresponding to the target file based on the user identifier and file identifier, as well as the correspondence between the user identifier, file identifier and data entity identifier.

[0144] The data entity contains multiple log data.

[0145] S907, the server sends the data entity to the client.

[0146] S908, the client receives the data entity of the target file returned by the server, loads the data entity into a preset webpage view container, and displays the webpage view with the loaded data entity; it receives editing instructions for the webpage view, and in response to the editing instructions, displays the response result data in the webpage view.

[0147] Editing instructions include at least one of the following: insert attachments, modify content, and AI editing.

[0148] When the editing instruction is an AI editing instruction, the client receives the AI ​​editing instruction for the webpage view, displays a display interface containing multiple AI editing functions, obtains the user's selection instruction for the AI ​​editing function, calls the corresponding function interface to obtain AI response data based on the selection result, and displays it; when the client receives the instruction to confirm the use of AI response data, the AI ​​response data is displayed in the webpage view and sent to the server.

[0149] AI editing instructions can be text instructions or voice instructions; when the AI ​​editing instruction is a voice instruction, the client performs intent recognition on the voice instruction and determines the intent recognition result as the AI ​​editing instruction.

[0150] AI editing functions include at least one of the following: writing outlines, brainstorming, polishing, abbreviating, continuing, expanding, and summarizing.

[0151] S909, the client sends the response result data to the server.

[0152] S910: The server receives the response result data sent by the client and uses the response result data to update the data entity corresponding to the target file.

[0153] S911: In response to an operation command for the target file, the client sends the operation command to the server.

[0154] The operation instructions contain an operation identifier for the target file. The operation instructions include at least one of the following: download, share, save, export, print, move, copy, favorite, delete.

[0155] S912: The server receives operation instructions for the target file sent by the client, and responds to the operation instructions by calling the corresponding operation interface based on the operation identifier.

[0156] S913, the server returns the response information to the client.

[0157] S914, the client receives the result information returned by the server after responding to the operation instruction by calling the corresponding operation interface based on the operation identifier.

[0158] This disclosure also provides an online document editing device for use on a client side, see [link to documentation]. Figure 10 ,include:

[0159] The first request sending module 1001 is used to send a data acquisition request for the target file to the server in response to the request to open the target file;

[0160] Data acquisition module 1002 is used to receive the data entity of the target file returned by the server; the data entity contains multiple log data.

[0161] The data loading module 1003 is used to load data entities into a preset webpage view container and display the webpage view containing the loaded data entities.

[0162] The online editing module 1004 is used to receive editing instructions for the web page view, respond to the editing instructions, display the response result data in the web page view, and send the response result data to the server so that the server can update the data entities of the target file according to the response result data.

[0163] In one possible implementation, the above-described apparatus further includes:

[0164] The second request sending module is used to respond to a file creation request by sending the file creation request to the server; the file creation request contains a user identifier;

[0165] The identifier receiving module is used to receive the file identifier of the target file returned by the server when the data entity is successfully generated.

[0166] In one possible implementation, the second request sending module described above is specifically used for:

[0167] For the video being watched by the user, receive the user's trigger operation on the preset function in the preset function area of ​​the video playback interface, and generate a file creation request for the video being watched;

[0168] In response to a file creation request, the file creation request is sent to the server; the file creation request also includes a video identifier.

[0169] In one possible implementation, the above editing instructions include at least one of the following: inserting attachments, modifying content, and AI editing.

[0170] In one possible implementation, when the editing instruction is an AI editing instruction, the aforementioned online editing module 1004 is specifically used for:

[0171] Receive AI editing instructions for web page views and display an interface that includes multiple AI editing functions;

[0172] Obtain the user's selection command for the AI ​​editing function, and call the corresponding function interface to obtain AI response data and display it based on the selection result;

[0173] Upon receiving a user's instruction to use AI response data, the AI ​​response data is displayed in the webpage view and sent to the server.

[0174] In one possible implementation, the AI ​​editing instructions are text instructions or voice instructions;

[0175] When the AI ​​editing instructions are voice commands, the aforementioned device also includes:

[0176] The intent recognition module is used to recognize the intent of voice commands and determine the intent recognition result as an AI editing command.

[0177] In one possible implementation, the AI ​​editing functions described above include at least one of the following: writing an outline, brainstorming, polishing, abbreviating, continuing, expanding, and summarizing.

[0178] In one possible implementation, the above-described apparatus further includes:

[0179] The instruction sending module is used to respond to operation instructions for the target file and send the operation instructions to the server; the operation instructions contain an operation identifier for the target file.

[0180] The result acquisition module is used to receive the result information returned by the server after it calls the corresponding operation interface based on the operation identifier to respond to the operation instruction.

[0181] In one possible implementation, the above operation instructions include at least one of the following: download, share, save, export, print, move, copy, favorite, delete.

[0182] This disclosure also provides an online document editing device, applied to a server, see [link to documentation]. Figure 11 ,include:

[0183] The first request receiving module 1101 is used to receive a data acquisition request for a target file sent by the client. The data acquisition request includes a user identifier and a file identifier of the target file.

[0184] The data determination module 1102 is used to determine the data entity corresponding to the target file based on the user identifier and file identifier, as well as the correspondence between the user identifier, file identifier and data entity identifier; the data entity contains multiple log data.

[0185] Data sending module 1103 is used to send data entities to the client;

[0186] The data update module 1104 is used to receive response result data sent by the client and update the data entity corresponding to the target file using the response result data.

[0187] In one possible implementation, the above-described apparatus further includes:

[0188] The second request receiving module is used to receive file creation requests sent by the client, and the file creation requests contain user identifiers.

[0189] The first generation module is used to generate the data entity corresponding to the file creation request and store the data entity in the target database;

[0190] The second generation module is used to generate target files of a preset file type for data entities and store the target files in a preset location;

[0191] The relationship establishment module is used to assign data identifiers to data entities and file identifiers to target files, and to establish and store the correspondence between user identifiers, file identifiers and data identifiers.

[0192] The identifier return module is used to return the file identifier of the target file to the client if the data entity and the target file are successfully generated.

[0193] In one possible implementation, the second request receiving module is specifically used to receive a file creation request sent by the client for watching a video, and the file creation request also includes a video identifier;

[0194] The relationship establishment module is specifically used to establish and store the correspondence between user identifiers, video identifiers, file identifiers, and data identifiers.

[0195] The second generation module mentioned above is specifically used to generate target files of a preset file type for data entities and store the target files in the storage directory for watching videos.

[0196] In one possible implementation, the above-described apparatus further includes:

[0197] The instruction receiving module is used to receive operation instructions for the target file sent by the client; the operation instructions contain an operation identifier for the target file.

[0198] The instruction execution module is used to call the corresponding operation interface based on the operation identifier to respond to the operation instruction and return the response result information to the client.

[0199] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0200] This disclosure provides an electronic device, comprising:

[0201] At least one processor; and

[0202] A memory that is communicatively connected to at least one processor; wherein,

[0203] The memory stores instructions that can be executed by at least one processor to enable the at least one processor to perform any of the methods of this disclosure.

[0204] A non-transitory computer-readable storage medium storing computer instructions is disclosed, wherein the computer instructions are used to cause a computer to perform any of the methods of this disclosure.

[0205] This disclosure provides a computer program product, including a computer program that, when executed by a processor, implements any of the methods described in this disclosure.

[0206] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0207] Figure 12 A schematic block diagram of an example electronic device 1200 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0208] like Figure 12 As shown, device 1200 includes a computing unit 1201, which can perform various appropriate actions and processes according to a computer program stored in read-only memory (ROM) 1202 or a computer program loaded from storage unit 1208 into random access memory (RAM) 1203. The RAM 1203 may also store various programs and data required for the operation of device 1200. The computing unit 1201, ROM 1202, and RAM 1203 are interconnected via bus 1204. Input / output (I / O) interface 1205 is also connected to bus 1204.

[0209] Multiple components in device 1200 are connected to I / O interface 1205, including: input unit 1206, such as keyboard, mouse, etc.; output unit 1207, such as various types of monitors, speakers, etc.; storage unit 1208, such as disk, optical disk, etc.; and communication unit 1209, such as network card, modem, wireless transceiver, etc. Communication unit 1209 allows device 1200 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0210] The computing unit 1201 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1201 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1201 performs the various methods and processes described above, such as online document editing methods. For example, in some embodiments, the online document editing method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 1208. In some embodiments, part or all of the computer program may be loaded and / or installed on device 1200 via ROM 1202 and / or communication unit 1209. When the computer program is loaded into RAM 1203 and executed by the computing unit 1201, one or more steps of the online document editing method described above may be performed. Alternatively, in other embodiments, the computing unit 1201 may be configured to perform an online document editing method by any other suitable means (e.g., by means of firmware).

[0211] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0212] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0213] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0214] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0215] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0216] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0217] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0218] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. An online document editing method, applied to a client, comprising: In response to a file creation request, the file creation request is sent to the server; Receive the file identifier of the target file returned by the server; The file identifier of the target file is: returned when the server successfully generates the data entity corresponding to the file creation request and stores the data entity in the target database, and generates a target file of a preset file type for the data entity and stores the target file in a preset location; the target file is displayed on the client. In response to an open request for a target file, a data retrieval request for the target file is sent to the server; Receive the data entity of the target file returned by the server; the data entity contains multiple log data. The data entity is loaded into a preset webpage view container, and the webpage view containing the data entity is displayed to form an online editable document; The system receives an editing instruction for the webpage view, responds to the editing instruction by displaying response result data in the webpage view, and sends the response result data to the server so that the server updates the data entity of the target file based on the response result data.

2. The method according to claim 1, wherein, The step of responding to a file creation request by sending the file creation request to the server includes: For the video being watched by the user, receive the user's trigger operation on the preset function in the preset function area of ​​the video playback interface, and generate a file creation request for the video being watched; In response to the file creation request, the file creation request is sent to the server; the file creation request also includes a video identifier.

3. The method according to claim 1, wherein, The editing instructions include at least one of the following: inserting attachments, modifying content, and AI editing.

4. The method according to claim 3, wherein, When the editing instruction is an AI editing instruction, receiving the editing instruction for the webpage view, responding to the editing instruction, displaying response result data in the webpage view, and sending the response result data to the server includes: Receive AI editing instructions for the webpage view and display an interface that includes multiple AI editing functions; Obtain the user's selection instruction for the AI ​​editing function, and call the corresponding function interface to obtain AI response data and display it based on the selection result; Upon receiving an instruction from the user to confirm the use of the AI ​​response data, the AI ​​response data is displayed in the webpage view and sent to the server.

5. The method according to claim 4, wherein, The AI ​​editing instructions can be text instructions or voice instructions; When the AI ​​editing instruction is a voice instruction, the method further includes: The voice command is subjected to intent recognition, and the intent recognition result is determined as an AI editing command.

6. The method according to claim 4, wherein, The AI ​​editing functions include at least one of the following: writing outlines, brainstorming, polishing, abbreviating, continuing, expanding, and summarizing.

7. The method according to any one of claims 1-6, further comprising: In response to the operation instruction for the target file, the operation instruction is sent to the server; The operation instruction includes an operation identifier for performing an operation on the target file; Receive the result information returned by the server after responding to the operation instruction by calling the corresponding operation interface based on the operation identifier.

8. The method according to claim 7, wherein, The operation instructions include at least one of the following: download, share, save, export, print, move, copy, favorite, delete.

9. An online document editing method, applied on a server side, comprising: Receive a file creation request sent by the client, wherein the file creation request contains a user identifier; Generate the data entity corresponding to the file creation request, and store the data entity in the target database; Generate a target file of a preset file type for the data entity, and store the target file in a preset location; Assign data identifiers to the data entities and file identifiers to the target files, and establish and store the correspondence between the user identifiers, the file identifiers and the data identifiers; If the data entity and the target file are successfully generated, the file identifier of the target file is returned to the client; Receive a data acquisition request for a target file sent by a client, wherein the data acquisition request includes a user identifier and a file identifier of the target file; Based on the user identifier and the file identifier, and the correspondence between the user identifier, the file identifier, and the data identifier of the data entity, the data entity corresponding to the target file is determined; the data entity contains multiple log data. The data entity is sent to the client so that the client loads the data entity in a preset webpage view container and displays the webpage view containing the data entity to form an online editable document. In response to an editing instruction for the webpage view, the client displays response result data in the webpage view and sends the response result data to the server. Receive the response result data sent by the client, and update the data entity corresponding to the target file using the response result data.

10. The method according to claim 9, wherein, Receiving the file creation request sent by the client includes: Receive a file creation request sent by the client for watching a video, the file creation request also including a video identifier; The step of establishing and storing the correspondence between the user identifier, the file identifier, and the data identifier includes: establishing and storing the correspondence between the user identifier, the video identifier, the file identifier, and the data identifier; The step of storing the target file to a preset location includes: storing the target file in the storage directory of the video being watched.

11. The method according to any one of claims 9-10, further comprising: Receive operation instructions for the target file sent by the client; The operation instruction includes an operation identifier for performing an operation on the target file; Based on the operation identifier, the corresponding operation interface is invoked to respond to the operation instruction, and the response result information is returned to the client.

12. An online document editing device, applied to a client, comprising: The second request sending module is used to send the file creation request to the server in response to the file creation request; An identifier receiving module is used to receive a file identifier of the target file returned by the server; the file identifier of the target file is returned when the server successfully generates the data entity corresponding to the file creation request and stores the data entity in the target database, and generates a target file of a preset file type for the data entity and stores the target file in a preset location; the target file is displayed on the client. The first request sending module is used to send a data acquisition request for the target file to the server in response to an open request for the target file; The data acquisition module is used to receive the data entity of the target file returned by the server; the data entity contains multiple log data. The data loading module is used to load the data entity into a preset webpage view container and display the webpage view containing the loaded data entity to form an online editable document. An online editing module is used to receive editing instructions for the webpage view, respond to the editing instructions, display response result data in the webpage view, and send the response result data to the server so that the server updates the data entities of the target file according to the response result data.

13. An online document editing device, applied on a server, comprising: The second request receiving module is used to receive a file creation request sent by the client, wherein the file creation request contains a user identifier; The first generation module is used to generate the data entity corresponding to the file creation request and store the data entity in the target database; The second generation module is used to generate a target file of a preset file type for the data entity and store the target file in a preset location; The relationship establishment module is used to assign data identifiers to the data entities and file identifiers to the target files, and to establish and store the correspondence between the user identifiers, the file identifiers and the data identifiers. The identifier return module is used to return the file identifier of the target file to the client if the data entity and the target file are successfully generated; The first request receiving module is used to receive a data acquisition request for a target file sent by the client. The data acquisition request includes a user identifier and a file identifier of the target file. The data determination module is used to determine the data entity corresponding to the target file based on the user identifier and the file identifier, as well as the correspondence between the user identifier, the file identifier, and the data identifier of the data entity; the data entity contains multiple log data. The data sending module is used to send the data entity to the client, so that the client loads the data entity in a preset webpage view container and displays the webpage view containing the data entity to form an online editing document, and in response to the editing instruction for the webpage view, displays the response result data in the webpage view and sends the response result data to the server. The data update module is used to receive response result data sent by the client and update the data entity corresponding to the target file using the response result data.

14. An electronic device comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-11.

15. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-11.

16. A computer program product comprising a computer program that, when executed by a processor, implements the method of any one of claims 1-11.

Citation Information

Patent Citations

  • File online editing method, apparatus and system

    CN105357307A

  • Information insertion method and device, equipment, medium and computer program product

    CN116468008A