Online document editing method, device and system

By receiving client operation instructions and configuration data, determining the add-in function, obtaining document data and displaying it to the user for editing, the problem of coupling the document editor and the client in the existing technology is solved, and the native function support and functionality of the document editor are realized. The document customization parameter function improves the flexibility and user experience of document editing.

CN113221515BActive Publication Date: 2024-10-18工银科技有限公司 +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110603054.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-31
Publication Date
2024-10-18
Estimated Expiration
2041-05-31

AI Technical Summary

Technical Problem

The existing online document editor is implemented based on a JavaScript third-party library, which results in the document editor and the client being completely coupled and unable to support the native functions of the document editor and the function of customizing parameters based on the document.

Method used

By receiving the client's operation instructions and configuration data, determining the add-in function, obtaining the document data and displaying it to the user for editing, it supports the complete independence of the document editor and the client, realizes real-time communication and authentication between the document editor and the server, and ensures document editing. The device can perform function control based on document customization parameters.

Benefits of technology

It has realized the native function support of the document editor, and the document editor is completely independent from the client. It can control functions according to the document customization parameters, which improves the flexibility and user experience of document editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113221515B_ABST
    Figure CN113221515B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides an online document editing method, device and system, which can be used in the field of artificial intelligence technology. The method includes: receiving an operation instruction sent by a client, the operation instruction including document attributes and configuration data; determining an add-in function corresponding to the configuration data according to the configuration data; obtaining document data according to the document attributes; displaying the document data according to the executed add-in function so that a user can edit the document data, supporting the native functions of a document editor, realizing complete independence between the document editor and the client, and realizing the function of customizing parameters according to the document.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of document editing technology, in particular to the field of artificial intelligence technology, and more particularly to an online document editing method, device and system. Background Art

[0002] With the rapid development of computer technology, online document editors have emerged to facilitate document editing and sharing. Common document editors include WPS, wiki, Youdao Cloud Notes, etc. However, online document editing is currently implemented based on a third-party JavaScript library. This method relies on the browser and does not support native functions of the document editor, such as revision traces. The document editor is completely coupled with the client, and cannot implement the function of customizing parameters based on the document. Summary of the invention

[0003] One object of the present invention is to provide an online document editing method, which can support the native functions of a document editor, realize the complete independence between the document editor and the client, and realize the function of customizing parameters according to the document. Another object of the present invention is to provide an online document editing system. Another object of the present invention is to provide an online document editing device. Another object of the present invention is to provide a client. Another object of the present invention is to provide a server. Another object of the present invention is to provide a computer-readable medium. Another object of the present invention is to provide a computer device.

[0004] In order to achieve the above objectives, the present invention discloses an online document editing method, comprising:

[0005] Receiving an operation instruction sent by a client, wherein the operation instruction includes document attributes and configuration data;

[0006] According to the configuration data, determining an add-in function corresponding to the configuration data;

[0007] According to the document attributes, obtaining document data;

[0008] The document data is displayed according to the executed add-in function, so that the user can edit the document data.

[0009] Preferably, the document attributes include a document path and a document name;

[0010] The step of acquiring document data according to the document attribute includes:

[0011] Obtain document data from the server according to the document path and document name.

[0012] Preferably, determining the add-in function corresponding to the configuration data according to the configuration data includes:

[0013] If the configuration data includes encrypted data, determining an encryption function corresponding to the encrypted data according to the encrypted data;

[0014] If the configuration data includes watermark data, a watermark function corresponding to the watermark data is determined according to the watermark data.

[0015] Preferably, after displaying the document data according to the executed add-in function so that the user can edit the document data, the method further comprises:

[0016] receiving a save instruction sent by the client, wherein the save instruction includes a user token;

[0017] Send the user token to the server, so that the server can save and authenticate the user token and generate an authentication result;

[0018] Receiving the authentication result sent by the server;

[0019] If the authentication result is authentication passed, the edited document data is sent to the server through a specified communication protocol, so that the server can save the edited document data to a database and generate a saving result.

[0020] Preferably, it also includes:

[0021] The saved result is sent to the client so that the client can display the saved result.

[0022] Preferably, it also includes:

[0023] If the authentication result is an authentication failure, an authentication failure message is sent to the client, so that the client can display the authentication failure message.

[0024] The present invention also discloses a client, which is used for receiving a functional operation input by a user; generating an operation instruction according to the functional operation, the operation instruction including document attributes and configuration data; and sending the configuration data and the document attributes to a document editor.

[0025] The present invention also discloses a server, which is used to query the document data corresponding to the document attribute according to the document attribute sent by the document editor and send the document data to the document editor, so that the document editor displays the document data according to the executed add-in function, so that the user can edit the document data. The document attribute is carried in the operation instruction sent by the client to the document editor, and the operation instruction includes the document attribute and configuration data. The add-in function is determined according to the configuration data sent by the client.

[0026] Preferably, it is also used to receive a user token sent by a document editor, perform save authentication according to the user token and generate an authentication result; send the authentication result to the document editor; if the authentication result is authentication passed, receive the edited document data sent by the document editor through a specified communication protocol; save the edited document data to a database and generate a save result; send the save result to the document editor, so that the document editor can send the save result to the client, so that the client can display the save result.

[0027] The present invention also discloses an online document editing system, which includes a client, a document editor and a server; the client is connected to the document editor for communication, and the document editor is connected to the server for communication;

[0028] The client is used to receive a function operation input by a user; generate an operation instruction according to the function operation, the operation instruction including document attributes and configuration data; and send the configuration data and the document attributes to the document editor;

[0029] The document editor is used to receive an operation instruction sent by a client, the operation instruction including document attributes and configuration data; determine an add-on function corresponding to the configuration data according to the configuration data; obtain document data according to the document attributes; and display the document data according to the executed add-on function so that the user can edit the document data;

[0030] The server is used to query the document data corresponding to the document attribute sent by the document editor and send the document data to the document editor, so that the document editor displays the document data according to the executed add-in function, so that the user can edit the document data. The document attribute is carried in the operation instruction sent by the client to the document editor, and the operation instruction includes the document attribute and configuration data. The add-in function is determined according to the configuration data sent by the client.

[0031] The present invention also discloses an online document editing device, comprising:

[0032] A receiving unit, configured to receive an operation instruction sent by a client, wherein the operation instruction includes document attributes and configuration data;

[0033] A determination unit, configured to determine, based on the configuration data, an add-on function corresponding to the configuration data;

[0034] An acquisition unit, used for acquiring document data according to the document attribute;

[0035] A display unit is used to display the document data according to the executed add-in function, so that the user can edit the document data.

[0036] The present invention also discloses a computer readable medium having a computer program stored thereon.

[0037] When the program is executed by a processor, the method described above is implemented.

[0038] The present invention also discloses a computer device, including a memory and a processor, wherein the memory is used to store information including program instructions, the processor is used to control the execution of program instructions, and the processor implements the above method when executing the program.

[0039] The present invention receives an operation instruction sent by a client, wherein the operation instruction includes document attributes and configuration data; determines an add-in function corresponding to the configuration data according to the configuration data; obtains document data according to the document attributes; and displays the document data according to the executed add-in function, so that a user can edit the document data, support the native functions of a document editor, realize complete independence between the document editor and the client, and realize the function of customizing parameters according to the document. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 A schematic diagram of the structure of an online document editing system provided by an embodiment of the present invention;

[0042] Figure 2 A flowchart of an online document editing method provided by an embodiment of the present invention;

[0043] Figure 3 A flowchart of another online document editing method provided by an embodiment of the present invention;

[0044] Figure 4 A logical interaction diagram of an online document editing device provided by an embodiment of the present invention;

[0045] Figure 5 A schematic diagram of the structure of an online document editing device provided by an embodiment of the present invention;

[0046] Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] It should be noted that the online document editing method and device disclosed in the present application can be used in the field of artificial intelligence technology, and can also be used in any field other than the field of artificial intelligence technology. The application field of the online document editing method and device disclosed in the present application is not limited.

[0049] In order to facilitate the understanding of the technical solution provided by the present application, the relevant contents of the technical solution of the present application are first described below. Since the related art mostly uses a third-party library based on JavaScript to implement online document editing, different documents can only use the same document editing library at the same editing trigger source, and the document editor and the client are completely coupled. The present invention completely decouples the document editor and the client. The document editor, as an independent execution subject, can also implement business logic control through JavaScript without relying on the browser. It is worth noting that in the present invention, the document editor does not need to rely on the browser, which means that there is no need to consider whether the browser supports the document editor's plug-in or application programming interface (Application Programming Interface, referred to as: API) and other basic environmental issues. The present invention takes WPS as an example of a document editor, and through the WPS add-in function, realizes completely independent communication between the document editor and the server, as well as real-time communication between the client and the document editor, ensuring that the client can monitor the operation on the document editing end in real time and realize operation visualization.

[0050] Figure 1 A schematic diagram of the structure of an online document editing system provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the system includes a client 100, a document editor 200 and a server 300. The client 100 is connected to the document editor 200 for communication, and the document editor 200 is connected to the server 300 for communication.

[0051] The client 100 is used to receive a functional operation input by a user; generate an operation instruction according to the functional operation, the operation instruction including document attributes and configuration data; and send the configuration data and document attributes to the document editor 200 .

[0052] The document editor 200 is used to receive operation instructions sent by the client 100, the operation instructions including document properties and configuration data; determine the add-in function corresponding to the configuration data according to the configuration data; obtain document data according to the document properties; display the document data according to the executed add-in function, so that the user can edit the document data.

[0053] The server 300 is used to query the document data corresponding to the document attributes according to the document attributes sent by the document editor 200 and send the document data to the document editor 200, so that the document editor 200 displays the document data according to the executed add-in function, allowing the user to edit the document data. The document attributes are carried in the operation instructions sent by the client 100 to the document editor 200. The operation instructions include the document attributes and configuration data. The add-in function is determined based on the configuration data sent by the client 100.

[0054] The server 300 is also used to receive the user token sent by the document editor 200, perform save authentication based on the user token and generate an authentication result; send the authentication result to the document editor; if the authentication result is authentication passed, receive the edited document data sent by the document editor 200 through the specified communication protocol; save the edited document data to the database and generate a save result; send the save result to the document editor 200, so that the document editor can send the save result to the client 100, so that the client 100 can display the save result.

[0055] In the technical solution provided by the embodiment of the present invention, an operation instruction sent by a client is received, and the operation instruction includes document attributes and configuration data; based on the configuration data, an add-in function corresponding to the configuration data is determined; based on the document attributes, document data is obtained; the document data is displayed according to the executed add-in function, so that the user can edit the document data, and the native functions of the document editor can be supported, and the document editor and the client can be completely independent, and the function of customizing parameters according to the document can be realized.

[0056] It is worth mentioning that Figure 1 The online document editing system shown is also applicable to Figure 2 or Figure 3 The online document editing method is not described here.

[0057] The following takes a document editor as an example to illustrate the implementation process of the online document editing method provided by the embodiment of the present invention. It is understandable that the execution subject of the online document editing method provided by the embodiment of the present invention includes but is not limited to a document editor.

[0058] Figure 2 A flowchart of an online document editing method provided by an embodiment of the present invention, such as Figure 2 As shown, the method includes:

[0059] Step 101: Receive an operation instruction sent by a client, where the operation instruction includes document attributes and configuration data.

[0060] In the embodiment of the present invention, the document attributes include the document path and the document name.

[0061] Step 102: According to the configuration data, determine the add-in function corresponding to the configuration data.

[0062] Specifically, if the configuration data includes encryption data, an encryption function corresponding to the encryption data is determined according to the encryption data; if the configuration data includes watermarking data, a watermarking function corresponding to the watermarking data is determined according to the watermarking data.

[0063] Step 103: Obtain document data according to document attributes.

[0064] Specifically, the document attributes include a document path and a document name; according to the document path and the document name, the document data is obtained from the server.

[0065] Step 104: Display the document data according to the executed add-in function, so that the user can edit the document data.

[0066] In the technical solution provided by the embodiment of the present invention, an operation instruction sent by a client is received, and the operation instruction includes document attributes and configuration data; based on the configuration data, an add-in function corresponding to the configuration data is determined; based on the document attributes, document data is obtained; the document data is displayed according to the executed add-in function, so that the user can edit the document data, and the native functions of the document editor can be supported, and the document editor and the client can be completely independent, and the function of customizing parameters according to the document can be realized.

[0067] Figure 3 A flowchart of another online document editing method provided by an embodiment of the present invention is as follows: Figure 3 As shown, the method includes:

[0068] Step 201: Receive an operation instruction sent by a client, where the operation instruction includes document attributes and configuration data.

[0069] In the embodiment of the present invention, each step is executed by a document editor.

[0070] In the embodiment of the present invention, the client provides a user operation platform, and the user enters a specified operation by clicking a specified function button through the client, and the client generates an operation instruction according to the specified operation. The operation instruction includes document attributes and configuration data, wherein the document attributes include a document path and a document name. The configuration data can be a parameter of a string type, for example: if the user wants to open the document in read-only mode and the document needs to be watermarked, the configuration data is read-only data and watermarking data.

[0071] Step 202: Determine the add-in function corresponding to the configuration data according to the configuration data.

[0072] In the embodiment of the present invention, the configuration data has a corresponding add-in function, and the configuration of the corresponding function is implemented for the document by specifying the add-in function.

[0073] Specifically, if the configuration data includes encryption data, an encryption function corresponding to the encryption data is determined according to the encryption data to implement document encryption; if the configuration data includes watermarking data, a watermarking function corresponding to the watermarking data is determined according to the watermarking data to implement document watermarking. It is understandable that the configuration data is not limited to encryption data and watermarking data, but may also include a variety of other functional data, such as read-only data. The embodiments of the present invention are only exemplified by encryption data and watermarking data, and are not limited thereto.

[0074] In the embodiment of the present invention, the document editor provides the client with function control and authority control over itself through the add-in function provided by itself.

[0075] Step 203: Obtain document data according to document attributes.

[0076] In the embodiment of the present invention, the document attributes include the document path and the document name. Specifically, the document data is obtained from the server according to the document path and the document name, that is, the document data is queried from the server according to the document path and the document name. The transmission of the document data between the server and the document processing end is streaming transmission, for example, the format of the document data is a binary stream.

[0077] As an optional solution, the document data may be obtained in other ways, for example, by obtaining the document data locally through the document path and document name. The embodiment of the present invention does not limit the way to obtain the document data.

[0078] Step 204: Display the document data according to the executed add-in function, so that the user can edit the document data.

[0079] For example, if the executed add-in function is a watermarking function, the document editor will add a watermark to the acquired document data and display the watermarked document data, so that the user can further edit the document data according to the user's needs.

[0080] In the embodiment of the present invention, the independent document editor can realize the native function of document editing, and can also provide interaction between the client and the server, thereby realizing the transformation from traditional static document editing to dynamic document online editing.

[0081] Step 205: Receive a save instruction sent by the client, where the save instruction includes a user token.

[0082] In the embodiment of the present invention, when the user completes editing, the client clicks the save button to input the save operation; the client generates a save instruction according to the save operation input by the user, and the save instruction includes a user token. The user token can uniquely identify a user identity, and the user token includes but is not limited to one of an identification code, a device number, and a physical address (mac address).

[0083] Step 206: Send the user token to the server, so that the server can save the authentication and generate the authentication result according to the user token.

[0084] In an embodiment of the present invention, the document editor can send the user token to the server through a specified communication protocol; the server internally stores the save permission corresponding to the user token, and the save permission includes yes or no. If the save permission is yes, it indicates that the user corresponding to the user token has the save permission, that is, the document data can be saved; if the save permission is no, it indicates that the user corresponding to the user token does not have the save permission, that is, the document data cannot be saved. The server performs save authentication based on the user token, that is, determines whether the user corresponding to the user token has the save permission. If the user has the save permission, an authentication result of authentication passing is generated; if the user does not have the save permission, an authentication result of authentication failure is generated. Among them, the specified communication protocol includes but is not limited to the http protocol or the https protocol.

[0085] Step 207, receiving the authentication result sent by the server, if the authentication result is authentication passed, execute step 208; if the authentication result is authentication failed, execute step 209.

[0086] In the embodiment of the present invention, the authentication result includes authentication passed or authentication failed. If the authentication result is authentication passed, it indicates that the user has the save permission, and step 208 is continued; if the authentication result is authentication failed, it indicates that the user does not have the save permission, and step 209 is continued.

[0087] Step 208: Send the edited document data to the server through a specified communication protocol, so that the server can save the edited document data to a database and generate a saving result.

[0088] In the embodiment of the present invention, the specified communication protocol includes but is not limited to the http protocol or the https protocol.

[0089] In the embodiment of the present invention, the server has a database, and if the user has the save permission, the edited document data is sent to the server; the server saves the edited document data to the database and generates a save result, wherein the save result includes a save success or a save failure.

[0090] Furthermore, the saving result is sent to the client so that the client can display the saving result and prompt the user whether the saving is successful or failed through the saving result.

[0091] Furthermore, the saved result may also include the edited document data, and the saved document data may be visually displayed.

[0092] Step 209: Send the authentication failure message to the client, so that the client can display the authentication failure message.

[0093] In an embodiment of the present invention, if the user does not have the permission to save, an authentication failure message is generated and sent to the client; the client visually displays the authentication failure message to remind the client that the authentication failed. The authentication failure message may be "You do not have the permission to save".

[0094] In the technical solution of the online document editing method provided by the embodiment of the present invention, an operation instruction sent by a client is received, and the operation instruction includes document attributes and configuration data; based on the configuration data, an add-in function corresponding to the configuration data is determined; based on the document attributes, document data is obtained; the document data is displayed according to the executed add-in function, so that the user can edit the document data, and the native functions of the document editor can be supported, and the document editor and the client can be completely independent, and the function of customizing parameters according to the document can be realized.

[0095] Figure 4 A logical interaction diagram of an online document editing device provided by an embodiment of the present invention, such as Figure 4As shown, if the user clicks the function button, the element event is triggered through JavaScript, and the element event includes configuration data. According to the configuration data, the add-in function corresponding to the configuration data is determined from the function set, and the function set includes registered function name, event handle and registered communication listener; the registered communication listener provides the document editor with the document editor listening process, and the event handle provides a trigger interface for the client to control the document editor. The function processing entrance of the add-in is entered through the event handle, and the corresponding add-in function is matched from the document processing function set. The functions of the document processing function set include a set of control functions for the document such as creating a new document and opening a document; the add-in is initialized and configured by executing the add-in function, and the add-in stores the document data of the selected document. The add-in is pre-configured with a configuration file during development, and the configuration file includes the configuration of the button, namely: button visible configuration and button available configuration; the configuration file can also customize the configuration operation button, and the user can trigger the communication between the document processing end and the server end or the communication between the document processing end and the client end by clicking the operation button. Among them, the communication between the document processing end and the server end is initiated to the server end through an asynchronous request, and the communication between the document processing end and the client end is used to register the communication listener by sending a communication message to start the listening process of the document editor. The document processing end initializes JavaScript events through the configuration file, including initializing element events and JavaScript parameters, and allowing the add-on to store the initialized parameters. The document processing end also sets a timer through the configuration file, and the timer is used to periodically save relevant data to the server.

[0096] Figure 5 A schematic diagram of the structure of an online document editing device provided by an embodiment of the present invention, wherein the device is used to execute the above-mentioned online document editing method, such as Figure 5 As shown, the device includes: a receiving unit 11, a determining unit 12, an acquiring unit 13 and a displaying unit 14.

[0097] The receiving unit 11 is used to receive an operation instruction sent by a client, where the operation instruction includes document attributes and configuration data.

[0098] The determination unit 12 is used to determine the add-on function corresponding to the configuration data according to the configuration data.

[0099] The acquisition unit 13 is used to acquire document data according to the document attributes.

[0100] The display unit 14 is used to display the document data according to the executed add-in function, so that the user can edit the document data.

[0101] In the embodiment of the present invention, the acquisition unit 13 is specifically configured to acquire document data from the server according to the document path and the document name.

[0102] In the embodiment of the present invention, the determination unit 12 is specifically used to determine the encryption function corresponding to the encrypted data according to the encrypted data if the configuration data includes encrypted data; if the configuration data includes watermark data, determine the watermark function corresponding to the watermark data according to the watermark data.

[0103] In the embodiment of the present invention, the device includes a sending unit 15 .

[0104] The receiving unit 11 is further used to receive a save instruction sent by the client, wherein the save instruction includes a user token; and receive the authentication result sent by the server.

[0105] The sending unit 15 is used to send the user token to the server, so that the server can save the authentication according to the user token and generate an authentication result; if the authentication result is that the authentication is passed, the edited document data is sent to the server through the specified communication protocol, so that the server can save the edited document data to the database and generate a saving result.

[0106] In the embodiment of the present invention, the display unit 14 is further configured to send the saved result to the client, so that the client can display the saved result.

[0107] In the embodiment of the present invention, the sending unit 15 is further configured to send an authentication failure message to the client if the authentication result is authentication failure, so that the client can display the authentication failure message.

[0108] In the scheme of the embodiment of the present invention, an operation instruction sent by a client is received, the operation instruction includes document attributes and configuration data; based on the configuration data, an add-in function corresponding to the configuration data is determined; based on the document attributes, document data is obtained; the document data is displayed according to the executed add-in function, so that a user can edit the document data, the native functions of the document editor can be supported, the document editor and the client are completely independent, and the function of customizing parameters according to the document can be realized.

[0109] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer device, and specifically, the computer device may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0110] An embodiment of the present invention provides a computer device, including a memory and a processor, the memory is used to store information including program instructions, the processor is used to control the execution of the program instructions, and when the program instructions are loaded and executed by the processor, the steps of the embodiment of the above-mentioned online document editing method are implemented. For a specific description, please refer to the embodiment of the above-mentioned online document editing method.

[0111] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer device 600 suitable for implementing an embodiment of the present application.

[0112] like Figure 6 As shown, the computer device 600 includes a central processing unit (CPU) 601, which can perform various appropriate operations and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 to a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0113] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal feedback device (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 606 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed as needed as the storage section 608.

[0114] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 609, and / or installed from the removable medium 611.

[0115] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0116] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0117] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0118] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0119] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0120] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0121] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0122] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0123] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0124] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. An online document editing method, characterized in that: The method comprises: Receiving an operation instruction sent by a client, wherein the operation instruction includes document attributes and configuration data; According to the configuration data, determining an add-in function corresponding to the configuration data; According to the document attributes, obtaining document data; Displaying the document data according to the executed add-in function, so that the user can edit the document data; After displaying the document data according to the executed add-in function so that the user can edit the document data, the method further includes: receiving a save instruction sent by the client, wherein the save instruction includes a user token; Send the user token to the server, so that the server can save and authenticate the user token and generate an authentication result; Receiving the authentication result sent by the server; If the authentication result is authentication passed, the edited document data is sent to the server through a specified communication protocol, so that the server can save the edited document data to a database and generate a saving result.

2. The online document editing method according to claim 1, characterized in that: The document attributes include document path and document name; The step of acquiring document data according to the document attribute includes: Obtain document data from the server according to the document path and document name.

3. The online document editing method according to claim 1, characterized in that: The step of determining, based on the configuration data, an add-on function corresponding to the configuration data comprises: If the configuration data includes encrypted data, determining an encryption function corresponding to the encrypted data according to the encrypted data; If the configuration data includes watermark data, a watermark function corresponding to the watermark data is determined according to the watermark data.

4. The online document editing method according to claim 1, characterized in that: Also includes: The saved result is sent to the client so that the client can display the saved result.

5. The online document editing method according to claim 1, characterized in that: Also includes: If the authentication result is an authentication failure, an authentication failure message is sent to the client, so that the client can display the authentication failure message.

6. A client, characterized in that: Used to receive a functional operation input by a user; generate an operation instruction according to the functional operation, the operation instruction including document attributes and configuration data; send the configuration data and the document attributes to a document editor; It is also used to send a save instruction to the document editor, wherein the save instruction includes a user token, so that the document editor sends the user token to the server, so that the server performs save authentication according to the user token and generates an authentication result; The document editor receives the authentication result sent by the server; If the authentication result is that the authentication is passed, the document editor sends the edited document data to the server through a specified communication protocol, so that the server can save the edited document data to a database and generate a saving result.

7. A server, characterized in that: for querying, according to a document attribute sent by a document editor, document data corresponding to the document attribute and sending the document data to the document editor, so that the document editor displays the document data according to the executed add-in function, so that a user can edit the document data, wherein the document attribute is carried in an operation instruction sent by a client to the document editor, the operation instruction includes the document attribute and configuration data, and the add-in function is determined according to the configuration data sent by the client; It is also used to receive a user token sent by a document editor, perform storage authentication and generate an authentication result according to the user token; and send the authentication result to the document editor; If the authentication result is authentication passed, receiving the edited document data sent by the document editor through a specified communication protocol; The edited document data is saved to a database, and a saving result is generated; the saving result is sent to the document editor, so that the document editor sends the saving result to a client, so that the client displays the saving result.

8. An online document editing system, characterized in that: The system includes a client, a document editor and a server; the client is connected to the document editor for communication, and the document editor is connected to the server for communication; The client is used to receive a function operation input by a user; generate an operation instruction according to the function operation, the operation instruction including document attributes and configuration data; and send the configuration data and the document attributes to the document editor; The document editor is used to receive an operation instruction sent by a client, the operation instruction including document attributes and configuration data; determine an add-on function corresponding to the configuration data according to the configuration data; obtain document data according to the document attributes; and display the document data according to the executed add-on function so that the user can edit the document data; The server is used to query the document data corresponding to the document attribute according to the document attribute sent by the document editor and send the document data to the document editor, so that the document editor displays the document data according to the executed add-in function, so that the user can edit the document data, the document attribute is carried in the operation instruction sent by the client to the document editor, the operation instruction includes the document attribute and configuration data, and the add-in function is determined according to the configuration data sent by the client; The document editor is further configured to receive a save instruction sent by the client, the save instruction including a user token; send the user token to the server; receive an authentication result sent by the server; if the authentication result is authentication passed, send the edited document data to the server via a specified communication protocol; The server is also used to save the authentication according to the user token and generate an authentication result; and send the authentication result to the document editor;If the authentication result is authentication passed, receiving the edited document data sent by the document editor through a specified communication protocol; The edited document data is saved to a database, and a saving result is generated; the saving result is sent to the document editor, so that the document editor sends the saving result to a client, so that the client displays the saving result.

9. An online document editing device, characterized in that: The device comprises: A receiving unit, configured to receive an operation instruction sent by a client, wherein the operation instruction includes document attributes and configuration data; A determination unit, configured to determine, based on the configuration data, an add-on function corresponding to the configuration data; An acquisition unit, used for acquiring document data according to the document attribute; A display unit, used for displaying the document data according to the executed add-in function, so that the user can edit the document data; The device also includes: The receiving unit is further configured to receive a save instruction sent by the client, wherein the save instruction includes a user token; and receive an authentication result sent by the server; A sending unit is used to send the user token to the server, so that the server can save the authentication according to the user token and generate an authentication result; if the authentication result is that the authentication is passed, the edited document data is sent to the server through a specified communication protocol, so that the server can save the edited document data to a database and generate a saving result.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the online document editing method according to any one of claims 1 to 5 is implemented.

11. A computer device comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, characterized in that: When the program instructions are loaded and executed by the processor, the online document editing method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Implementation method and device for document format application and electronic equipment

    CN110532521A

  • Online document storage method and related device

    CN111027289A