CN-119623432-B - Online document editing method and device, electronic equipment, storage medium and product
Abstract
The disclosure provides an online document editing method, an online document editing device, electronic equipment, a storage medium and a product, and relates to the technical field of computers, in particular to the technical fields of document processing, document editing, artificial intelligence and the like. The method comprises the steps that a client side responds to an opening request for a target file, sends a data acquisition request for the target file to a server side, receives a data entity of the target file returned by the server side, wherein the data entity comprises a plurality of log data, loads the data entity in a preset webpage view container and displays a webpage view for loading the data entity, receives an editing instruction for the webpage view, responds to the editing instruction, displays response result data in the webpage view, and sends the response result data to the server side, so that the server side updates the data entity of the target file according to the response result data, and online document editing is achieved.
Inventors
- ZOU HONGTAO
Assignees
- 北京百度网讯科技有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20241209
Claims (16)
- 1. An online document editing method applied to a client, comprising the following steps: Responding to a file creation request, and sending the file creation request to a server; the file identification of the target file is returned under the conditions that the server side successfully generates a data entity corresponding to the file creation request, stores the data entity in a target database, generates a target file with a preset file type for the data entity and stores the target file to a preset position; Responding to an opening request for a target file, and sending a data acquisition request for the target file to a server; Receiving a data entity of the target file returned by the server, wherein the data entity comprises a plurality of log data; loading the data entity in a preset webpage view container, and displaying the webpage view loaded with the data entity to form an online editing document; receiving an editing instruction aiming at 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 side so that the server side updates the data entity of the target file according to the response result data.
- 2. The method of claim 1, wherein the sending the file creation request to the server in response to the file creation request comprises: Receiving triggering operation of a user on a preset function in a preset function area of a video playing interface aiming at a video watched by the user, and generating a file creation request aiming at the watched video; And responding to the file creation request, and sending the file creation request to the server, wherein the file creation request also comprises a video identifier.
- 3. The method of claim 1, wherein the editing instructions comprise at least one of inserting attachments, modifying content, and artificial intelligence AI editing.
- 4. The method of claim 3, wherein when the edit instruction is an AI edit instruction, the receiving an edit instruction for the web page view, displaying response result data in the web page view in response to the edit instruction, and transmitting the response result data to the server, comprises: Receiving an AI editing instruction aiming at the webpage view, and displaying a display interface comprising a plurality of AI editing functions; Acquiring a selection instruction of a user for the AI editing function, calling a corresponding function interface according to a selection result to acquire AI response data and displaying the AI response data; and when receiving an instruction of determining to use the AI response data by a user, displaying the AI response data in the webpage view, and sending the AI response data to the server.
- 5. The method of claim 4, wherein the AI edit instruction is a text instruction or a voice instruction; when the AI edit instruction is a voice instruction, the method further includes: and carrying out intention recognition on the voice command, and determining an intention recognition result as an AI editing command.
- 6. The method of claim 4, wherein the AI edit function includes at least one of write outline, brain storm, color, abbreviation, renewal, expansion, summarization.
- 7. The method of any of claims 1-6, further comprising: The method comprises the steps of responding to an operation instruction aiming at a target file, and sending the operation instruction to a server side, wherein the operation instruction comprises an operation identifier for operating the target file; And receiving result information returned after the server calls the corresponding operation interface to respond to the operation instruction based on the operation identifier.
- 8. The method of claim 7, wherein the operational instructions include at least one of downloading, sharing, spool, export, printing, moving, copying, collecting, deleting.
- 9. An online document editing method applied to a server side comprises the following steps: Receiving a file creation request sent by a client, wherein the file creation request comprises a user identifier; Generating a data entity corresponding to the file creation request, and storing 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 to a preset position; Distributing a data identifier for the data entity and a file identifier for the target file, and establishing and storing a corresponding relation among the user identifier, the file identifier and the data identifier; Returning a file identifier of the target file to the client under the condition that the data entity and the target file are successfully generated; Receiving a data acquisition request for a target file sent by a client, wherein the data acquisition request comprises a user identifier and a file identifier of the target file; determining a data entity corresponding to the target file based on the user identification, the file identification and the corresponding relation among the user identification, the file identification and the data identification of the data entity, wherein the data entity comprises a plurality of 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 a webpage view loaded with the data entity to form an online editing document, responds to an editing instruction aiming at the webpage view, displays response result data in the webpage view, and sends the response result data to the server; And receiving response result data sent by the client, and updating a data entity corresponding to the target file by using the response result data.
- 10. The method of claim 9, wherein the receiving the file creation request sent by the client comprises: receiving a file creation request for watching video sent by the client, wherein the file creation request also comprises a video identifier; The establishing and storing the corresponding relation among the user identification, the file identification and the data identification comprises establishing and storing the corresponding relation among the user identification, the video identification, the file identification and the data identification; storing the target file to a preset position comprises the step of storing the target file to a storage directory of the watching video.
- 11. The method of any of claims 9-10, further comprising: Receiving an operation instruction aiming at a target file sent by the client, wherein the operation instruction comprises an operation identifier aiming at the target file; And calling a corresponding operation interface to respond to the operation instruction based on the operation identifier, and returning the response result information to the client.
- 12. An online document editing apparatus, applied to a client, comprising: the second request sending module is used for responding to the file creation request and sending the file creation request to the server; The device comprises an identifier receiving module, an identifier receiving module and a target file processing module, wherein the identifier receiving module is used for receiving a file identifier of a target file returned by the server, wherein the file identifier of the target file is returned under the conditions that the server successfully generates a data entity corresponding to the file creation request, 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 position; the first request sending module is used for responding to an opening request for a target file and sending a data acquisition request for the target file to a server; The data acquisition module is used for receiving a data entity of the target file returned by the server, wherein the data entity comprises a plurality of log data; The data loading module is used for loading the data entity in a preset webpage view container and displaying the webpage view loaded with the data entity to form an online editing document; And the online editing module is used for receiving an editing instruction aiming at 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 so that the server can update the data entity of the target file according to the response result data.
- 13. An online document editing apparatus applied to a server side, comprising: the second request receiving module is used for receiving a file creation request sent by the client, wherein the file creation request comprises a user identifier; The first generation module is used for generating a data entity corresponding to the file creation request and storing the data entity in a target database; the second generation module is used for generating a target file with a preset file type for the data entity and storing the target file to a preset position; the relation establishing module is used for distributing data identifiers for the data entities and distributing file identifiers for the target files, and establishing and storing the corresponding relation among the user identifiers, the file identifiers and the data identifiers; the identification returning module is used for returning the file identification of the target file to the client under the condition that the data entity and the target file are successfully generated; the first request receiving module is used for receiving a data acquisition request for a target file sent by a client, wherein the data acquisition request comprises a user identifier and a file identifier of the target file; the data determining module is used for determining the data entity corresponding to the target file based on the user identification, the file identification and the corresponding relation among the user identification, the file identification and the data identification of the data entity, wherein the data entity comprises a plurality of log data; The data sending module is used for sending the data entity to the client so that the client loads the data entity in a preset webpage view container and displays a webpage view loaded with the data entity to form an online editing document, responding to an editing instruction aiming at the webpage view, displaying response result data in the webpage view and sending the response result data to the server; And the data updating module is used for receiving the response result data sent by the client and updating the data entity corresponding to the target file by utilizing the response result data.
- 14. An electronic device, comprising: At least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores instructions executable 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 for causing the computer to perform the method of any one of claims 1-11.
- 16. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1-11.
Description
Online document editing method and device, electronic equipment, storage medium and product Technical Field The disclosure relates to the technical field of computers, in particular to the technical fields of document processing, document editing, artificial intelligence and the like, and particularly relates to an online document editing method, device, electronic equipment, storage medium and product. Background With the rapid development of computer technology, online document editing has been developed in order to facilitate document editing and sharing. Online document editing may be implemented using an online editing function that is native to the application, using a third party application, or downloading the document to a local editor. Disclosure of Invention The present disclosure provides an online document editing method, an online document editing device, an electronic device, a storage medium and a product. According to an aspect of the present disclosure, there is provided an online document editing method, applied to a client, including: Responding to an opening request for a target file, and sending a data acquisition request for the target file to a server; Receiving a data entity of the target file returned by the server, wherein the data entity comprises a plurality of log data; Loading the data entity in a preset webpage view container and displaying a webpage view loaded with the data entity; And receiving an editing instruction aiming at 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 so that the server updates the data entity of the target file according to the response result data. According to another aspect of the present disclosure, there is provided an online document editing method, applied to a server, including: Receiving a data acquisition request for a target file sent by a client, wherein the data acquisition request comprises a user identifier and a file identifier of the target file; determining a data entity corresponding to the target file based on the user identification, the file identification and the corresponding relation among the user identification, the file identification and the data identification of the data entity, wherein the data entity comprises a plurality of log data; sending the data entity to the client; And receiving response result data sent by the client, and updating a data entity corresponding to the target file by using the response result data. According to another aspect of the present disclosure, there is provided an online document editing apparatus, applied to a client, including: the first request sending module is used for responding to an opening request for a target file and sending a data acquisition request for the target file to a server; The data acquisition module is used for receiving a data entity of the target file returned by the server, wherein the data entity comprises a plurality of log data; the data loading module is used for loading the data entity in a preset webpage view container and displaying a webpage view for loading the data entity; And the online editing module is used for receiving an editing instruction aiming at 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 so that the server can update the data entity of the target file according to the response result data. According to another aspect of the present disclosure, there is provided an online document editing apparatus applied to a server, including: the first request receiving module is used for receiving a data acquisition request for a target file sent by a client, wherein the data acquisition request comprises a user identifier and a file identifier of the target file; the data determining module is used for determining the data entity corresponding to the target file based on the user identification, the file identification and the corresponding relation among the user identification, the file identification and the data identification of the data entity, wherein the data entity comprises a plurality of log data; The data sending module is used for sending the data entity to the client; And the data updating module is used for receiving the response result data sent by the client and updating the data entity corresponding to the target file by utilizing the response result data. According to another aspect of the present disclosure, there is provided an electronic device including: At least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the preceding claims. According to another aspect of the present disclosure, there is provided a non-