Online document editing method and device, electronic equipment, storage medium and product
By interacting data between the client and the server on the network disk, online document editing is realized, solving the problem that the existing technology is difficult to edit online document on the network disk, and meeting the creative needs of network disk users.
Patent Information
- Application Number
- CN202411805402.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-12-09
AI Technical Summary
The existing online document editing technology is difficult to implement online document editing on the network disk, and cannot meet the needs of network disk users to create on the network disk.
Send data acquisition requests to the server through the client, pull the data entity of the target file, and load and display the data entity in the web view container. Users can edit in the web view and synchronize the editing results to the server to update the data entity of the target file.
It realizes online document editing on the network disk, meets the needs of network disk users to create on the network disk, and can better use the data in the network disk for document editing.
Smart Images

Figure CN119623432A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, specifically to technical fields such as document processing, document editing, artificial intelligence, and more particularly to an online document editing method, device, electronic device, storage medium, and product. Background Art
[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 by using the online editing function of the application, using third-party applications, or downloading the document to the local computer for editing. Summary of the invention
[0003] The present disclosure provides an online document editing method, device, electronic device, storage medium and product.
[0004] According to one aspect of the present disclosure, there is provided an online document editing method, which is applied to a client and includes:
[0005] In response to an open request for a target file, sending a data acquisition request for the target file to a server;
[0006] Receive the data entity of the target file returned by the server; the data entity includes multiple log data;
[0007] Loading the data entity in a preset web page view container, and displaying the web page view in which the data entity is loaded;
[0008] An editing instruction for the web page view is received, and in response to the editing instruction, the response result data is displayed in the web page view, and the response result data is sent to the server, so that the server updates the data entity of the target file according to the response result data.
[0009] According to another aspect of the present disclosure, there is provided an online document editing method, which is applied to a server, and includes:
[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] Determine the data entity corresponding to the target file based on the user identifier and the file identifier, and the corresponding relationship between the user identifier, the file identifier and the data identifier of the data entity; the data entity includes a plurality of log data;
[0012] Sending the data entity to the client;
[0013] Receive the response result data sent by the client, and use the response result data to update the data entity corresponding to the target file.
[0014] According to another aspect of the present disclosure, there is provided an online document editing device, which is applied to a client and includes:
[0015] A first request sending module, configured to send a data acquisition request for a target file to a server in response to an open request for the target file;
[0016] A data acquisition module, used for receiving the data entity of the target file returned by the server; the data entity includes a plurality of log data;
[0017] A data loading module, used to load the data entity in a preset web page view container and display the web page view in which the data entity is loaded;
[0018] The online editing module is used to receive an editing instruction for the web page view, display the response result data in the web page view in response to the editing instruction, 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 the present disclosure, there is provided an online document editing device, which is applied to a server, and includes:
[0020] A first request receiving module, configured to 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;
[0021] A data determination module, used to determine the data entity corresponding to the target file based on the user identifier and the file identifier, and the corresponding relationship between the user identifier, the file identifier and the data identifier of the data entity; the data entity includes a plurality of log data;
[0022] A data sending module, used to send the data entity to the client;
[0023] The data updating module is used to receive the response result data sent by the client, and use the response result data to update the data entity corresponding to the target file.
[0024] According to another aspect of the present disclosure, there is provided an electronic device, 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, and the instructions are executed by the at least one processor to enable the at least one processor to perform any of the above methods.
[0028] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the above methods.
[0029] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements any of the above methods when executed by a processor.
[0030] The disclosed embodiments implement online document editing.
[0031] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0033] Figure 1 is a schematic diagram of a network disk interface according to the present disclosure;
[0034] Figure 2 is a schematic diagram of a method for creating a document according to the present disclosure;
[0035] Figure 3 is a schematic diagram of an online document editing method according to the present disclosure;
[0036] Figure 4 is a schematic diagram of an online document editing interface according to the present disclosure;
[0037] Figure 5 is a schematic diagram of a video playback interface according to the present disclosure;
[0038] Figure 6a is a schematic diagram of a document editing interface according to the present disclosure;
[0039] Figure 6b is another schematic diagram of a document editing interface according to the present disclosure;
[0040] Figure 6c is another schematic diagram of a document editing interface according to the present disclosure;
[0041] Figure 7a is a schematic diagram of an AI editing interface according to the present disclosure;
[0042] Figure 7b is another schematic diagram of an AI editing interface according to the present disclosure;
[0043] Figure 7c is another schematic diagram of the AI editing interface according to the present disclosure;
[0044] Figure 8 is another schematic diagram of the online document editing method according to the present disclosure;
[0045] Fig. 9 is an interactive schematic diagram of the online document editing method according to the present disclosure;
[0046] Fig.10 is a structural schematic diagram of an online document editing device according to the present disclosure;
[0047] Fig.11 is another structural schematic diagram of the online document editing device according to the present disclosure;
[0048] Fig.12 It is a block diagram of an electronic device used to implement the online document editing method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0049] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0050] In related technologies, online document editing, such as Tencent Docs, Youdao Cloud Notes, and Evernote, uses document products that exist independently as documents, and can only be edited using local resources. In actual applications, for network disks, network disk users have a large number of demands for creation or reproduction based on the data in the network disk. In order to better meet the creation demands of network disk users in the network disk, how to edit online documents in the network disk has become an urgent problem to be solved.
[0051] In order to better meet the creative demands of network disk users in the network disk and enable users to edit online documents in the network disk, the embodiments of the present disclosure provide an online document editing method, device, electronic device, storage medium and product.
[0052] An online document editing method provided by an embodiment of the present disclosure comprises the following steps: a client sends a data acquisition request for a target file to a server in response to an open request for a target file; receives a data entity of the target file returned by the server; the data entity includes a plurality of log data; loads the data entity in a preset web page view container, and displays a web page view of the loaded data entity; receives an editing instruction for the web page view, displays response result data in the web page view in response to the editing instruction, 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 the disclosed embodiment, the data entity corresponding to the target file existing on the client is stored on the server. The client pulls the corresponding data entity from the server through an open request of the target file, loads the pulled data entity in a web view container preset on the client, and displays the web view of the loaded data entity to form an online editing document, that is, the displayed web view is a document view that the user can see on the client and can edit online. Furthermore, the client responds to the editing instruction for the web view, displays the response result data in the web 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 by the embodiment of the present disclosure is described in detail below.
[0055] The online document editing method provided by the embodiment of the present disclosure can be applied to the online document editing scenario in the network disk. In one example, the user logs in to the personal network disk through the client, and further exchanges data through the network connection between the client and the server to realize online document editing. Exemplarily, the client can be a terminal device such as a laptop, a personal computer, or a smart terminal device. The server can be an online service device such as a network disk cloud, a network disk backend, a network disk database, etc.
[0056] When a user needs to create something in the network disk, such as editing a document in the network disk, he logs in to the personal network disk through the client. At this time, a connection is established between the client and the network disk backend, i.e., the server. The client can be a laptop, personal computer, or mobile phone.
[0057] For example, Figure 1 As shown, Figure 1 This is an example interface of a personal network disk that is displayed after a user logs in to the personal network disk through the client. Before a user can edit an online document, he or she must first create or create a new online document. For example, when a user clicks Figure 1 Use the new online document function control in to create a new online document.
[0058] Accordingly, see Figure 2 The present disclosure embodiment discloses a method for creating a file, which is applied to a client and includes:
[0059] S201, in response to a file creation request, sending a file creation request to a server.
[0060] S202, receiving the file identifier of the target file returned by the server when the data entity is successfully generated.
[0061] For example, the user clicks Figure 1 A new online document function control is created in the server, and the client receives a file creation request from the user, which includes a user identifier. The client responds to the file creation request and sends the file creation request to the server. When the server receives the file creation request sent by the client, it generates a data entity corresponding to the file creation request and stores the data entity in a target database, which can be a network disk database. At the same time, it generates a target file of a preset file type for the data entity and stores the target file in a preset location, which can be a personal network disk storage space corresponding to the user identifier. Furthermore, the server assigns a data identifier to the data entity and a file identifier to the target file, establishes and stores the corresponding relationship between the user identifier, the file identifier and the data identifier, and returns a message of successful creation and the file identifier of the generated target file to the client when the data entity and the target file are successfully generated.
[0062] The data entity may include multiple log data of the target file, such as creation time, size, content, etc. The preset file type may be, for example, a pnad file type, represented as xxx.pand, where xxx is the file name and .pand represents the pnad file type. This file type can be understood as a file type similar to shortcuts and application clones. In this way, when the server successfully generates the target file, the client will display the corresponding target file, and the target file will occupy the storage space of the user's personal network disk.
[0063] The target file is a file of a preset file type generated for the data entity. Accordingly, there is a mapping relationship between the generated data entity and the target file. The server also establishes and stores the correspondence between the user identifier, file identifier and data identifier. Thus, the client can trace 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 data entity corresponding to the file creation request is generated on the server through the interaction between the client and the server, and a target file displayed on the client is generated. The target file on the client can be directly associated with the data entity on the server to facilitate subsequent online document editing.
[0065] See also Figure 3 , Figure 3 A flowchart of an online document editing method provided by an embodiment of the present disclosure, applied to a client, includes the following steps:
[0066] S301, in response to an open request for a target file, sending a data acquisition request for the target file to a server.
[0067] In the case where the target file already exists, since the data entity corresponding to the target file is stored on the server, opening the target file requires pulling the data entity from the server for rendering.
[0068] Specifically, the user clicks on the target file to open it, and the client receives the user's open request for the target file. In response to the open request, the client sends a data acquisition request for the target file to the server. The data acquisition request may include the user identifier and the file identifier of the target file to facilitate pulling the corresponding data entity from the server.
[0069] S302, receiving the data entity of the target file returned by the server.
[0070] When the server receives a file creation request to generate a data entity and a target file, it establishes and stores a correspondence between the user identifier contained in the file creation request, the file identifier of the generated target file, and the data identifier of the generated data entity. Then, when the server receives a data acquisition request sent by the client, it searches the above correspondence through the user identifier contained in the data acquisition request and the file identifier of the target file to obtain the corresponding data entity, and returns the data entity of the target file to the client.
[0071] The data entity contains multiple log data, each of which can represent an operation record for the target file. For example, the log data corresponding to the newly generated target file has empty file content, and the log data corresponding to the target file that has been edited contains information such as the editing content and editing time, and so on.
[0072] S303, loading a data entity in a preset web page view container, and displaying a web page view of the loaded data entity.
[0073] After the client obtains the data entity of the target file from the server, it renders the obtained data entity in the preset web view container in the style of a document. After the rendering is completed, the client displays the web view loaded with the data entity to form an online editing document. The preset web view container can be, for example, a Webview web view. After rendering in the style of a document, the displayed web view is in the form of a document. The data content contained in the web view is the data content in the data entity.
[0074] For example, Figure 4 As shown, Figure 4 A web page view that displays a loaded data entity, and no content has been edited in the editing interface of the web page view.
[0075] S304, receiving an editing instruction for the web page view, displaying response result data in the web page 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.
[0076] The client responds to the user's editing instruction for the web page view, displays the response result data in the web page view, and synchronizes the response result data to the data entity of the target file on the server.
[0077] Specifically, the response result data may be sent to the server in real time, or may be sent to the server periodically, so that the server can perform data synchronization.
[0078] In the disclosed embodiment, the data entity corresponding to the target file existing on the client is stored on the server. The client pulls the corresponding data entity from the server through an open request of the target file, loads the pulled data entity in a web view container preset on the client, and displays the web view of the loaded data entity to form an online editing document, that is, the displayed web view is a document view that the user can see and edit online on the client. Furthermore, the client responds to the editing instruction for the web view, displays the response result data in the web view, and synchronizes the data entity stored on the server with the response result data, thereby realizing online document editing. Since the editing of the web view is performed on the client, and the corresponding data entity is stored on the server, the client can pull data from the server, and then can comprehensively utilize the server data and local data in the process of document editing, which can better meet the creative demands of the network disk users in the network disk, and enable users to better utilize the data in the network disk for online document editing.
[0079] In a possible implementation, the online document editing method can be applied to a scenario where online notes are added or edited for watching a video. Accordingly, the above-mentioned method of responding to the file creation request and sending the file creation request to the server may include:
[0080] For a video watched by a user, receiving a trigger operation of a preset function in a preset function area of a video playback interface by the user, and generating a file creation request for the watched video;
[0081] 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.
[0082] The preset function area can be at a set position of the video playback interface, such as the left column, the right column, the upper column or the lower column, etc. The preset function area can also be shrunk, hidden when the user clicks to collapse, and displayed when the user clicks to show. The preset functions include adding notes, creating text, etc.
[0083] For example, Figure 5 As shown, the user is watching a video played in the video playback window. When he wants to add notes to the video being watched, he clicks the Add Notes function button or control on the right sidebar. When the client receives the user's trigger operation for the Add Notes function button, it generates a file creation request for the video being watched. In response to the file creation request, the client sends the file creation request containing the user ID and the video ID to the server, so that the server generates the corresponding data entity and target file, and returns the file ID of the target file. In the scenario of adding or editing online notes for watching videos, the target object is the video, and the generation of specific data entities and target files and the subsequent note editing operations are consistent with the above-mentioned online document editing process.
[0084] In the disclosed embodiments, a function of adding video notes is implemented for the videos watched by users. When the user triggers the add note function button, online notes can be added and edited during the video viewing process, which can help users record video notes while watching videos, thus realizing the combination of video functions and document editing functions.
[0085] In a possible implementation, the editing instruction may include at least one of the following: inserting an attachment, modifying content, and AI (Artificial Intelligence) editing.
[0086] The attachment can be inserted into a local file or a network disk file. Figure 6a As shown, the user clicks the insert button ( Figure 6a ), a dialog box appears for the user to select an insertion method. After the user selects an insertion method, the following is displayed: Figure 6b The dialog box for the user to select the file to be inserted is shown. After the user selects to insert the target file, in response to the insert instruction, the response result data is displayed in the web page view, such as Figure 6c As shown in the figure, a video file is inserted and the response result data is sent to the server so that the server can synchronize and update the data entity. After inserting the file, you can also browse or preview the inserted file, such as clicking Figure 6c Click the play button to preview the inserted video.
[0087] Modifying content may include writing content, deleting or modifying written content, etc. AI editing is to realize the AI assisted editing function.
[0088] In the disclosed embodiment, editing instructions include inserting attachments, modifying content, and AI editing, etc., which realize a variety of editing methods for online documents, and can comprehensively utilize server data and local data to better meet the creative demands of network disk users within the network disk, and realize writing and reading at the same time.
[0089] In a possible implementation, when the editing instruction is an AI editing instruction, the step S304 receives the editing instruction for the web page view, responds to the editing instruction, displays the response result data in the web page view, and sends the response result data to the server, including:
[0090] Receive AI editing instructions for the web view, and display a display interface containing multiple AI editing functions; obtain the user's selection instructions for the AI editing function, call the corresponding function interface according to the selection result to obtain and display the AI response data; when receiving the user's instruction to confirm the use of the AI response data, display the AI response data in the web view, and send the AI response data to the server.
[0091] For example, Figure 7a As shown in the figure, after the user edits "Today's weather is great" in the editing interface of the web page view, he clicks the AI editing function button ( Figure 7a ), the client receives the AI editing instruction for the web view and displays a display interface containing multiple AI editing functions.
[0092] Among them, AI editing functions include at least one of the following: writing an outline, brainstorming, polishing, abbreviation, continuation, expansion, and summary.
[0093] In the disclosed embodiments, the AI editing function can help users create documents from scratch, such as helping users write outlines, brainstorming, etc. It can also help users polish, abbreviate, continue, expand and summarize the created content, thereby better assisting users in creation.
[0094] When the user selects a specific AI editing function, the client obtains the user's selection instruction for the AI editing function, and calls the corresponding functional interface according to the selection result to obtain and display the AI response data. Different AI editing functions correspond to different functional interfaces, and the functional interface encapsulates add-on functions to implement the corresponding functional operations.
[0095] For example, Figure 7bAs shown, after the user selects the polishing function, the client calls the corresponding functional interface of the polishing to obtain the AI response data, that is, the sun is shining today and the weather is wonderful, and displays the AI response data.
[0096] Afterwards, the user determines whether to use the AI response data. When the client receives the user's instruction to determine to use the AI response data, it displays the AI response data in the web page view and sends the AI response data to the server.
[0097] Exemplarily, when the user chooses to use the AI response data and determines that the usage method is to insert below, the client receives the user's instruction to use the AI response data and insert below, and displays the AI response data in the web page view, such as Figure 7c shown.
[0098] The disclosed embodiment realizes the AI editing function of online document editing, which can help users create documents from scratch, and can also help users polish, abbreviate, continue, expand and summarize the created content, so as to better assist users in creation.
[0099] In a possible implementation, the AI editing instruction may be a text instruction or a voice instruction; when the AI editing instruction is a voice instruction, the method further includes: performing intent recognition on the voice instruction, and determining the intent recognition result as the AI editing instruction.
[0100] The AI editing instruction can be an instruction manually selected or input by the user, that is, a text instruction, or a voice instruction. 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 the disclosed embodiment, the AI editing instructions may be text instructions or voice instructions, which expands the AI editing function of online document editing and can recognize the intent of voice instructions, thereby better assisting users in their creation.
[0102] In the disclosed embodiment, the client can pull the data entity corresponding to the target file from the server by clicking on the target file, render a web page view of the loaded data entity on the client locally, and perform online document editing through the web page view. Regardless of whether the document is edited, the target file will be displayed locally on the client after the target file is generated. The target file on the client locally does not have a specific data entity, and its corresponding data entity is stored on the server. Furthermore, the disclosed embodiment also provides a method for operating the target file, which can specifically include the following on the basis of the above method:
[0103] 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 operating the target file;
[0104] The receiving server calls the corresponding operation interface based on the operation identifier and returns the result information in response to the operation instruction.
[0105] The client receives the user's operation instruction for the target file and responds to the operation instruction, and sends the operation instruction to the server. The operation instruction contains the operation identifier for the target file, and the operation identifier can be, for example, a copy identifier, a delete identifier, a move identifier, etc. Then, the server calls the corresponding operation interface based on the operation identifier to respond to the operation instruction, and returns the result information of the response to the client, and the client receives the result information returned by the server. The server stores the operation interface corresponding to different operation identifiers, and the operation interface encapsulates the add-in function for implementing the corresponding operation. The result information returned by the server can be, for example, the result information of the operation success or operation failure, and can also be a prompt or instruction information indicating the next operation.
[0106] In the disclosed embodiment, operations on target files stored in the data entity on the server are implemented.
[0107] The operation instructions may include at least one of the following: download, share, transfer, export, print, move, copy, collect, and delete.
[0108] In the disclosed embodiment, diversified operations are implemented on the target file stored by the data entity on the server.
[0109] See also Figure 8 , Figure 8 A flowchart of another online document editing method provided by an embodiment of the present disclosure is applied to a server, and includes the following steps:
[0110] S801, receiving a data acquisition request for a target file sent by a client.
[0111] The data acquisition request includes a user ID and a file ID of a target file.
[0112] S802, determining the data entity corresponding to the target file based on the user identifier and the file identifier, and the corresponding relationship between the user identifier, the file identifier and the data identifier of the data entity.
[0113] The data entity contains multiple log data.
[0114] S803, sending the data entity to the client.
[0115] S804, receiving the response result data sent by the client, and using the response result data to update the data entity corresponding to the target file.
[0116] In the disclosed embodiment, the data entity corresponding to the target file existing in the client is stored in the server. The client pulls the corresponding data entity from the server through the target file opening request, loads the pulled data entity in the web view container preset by the client, and displays the web view loaded with the data entity to form an online editing document. Furthermore, the client sends the response result data corresponding to the editing instruction for the web view to the server, and the server can use the response result data to synchronously update the stored data entity, thereby realizing online document editing. Moreover, because the editing of the web view is performed on the client, and the corresponding data entity is stored on the server, the client pulls data from the server, and can then comprehensively utilize the server data and local data in the process of document editing, which can better meet the creation demands of the network disk users in the network disk, and enable users to better utilize the data in the network disk for online document editing.
[0117] In a possible implementation, the above method further includes:
[0118] Receive a file creation request sent by a client, where the file creation request includes a user identifier;
[0119] Generate a data entity corresponding to the file creation request, and store the data entity in a target database;
[0120] Generate a target file of a preset file type for the data entity, and store the target file in a preset location;
[0121] Assigning data identifiers to data entities and file identifiers to target files, and establishing and storing corresponding relationships among user identifiers, file identifiers, and data identifiers;
[0122] When the data entity and the target file are successfully generated, the file identifier of the target file is returned to the client.
[0123] Also, when the network connection between the client and the server is disconnected or the cloud disk capacity corresponding to the server is insufficient, the server fails to generate the data entity and the target file, and the server returns a creation failure message to the client.
[0124] In the disclosed embodiment, the data entity corresponding to the file creation request is generated on the server side through the interaction between the client and the server side, and a target file displayed on the client side is generated. The target file on the client side can be directly associated with the data entity on the server side to facilitate subsequent online document editing.
[0125] In a possible implementation manner, the receiving a file creation request sent by a client includes: receiving a file creation request for watching a video sent by a client, wherein the file creation request also includes a video identifier;
[0126] Accordingly, establishing and storing a correspondence between the user identifier, the file identifier, and the data identifier, including: establishing and storing a correspondence between the user identifier, the video identifier, the file identifier, and the data identifier;
[0127] The above-mentioned storing the target file to a preset location includes: storing the target file to a storage directory for watching videos.
[0128] In the disclosed embodiment, a function of adding video notes is implemented for the videos watched by users. When the user triggers the add note function button, online notes can be added and edited during the video viewing process, which can help users record video notes while watching videos, and realize the combination of video functions and document editing functions. The target file is stored in the storage directory of the watched video, which facilitates better management of videos and video notes.
[0129] In a possible implementation, the above method further includes:
[0130] Receiving an operation instruction for a target file sent by a client; the operation instruction includes an operation identifier for operating the target file;
[0131] Based on the operation identifier, the corresponding operation interface is called to respond to the operation instruction, and the response result information is returned to the client.
[0132] In the disclosed embodiment, operations on target files stored in the data entity on the server are implemented.
[0133] For example, Fig. 9 As shown, the online document editing method provided by the embodiment of the present disclosure includes:
[0134] S901, the client responds to the file creation request and sends the file creation request to the server.
[0135] The file creation request includes the user ID.
[0136] In the scenario where a user watches a video, for the video the user is watching, the client can also receive the user's trigger operation on a preset function in a preset function area of the video playback interface, and generate a file creation request for the watched video; further, the file creation request sent by the client to the server also includes a 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 a 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 a correspondence between a user identifier, a file identifier, and a data identifier.
[0138] S903: When the server successfully generates the data entity and the target file, the server returns the file identifier of the target file to the client.
[0139] Corresponding to the above-mentioned user watching video 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, a correspondence between the user identifier, video identifier, file identifier and data identifier is established and stored. Storing the target file in a preset location means storing the target file in the storage directory of the watched video.
[0140] S904, the client receives the file identifier of the target file returned by the server.
[0141] S905: In response to the open request for the target file, the client sends a data acquisition request for the target file to the server.
[0142] The data acquisition request includes a user ID and a file ID of a target file.
[0143] S906, the server receives the data acquisition request for the target file sent by the client, and determines the data entity corresponding to 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.
[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 in a preset web view container, and displays the web view of the loaded data entity; receives an editing instruction for the web view, and displays the response result data in the web view in response to the editing instruction.
[0147] The editing instruction includes at least one of the following: inserting attachment, modifying content, and AI editing.
[0148] When the editing instruction is an AI editing instruction, the client receives the AI editing instruction for the web view and 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 according to the selection result to obtain and display the AI response data; upon receiving the user's instruction to confirm the use of the AI response data, the AI response data is displayed in the web view and the AI response data is sent to the server.
[0149] The AI editing instruction is a text instruction or a voice instruction. 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: outlining, brainstorming, polishing, abbreviation, continuation, expansion, and summary.
[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, the client responds to the operation instruction for the target file and sends the operation instruction to the server.
[0154] The operation instruction includes an operation identifier for operating the target file. The operation instruction includes at least one of the following: download, share, transfer, export, print, move, copy, favorite, and delete.
[0155] S912, the server receives the operation instruction for the target file sent by the client, and calls the corresponding operation interface based on the operation identifier to respond to the operation instruction.
[0156] S913, the server returns the response result information to the client.
[0157] S914, the client receives the result information returned by the server after calling the corresponding operation interface in response to the operation instruction based on the operation identifier.
[0158] The embodiment of the present disclosure also provides an online document editing device, which is applied to a client. Fig.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 an open request for the target file;
[0160] The data acquisition module 1002 is used to receive the data entity of the target file returned by the server; the data entity includes multiple log data;
[0161] The data loading module 1003 is used to load the data entity in a preset web page view container and display the web page view of the loaded data entity;
[0162] The online editing module 1004 is used to receive an editing instruction for a web page view, display response result data in the web page view in response to the editing instruction, 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.
[0163] In a possible implementation manner, the above device further includes:
[0164] A second request sending module is used to respond to the file creation request and send the file creation request to the server; the file creation request includes a user identifier;
[0165] The identifier receiving module is used to receive the file identifier of the target file returned when the server successfully generates the data entity.
[0166] In a possible implementation manner, the second request sending module is specifically configured to:
[0167] For a video watched by a user, receiving a trigger operation of a preset function in a preset function area of a video playback interface by the user, and generating a file creation request for the watched video;
[0168] 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.
[0169] In a possible implementation, the editing instruction includes at least one of the following: inserting an attachment, modifying content, and AI editing.
[0170] In a possible implementation manner, when the editing instruction is an AI editing instruction, the online editing module 1004 is specifically used to:
[0171] Receive AI editing instructions for a web page view, and display a display interface including multiple AI editing functions;
[0172] Get the user's selection instructions for the AI editing function, call the corresponding function interface according to the selection result to obtain the AI response data and display it;
[0173] When receiving the user's instruction to confirm the use of AI response data, the AI response data is displayed in the web page view, and the AI response data is sent to the server.
[0174] In one possible implementation, the AI editing instruction is a text instruction or a voice instruction;
[0175] When the AI editing instruction is a voice instruction, the above device further includes:
[0176] The intent recognition module is used to recognize the intent of voice commands and determine the intent recognition results as AI editing commands.
[0177] In a possible implementation, the AI editing function includes at least one of the following: writing an outline, brainstorming, polishing, abbreviation, continuation, expansion, and summary.
[0178] In a possible implementation manner, the above device further includes:
[0179] An instruction sending module, for responding to an operation instruction for a target file, sending the operation instruction to a server; the operation instruction includes an operation identifier for operating the target file;
[0180] The result acquisition module is used to receive the result information returned by the server after calling the corresponding operation interface based on the operation identifier in response to the operation instruction.
[0181] In a possible implementation, the operation instruction includes at least one of the following: download, share, transfer, export, print, move, copy, favorite, and delete.
[0182] The embodiment of the present disclosure also provides an online document editing device, which is applied to a server. Fig.11 ,include:
[0183] The first request receiving module 1101 is used to receive a data acquisition request for a target file sent by a client, where 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 the file identifier, and the corresponding relationship between the user identifier, the file identifier and the data identifier of the data entity; the data entity includes multiple log data;
[0185] The data sending module 1103 is used to send the data entity to the client;
[0186] The data updating module 1104 is used to receive the response result data sent by the client, and use the response result data to update the data entity corresponding to the target file.
[0187] In a possible implementation manner, the above device further includes:
[0188] A second request receiving module, used for receiving a file creation request sent by a client, wherein the file creation request includes a user identifier;
[0189] A first generating module, used to generate a data entity corresponding to the file creation request, and store the data entity in a target database;
[0190] A second generating 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;
[0191] A relationship establishment module, used to assign data identifiers to data entities and file identifiers to target files, and to establish and store corresponding relationships among user identifiers, file identifiers, and data identifiers;
[0192] The identification returning module is used to return the file identification of the target file to the client when the data entity and the target file are successfully generated.
[0193] In a possible implementation manner, the second request receiving module is specifically configured to receive a file creation request for watching a video sent by a client, wherein the file creation request further includes a video identifier;
[0194] A relationship building module, specifically used to establish and store the corresponding relationship between the user identifier, the video identifier, the file identifier and the data identifier;
[0195] The second generating module is specifically used to generate a target file of a preset file type for the data entity, and store the target file in a storage directory for watching videos.
[0196] In a possible implementation manner, the above device further includes:
[0197] The instruction receiving module is used to receive the operation instruction for the target file sent by the client; the operation instruction includes the operation identifier for the operation on 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 an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0200] The present disclosure provides an electronic device, comprising:
[0201] at least one processor; and
[0202] a memory communicatively connected to at least one processor; wherein,
[0203] The memory stores instructions that can be executed by at least one processor. The instructions are executed by at least one processor to enable the at least one processor to perform any method in the present disclosure.
[0204] A non-transitory computer-readable storage medium storing computer instructions is disclosed, wherein the computer instructions are used to enable a computer to execute any method in the present disclosure.
[0205] The present disclosure provides a computer program product, including a computer program, which implements any method in the present disclosure when executed by a processor.
[0206] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0207] Fig.12 A schematic block diagram of an example electronic device 1200 that can be used to implement an embodiment 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 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0208] like Fig.12 As shown, the device 1200 includes a computing unit 1201, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1202 or a computer program loaded from a storage unit 1208 into a random access memory (RAM) 1203. In the RAM 1203, various programs and data required for the operation of the device 1200 can also be stored. The computing unit 1201, the ROM 1202, and the RAM 1203 are connected to each other via a bus 1204. An input / output (I / O) interface 1205 is also connected to the bus 1204.
[0209] A number of components in the device 1200 are connected to the I / O interface 1205, including: an input unit 1206, such as a keyboard, a mouse, etc.; an output unit 1207, such as various types of displays, speakers, etc.; a storage unit 1208, such as a disk, an optical disk, etc.; and a communication unit 1209, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1209 allows the device 1200 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0210] The computing unit 1201 may be a variety of general and / or special 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 dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1201 performs the various methods and processes described above, such as the online document editing method. For example, in some embodiments, the online document editing method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1208. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1200 via the ROM 1202 and / or the communication unit 1209. When the computer program is loaded into the 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 execute the online document editing method in any other appropriate manner (eg, by means of firmware).
[0211] Various implementations 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 chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0212] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0213] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, 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 (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 acoustic input, voice input, or tactile input).
[0215] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0216] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0217] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0218] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. An online document editing method, applied to a client, comprising: In response to an open request for a target file, sending a data acquisition request for the target file to a server; Receive the data entity of the target file returned by the server; the data entity includes multiple log data; Loading the data entity in a preset web page view container, and displaying the web page view in which the data entity is loaded; An editing instruction for the web page view is received, and in response to the editing instruction, the response result data is displayed in the web page view, and the response result data is sent to the server, so that the server updates the data entity of the target file according to the response result data.
2. The method according to claim 1, further comprising: In response to the file creation request, sending the file creation request to the server; The file creation request includes a user identifier; Receive the file identifier of the target file returned when the server successfully generates the data entity.
3. The method according to claim 2, wherein: The step of sending the file creation request to the server in response to the file creation request includes: For a video watched by a user, receiving a trigger operation of a preset function in a preset function area of a video playback interface by the user, and generating a file creation request for the watched video; 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.
4. The method according to any one of claims 1 to 3, wherein: The editing instructions include at least one of the following: inserting attachments, modifying content, and artificial intelligence (AI) editing.
5. The method according to claim 4, wherein: When the editing instruction is an AI editing instruction, receiving the editing instruction for the webpage view, displaying the response result data in the webpage view in response to the editing instruction, and sending the response result data to the server, includes: receiving an AI editing instruction for the webpage view, and displaying a display interface including multiple AI editing functions; Obtain the user's selection instruction for the AI editing function, and call the corresponding function interface according to the selection result to obtain and display the AI response data; When receiving an instruction from the user to determine to use the AI response data, the AI response data is displayed in the web page view, and the AI response data is sent to the server.
6. The method according to claim 5, wherein: The AI editing instruction is a text instruction or a voice instruction; When the AI editing instruction is a voice instruction, the method further includes: Perform intent recognition on the voice command, and determine the intent recognition result as the AI editing command.
7. The method according to claim 5, wherein: The AI editing function includes at least one of the following: writing an outline, brainstorming, polishing, abbreviation, continuation, expansion, and summary.
8. The method according to any one of claims 1 to 7, further comprising: In response to an operation instruction for the target file, sending the operation instruction to the server; The operation instruction includes an operation identifier for operating the target file; Receive result information returned by the server after calling the corresponding operation interface based on the operation identifier in response to the operation instruction.
9. The method according to claim 8, wherein: The operation instruction includes at least one of the following: download, share, transfer, export, print, move, copy, favorite, and delete.
10. An online document editing method, applied to a server, comprising: 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; Determine the data entity corresponding to the target file based on the user identifier and the file identifier, and the corresponding relationship between the user identifier, the file identifier and the data identifier of the data entity; the data entity includes a plurality of log data; Sending the data entity to the client; Receive the response result data sent by the client, and use the response result data to update the data entity corresponding to the target file.
11. The method according to claim 10, further comprising: Receiving a file creation request sent by the client, wherein the file creation request includes a user identifier; Generate a data entity corresponding to the file creation request, and store the data entity in a target database; Generating a target file of a preset file type for the data entity, and storing the target file in a preset location; Allocating a data identifier to the data entity and a file identifier to the target file, and establishing and storing a correspondence between the user identifier, the file identifier and the data identifier; When the data entity and the target file are successfully generated, the file identifier of the target file is returned to the client.
12. The method according to claim 11, wherein: The receiving the file creation request sent by the client comprises: Receiving a file creation request for watching a video sent by the client, wherein the file creation request also includes a video identifier; The establishing and storing the correspondence between the user identifier, the file identifier and the data identifier comprises: establishing and storing the correspondence between the user identifier, the video identifier, the file identifier and the data identifier; The storing the target file to a preset location includes: storing the target file to a storage directory of the video being watched.
13. The method according to any one of claims 10 to 12, further comprising: Receiving an operation instruction for a target file sent by the client; The operation instruction includes an operation identifier for operating the target file; Based on the operation identifier, a corresponding operation interface is called to respond to the operation instruction, and the response result information is returned to the client.
14. An online document editing device, applied to a client, comprising: A first request sending module, configured to send a data acquisition request for a target file to a server in response to an open request for the target file; A data acquisition module, used for receiving the data entity of the target file returned by the server; the data entity includes a plurality of log data; A data loading module, used to load the data entity in a preset web page view container and display the web page view in which the data entity is loaded; The online editing module is used to receive an editing instruction for the web page view, display the response result data in the web page view in response to the editing instruction, 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.
15. An online document editing device, applied to a server, comprising: A first request receiving module, configured to 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; A data determination module, used to determine the data entity corresponding to the target file based on the user identifier and the file identifier, and the corresponding relationship between the user identifier, the file identifier and the data identifier of the data entity; the data entity includes a plurality of log data; A data sending module, used to send the data entity to the client; The data updating module is used to receive the response result data sent by the client, and use the response result data to update the data entity corresponding to the target file.
16. 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, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 13.
17. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 13.
18. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 13.
Citation Information
Patent Citations
File online editing method, apparatus and system
CN105357307A
PDF document online editing method and device and electronic equipment
CN109657220A
Online document editing method and device, equipment and computer storage medium
CN110674619A
Mail processing method and device, electronic equipment and computer readable medium
CN112073307A
Target file processing method and device and terminal equipment
CN113032042A