CN111930367B - Data processing method, device and equipment - Google Patents

Data processing method, device and equipment Download PDF

Info

Publication number
CN111930367B
CN111930367B CN201910400230.XA CN201910400230A CN111930367B CN 111930367 B CN111930367 B CN 111930367B CN 201910400230 A CN201910400230 A CN 201910400230A CN 111930367 B CN111930367 B CN 111930367B
Authority
CN
China
Prior art keywords
editor
data
editing
communication server
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910400230.XA
Other languages
Chinese (zh)
Other versions
CN111930367A (en
Inventor
叶青楠
晏兵兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910400230.XA priority Critical patent/CN111930367B/en
Publication of CN111930367A publication Critical patent/CN111930367A/en
Application granted granted Critical
Publication of CN111930367B publication Critical patent/CN111930367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a data processing method, a device and equipment, wherein the method comprises the following steps: the first editor establishes communication connection with the second editor through a preset local communication server; and the first editor and the second editor carry out data transmission through the local communication server so as to realize data collaboration between the first editor and the second editor. The first editor establishes communication connection with the second editor through a preset local communication server; the first editor performs data transmission with the second editor through the local communication server, so that a user can perform code editing operation through the first editor or the second editor, the comprehensiveness of editing functions is guaranteed, data collaboration between the first editor and the second editor is realized, the stability and efficiency of editing operation are improved, and the use requirement of the user can be met.

Description

Data processing method, device and equipment
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method, an apparatus, and a device for processing data.
Background
The code editor refers to a software program for editing a code program, which can display a source program stored in a computer, and then can perform operations such as adding, deleting, replacing, and linking of codes through the code editor according to user's needs. In order to improve the convenience of code editing and use, in the prior art, a code editor is also provided in an online development environment, and a user can directly perform editing operation of a code program through the online code editor.
In practical application, since the online code editor runs in the environment of the browser, the code editor only has some basic editing operations and realizes some basic functions. However, compared to the local code editor, it cannot reach the editing operation and the implemented functions of the local professional code editor, and therefore, cannot meet the user's use requirement, and reduces the efficiency of editing the code, thereby affecting the user's good experience of editing the code.
Disclosure of Invention
The embodiment of the invention provides a data processing method, a device and equipment, which can realize the data collaboration between an online code editor and a local code editor, ensure the efficiency of editing codes, meet the use requirement of users, and further improve the good experience of the users on the code editing.
In a first aspect, an embodiment of the present invention provides a method for processing data, including:
the first editor establishes communication connection with the second editor through a preset local communication server;
and the first editor performs data transmission with the second editor through the local communication server so as to realize data processing between the first editor and the second editor.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including:
the communication module is used for establishing communication connection with the second editor through a preset local communication server;
and the processing module is used for carrying out data transmission with the second editor through the local communication server so as to realize data cooperation between the first editor and the second editor.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement a method of processing data as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium storing a computer program, where the computer program makes a computer execute a method for processing data according to the first aspect.
The first editor establishes communication connection with the second editor through a preset local communication server; the first editor performs data transmission with the second editor through the local communication server, so that a user can perform code editing operation through the first editor or the second editor, the comprehensiveness of editing functions is guaranteed, data collaboration between the first editor and the second editor is realized, the stability and efficiency of editing operation are improved, the use requirement of the user can be met, the practicability of the method is effectively improved, and market popularization and application are facilitated.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a data processing method according to an embodiment of the present invention;
fig. 2 is a flowchart of data transmission between the first editor and the second editor through the local communication server according to an embodiment of the present invention;
FIG. 3 is a flowchart of another method for processing data according to an embodiment of the present invention;
FIG. 4 is a flowchart of another method for processing data according to an embodiment of the present invention;
fig. 5 is a flowchart of a first editor establishing communication connection with a second editor through a preset local communication server according to an embodiment of the present invention;
FIG. 6 is a flowchart of a method for processing data according to an embodiment of the present invention;
FIG. 7a is a flowchart illustrating a method for processing data according to an embodiment of the present invention;
FIG. 7b is a second flowchart of a method for processing data according to an embodiment of the present invention;
FIG. 7c is a flowchart III of a method for processing data according to an embodiment of the present invention;
FIG. 7d is a flowchart of a method for processing data according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device corresponding to the data processing apparatus provided in the embodiment shown in fig. 8.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plurality" generally includes at least two, but does not exclude the case of at least one.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or system comprising such elements.
In addition, the sequence of steps in the method embodiments described below is only an example and is not strictly limited.
In order to facilitate understanding of the technical solution of the present embodiment, the following description will briefly explain the prior art:
in the prior art, an online code editor provided on line can only realize some basic editing operations due to the limitation of online development environments, and compared with a local editor, the online code editor has the defects that the functions are not comprehensive enough, the editing requirements of users cannot be met, and the experience of the local editor cannot be achieved. If the editing code in the online editor is transmitted to the local, then the code is edited by the local editor, a plurality of steps are needed, and then the edited data is uploaded to the online editor to check the corresponding editing effect, so that the cooperative requirement of the local editor and the online editor cannot be met.
FIG. 1 is a flow chart of a data processing method according to an embodiment of the present invention; in order to overcome the above-mentioned drawbacks, the present embodiment provides a data processing method, where the main execution body of the data processing method is a first editor, and it is understood that the first editor may refer to a local editor, or the first editor may refer to an online editor, and specifically, the first editor may be implemented as software, or a combination of software and hardware. Specifically, the method may include:
s101: the first editor establishes communication connection with the second editor through a preset local communication server.
Wherein the first editor may comprise a local editor, and wherein the second editor may comprise an online editor; alternatively, the first editor comprises an online editor and the second editor comprises a local editor; the first editor may establish a communication connection with the second editor via a local communication server, i.e. a communication connection of the local editor with an online editor may be achieved via the local communication server. In addition, the specific type of the local communication server is not limited in this embodiment, and those skilled in the art may set any configuration according to the function implemented by the local communication server, for example: the local communication server may comprise a local web socket server that may be expressed in the form of an editor plug-in or otherwise. For the local web socket server, when the communication connection between the local editor and the online editor is implemented through the local web socket server, the following information needs to be known: the communication connection between the local editor and the online editor can be realized through the local network socket server through the information.
Specifically, when the first editor includes a local editor and the second editor includes an online editor, the embodiment is not limited to a specific implementation manner of establishing communication connection between the first editor and the second editor through a preset local communication server, and a person skilled in the art may set the communication connection between the first editor and the second editor through a preset local communication server, and preferably, referring to fig. 5, the establishing communication connection between the first editor and the second editor through the preset local communication server may include:
s1011: the first editor receives a communication connection request sent by the second editor through the local communication server.
When the first editor is a local editor and the second editor is an online editor, since the IP address of the online editor may change according to the online environment, in order to ensure the stability of establishing a communication connection between the first editor and the second editor, the second editor may send a communication connection request to the first editor, and specifically, one way may be achieved is that: the second editor may obtain an operation instruction input by the user, and send a communication connection request to the first editor through the local communication server according to the operation instruction. Alternatively, yet another way of achieving this is: the second editor can send a communication connection request to the first editor according to a preset period and through a local communication server; therefore, the first editor can receive the communication connection request sent by the second editor through the local communication server, and the communication connection request can comprise the IP address of the second editor and the protocol port of the second editor.
S1012: the first editor establishes communication connection with the second editor via the local communication server in accordance with the communication connection request.
After the first editor receives the communication connection request, a communication connection can be established with the second editor according to the communication connection request and through the local communication server, and it is understood that the communication connection at this time is a bidirectional connection, that is, the first editor can send data to the second editor through the local communication server, and the second editor can also send data to the first editor through the local communication server.
S102: the first editor and the second editor carry out data transmission through the local communication server so as to realize data coordination between the first editor and the second editor.
After the first editor establishes a communication connection with the second editor through the local communication server, the first editor may perform data transmission with the second editor through the local communication server, for example: the first editor can send data to the second editor through the local communication server, or the first editor can receive the data sent by the second editor through the local communication server, and the like, so that the data collaborative operation between the first editor and the second editor is effectively realized, the efficiency of editing the code data is ensured, the use requirement of a user is met, and the good experience of the user on the code editing is further improved.
According to the data processing method provided by the embodiment, the first editor establishes communication connection with the second editor through the preset local communication server; the first editor performs data transmission with the second editor through the local communication server, so that a user can perform code editing operation through the first editor or the second editor, the comprehensiveness of the editing function is guaranteed, the data collaboration between the first editor and the second editor is realized, the stability and the efficiency of the editing operation are improved, the use requirement of the user can be met, the practicability of the method is effectively improved, and the popularization and the application of the market are facilitated.
FIG. 2 is a flowchart showing a first editor transmitting data to a second editor through a local communication server according to an embodiment of the present invention; on the basis of the foregoing embodiment, with continued reference to fig. 2, the specific implementation manner of the data transmission between the first editor and the second editor through the local communication server in this embodiment is not limited, and those skilled in the art may set the data transmission according to specific design requirements and application requirements, where, in one implementation manner, the data transmission between the first editor and the second editor may include:
s1021: first editing data in a first editor is acquired.
The first editing data may refer to encoded data (original data) located in the first editor, and specifically, when a user inputs the code data through the first editor, the code data in the first editor may be identified, so that the first editing data may be obtained.
S1022: the first editor transmits the first edit data to the second editor via the local communication server.
After the first editing data is acquired, the first editor can send the first editing data to the second editor through the local communication server, so that the second editor can synchronously acquire code data input by a user in the first editor, and data cooperation between the first editor and the second editor is realized.
Optionally, after the first editor sends the first editing data to the second editor through the local communication server, referring to fig. 3, the method in this embodiment may further include:
s201: the first editor receives second edit data sent by the second editor according to the first edit data through the local communication server.
After the second editor obtains the first editing data, the user may edit the first editing data through the second editor according to the requirement, for example: the user can add, delete, modify or replace the first editing data through the second editor, so as to obtain second editing data, wherein the second editing data is the data obtained after the user edits the first editing data through the second editor.
After the user processes the first editing data through the second editor to obtain the second editing data, in order to ensure that the first editor cooperates with the data of the second editor, the second editor may send the second editing data to the first editor through the local communication server, so that the first editor may receive and obtain the second editing data.
S202: the first editor performs a merging process on the second edit data and the first edit data.
After the first editor obtains the second editing data, the second editing data and the first editing data may be combined, and specifically, the combining, by the first editor, of the second editing data and the first editing data in this embodiment may include:
s2021: the first editor performs partial update or total update on the first editing data according to the second editing data.
After the second editor receives the first editing data, and performs editing processing on the first editing data, when the second editing data is obtained, in order to achieve data collaboration between the first editor and the second editor, the second editor can send the second editing data to the first editor through a local communication server, and after the first editor receives the second editing data, the first editing data can be partially updated or completely updated according to the second editing data, so that data collaborative operation of the first editor and the second editor is effectively ensured, and the stability and reliability of the method are further improved.
Optionally, for data transmission, the data transmission between the first editor and the second editor through the local communication server in this embodiment may include:
s1023: the first editor receives third edit data sent by the second editor through the local communication server, the third edit data including code data in the second editor.
When the user inputs code information through the second editor, the second editor may recognize and acquire third editing data in the second editor, which may refer to encoded data (original data) located in the second editor, and specifically, when the user inputs code data through the second editor, the second editor may recognize the code data, so that the third editing data may be acquired.
After the third editor is identified, the second editor can send the third editing data to the first editor through the local communication server, so that the first editor can receive the third editing data sent by the second editor through the local communication server, the data collaborative operation between the first editor and the second editor is effectively realized, and the stable reliability of the application of the method is ensured.
Optionally, after the first editor receives the third edit data sent by the second editor through the local communication server, referring to fig. 4, the method in this embodiment may further include:
s301: and editing the third editing data to obtain fourth editing data.
After the first editor obtains the third editing data, the user may edit the third editing data through the first editor according to the requirement, for example: and performing addition, deletion, modification or replacement operation on the third editing data to obtain fourth editing data, wherein the fourth editing data is the data obtained after the user edits the third editing data through the first editor.
After the user processes the third editing data through the first editor, the fourth editing data can be obtained, in order to ensure that the first editor cooperates with the data of the second editor, the first editor can send the fourth editing data to the second editor through the local communication server, so that the second editor can receive and obtain the fourth editing data.
S302: and sending the fourth editing data to the second editor through the local communication server so that the second editor performs combination processing on the fourth editing data and the third editing data.
After the second editor obtains the fourth editing data, the third editing data and the fourth editing data may be combined, and specifically, the combining, by the second editor, of the third editing data and the fourth editing data in this embodiment may include:
s3021: the second editor updates the third edit data partially or fully according to the fourth edit data.
After the first editor receives the third editing data, the first editor can edit the third editing data to obtain fourth editing data, and in order to realize the data cooperation between the first editor and the second editor, the first editor can send the fourth editing data to the second editor through a local communication server, and after the second editor receives the fourth editing data, the second editor can update part or all of the third editing data according to the fourth editing data, so that the data cooperation operation of the first editor and the second editor is effectively ensured, and the stability and reliability of the method are further improved.
FIG. 6 is a flowchart of a method for processing data according to an embodiment of the present invention; on the basis of the above embodiment, with continued reference to fig. 6, when the first editor includes an online editor and the second editor includes a local editor, the method in this embodiment may further include:
s401: editing data in a first editor is identified.
S402: and generating an editing result according to the editing data, and displaying the editing result.
Specifically, the editing data may be real-time data in the first editor, for example, when the first editor is an online editor, the editing data may refer to editing data input by a user through the online editor, or the editing data may also refer to editing data sent by a local editor received by the online editor, or the editing data may also refer to data after the online editor performs a merging process on the modified data and the original data sent by the local editor. After the editing data in the first editor is identified, the editing data can be analyzed and processed, so that an editing result can be obtained, and the editing result can be displayed for facilitating a user to check whether the editing result is correct or not.
By identifying the editing data in the first editor, generating an editing result according to the editing data and displaying the editing result, a user can intuitively and rapidly know whether the editing result corresponding to the editing data meets the requirement, and if the editing result does not meet the requirement, the editing data can be updated or adjusted in real time, so that the convenience and reliability of the method are further improved.
In a specific application, referring to fig. 7a-7d, this application embodiment provides a data processing method, where the execution processing of the method may be a local editor or an online editor, and specifically, the method is described by taking the local editor as an execution body, and the method may include the following steps:
step1: the local editor (e.g., visual Studio Code, abbreviated as VS code) is opened and then a local communication server websocket server, which may have an IP address of 127.0.0.1, is created in an editor plug-in or some way, which may establish a connection with the local editor through a first specific port (e.g., 9998) of the local editor.
Opening an online editor in a browser to edit an item, establishing websocket connection with the online editor through a second specific port of the online editor, wherein the address can be ws:// localhost:9998, so that bidirectional connection between the online editor and a local editor is established, and referring to fig. 7a, the websocket server can monitor working states of the first specific port and the second specific port.
step2: referring to fig. 7b, the user inputs original editing data in the online editor, and at this time, the online editor may also display an editing result corresponding to the original editing data. Then, the original editing data is transmitted to the local editor through the websocket server, and the functions of the local editor are comprehensive, for example: the method can execute the functions of self-defined editing, highlighting, code reminding and the like, thereby enhancing editing experience.
step3: referring to fig. 7c, after the local editor receives the original editing data, the original editing data can be edited and modified according to the requirement, the modified editing data is transmitted to the browser in real time through the websocket server, the modified editing data is merged into the online editor after being received by the browser, and a new editing result can be generated and displayed based on the merged result, so that the operation of refreshing the preview effect of the editing result is realized, and the effect of simultaneous editing and real-time cooperation of the online editor and the data of the local editor is realized.
step4: referring to fig. 7d after fig. 7a, the user may input the original editing data into the local editor, and then transmit the original editing data to the online editor through the websocket server, where the online editor may display an editing result corresponding to the original editing data.
And then, the user can edit and modify the original editing data through the online editor according to the requirement, and at the moment, the online editor can also generate and display a new editing result based on the modified editing data, so that the operation of refreshing the preview effect of the editing result is realized. In addition, the online editor can also transmit the modified editing data to the local editor in real time through the websocket server, and the local editor can combine the modified editing data with the original editing data, so that the effects of simultaneous editing and real-time collaboration of the online editor and the local editor are achieved.
According to the data processing method provided by the application embodiment, the data cooperation between the local editor and the online editor is realized through the pre-established local communication server, so that the comprehensiveness of the editing function is guaranteed, the realization process is free from the data resource of the remote server, the realization cost is effectively reduced, in addition, compared with the remote server, the local communication server is small in delay of data transmission and negligible, the efficiency of data cooperation is effectively guaranteed, the efficiency of editing codes is further improved, the use requirement of a user is met, the practicability of the method is effectively improved, and market popularization and application are facilitated.
FIG. 8 is a schematic diagram of a data processing apparatus according to an embodiment of the present invention; referring to fig. 8, this embodiment provides a data processing apparatus, which may specifically be a first editor, and may execute the data processing method corresponding to fig. 1. Specifically, the processing device may include:
the communication module 11 is configured to establish a communication connection with the second editor through a preset local communication server;
and the processing module 12 is used for carrying out data transmission with the second editor through the local communication server so as to realize data coordination between the first editor and the second editor.
Wherein the first editor comprises a local editor and the second editor comprises an online editor; alternatively, the first editor comprises an online editor and the second editor comprises a local editor.
Optionally, the local communication server comprises a local web socket server, the local web socket server being expressed in the form of an editor plug-in.
Optionally, when the processing module 12 performs data transmission with the second editor through the local communication server, the processing module 12 is configured to perform: acquiring first editing data in a first editor; the first edit data is sent to the second editor via the local communication server.
Optionally, after the first editor sends the first edit data to the second editor through the local communication server, the processing module 12 in this embodiment may be further configured to perform: receiving second editing data sent by a second editor according to the first editing data through a local communication server; and combining the second editing data and the first editing data.
Alternatively, when the processing module 12 performs the merging processing on the second editing data and the first editing data, the processing module 12 may be configured to perform: and carrying out partial update or total update on the first editing data according to the second editing data.
Alternatively, in the case where the processing module 12 performs data transmission with the second editor through the local communication server, the processing module 12 may be configured to perform: and receiving third editing data sent by the second editor through the local communication server, wherein the third editing data comprises code data in the second editor.
Optionally, after the first editor receives the third edit data sent by the second editor through the local communication server, the processing module 12 in this embodiment may be further configured to perform: editing the third editing data to obtain fourth editing data; and sending the fourth editing data to the second editor through the local communication server so that the second editor performs combination processing on the fourth editing data and the third editing data.
Alternatively, when the first editor comprises a local editor and the second editor comprises an online editor, and when the communication module 11 establishes a communication connection with the second editor through a preset local communication server, the communication module 11 may be specifically configured to perform: receiving a communication connection request sent by a second editor through a local communication server; and establishing communication connection with the second editor through the local communication server according to the communication connection request.
Alternatively, when the first editor comprises an online editor and the second editor comprises a local editor, the processing module 12 in this embodiment may be further configured to perform: identifying edit data in a first editor; and generating an editing result according to the editing data, and displaying the editing result.
The apparatus of fig. 8 may perform the method of the embodiment of fig. 1-7 d, and reference is made to the relevant description of the embodiment of fig. 1-7 d for parts of this embodiment not described in detail. The implementation process and the technical effect of this technical solution are described in the embodiments shown in fig. 1 to 7d, and are not described herein.
In one possible design, the structure of the data processing apparatus shown in fig. 8 may be implemented as an electronic device, which may be a mobile phone, a tablet computer, a server, or other devices. As shown in fig. 9, the electronic device may include: a processor 21 and a memory 22. Wherein the memory 22 is for storing a program for supporting the electronic device to execute the processing method of the data provided in the embodiments shown in fig. 1-7 d described above, the processor 21 is configured for executing the program stored in the memory 22.
The program comprises one or more computer instructions, wherein the one or more computer instructions, when executed by the processor 21, are capable of performing the steps of:
establishing communication connection with a second editor through a preset local communication server;
and carrying out data transmission with the second editor through the local communication server so as to realize data collaboration between the first editor and the second editor.
Optionally, the processor 21 is further configured to perform all or part of the steps in the embodiments shown in fig. 1-7 d.
The electronic device may further include a communication interface 23 in its structure for communicating with other devices or with a communication network.
In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions for an electronic device, where the computer storage medium includes a program for executing the method of processing data in the method embodiment shown in fig. 1 to fig. 7 d.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by adding necessary general purpose hardware platforms, or may be implemented by a combination of hardware and software. Based on such understanding, the foregoing aspects, in essence and portions contributing to the art, may be embodied in the form of a computer program product, which may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer 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 disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (11)

1. A method of processing data, comprising:
the first editor establishes communication connection with the second editor through a preset local communication server;
the first editor performs data transmission with the second editor through the local communication server to realize data collaboration between the first editor and the second editor, wherein the first editor comprises a local editor and the second editor comprises an online editor; alternatively, the first editor comprises an online editor and the second editor comprises a local editor.
2. The method of claim 1, wherein the local communication server comprises a local web socket server that is expressed in the form of an editor plug-in.
3. The method of claim 1, wherein the first editor communicates data with the second editor via the local communication server, comprising:
acquiring first editing data in the first editor;
the first editor sends the first edit data to the second editor via the local communication server.
4. A method according to claim 3, wherein after a first editor transmits the first edit data to the second editor via the local communication server, the method further comprises:
the first editor receives second editing data sent by the second editor according to the first editing data through the local communication server;
and the first editor performs combination processing on the second editing data and the first editing data.
5. The method of claim 4, wherein the first editor performs a merge process on the second edit data and the first edit data, comprising:
and the first editor performs partial update or total update on the first editing data according to the second editing data.
6. The method of claim 1, wherein the first editor communicates data with the second editor via the local communication server, comprising:
the first editor receives third editing data sent by the second editor through the local communication server, wherein the third editing data comprises code data in the second editor.
7. The method of claim 6, wherein after the first editor receives the third edit data sent by the second editor via the local communication server, the method further comprises:
editing the third editing data to obtain fourth editing data;
and sending the fourth editing data to the second editor through the local communication server so that the second editor performs combination processing on the fourth editing data and the third editing data.
8. The method of any of claims 1-7, wherein when the first editor comprises a local editor and the second editor comprises an online editor, the first editor establishes a communication connection with the second editor through a preset local communication server, comprising:
the first editor receives a communication connection request sent by the second editor through a local communication server;
and the first editor establishes communication connection with the second editor according to the communication connection request and through the local communication server.
9. The method of any of claims 1-7, wherein when the first editor comprises an online editor and the second editor comprises a local editor, the method further comprises:
identifying edit data in the first editor;
and generating an editing result according to the editing data, and displaying the editing result.
10. A data processing apparatus, comprising:
the communication module is used for establishing communication connection with the second editor through a preset local communication server;
the processing module is used for carrying out data transmission with the second editor through the local communication server so as to realize data collaboration between a first editor and the second editor, wherein the first editor comprises a local editor, and the second editor comprises an online editor; alternatively, the first editor comprises an online editor and the second editor comprises a local editor.
11. An electronic device, comprising: a memory, a processor; wherein the memory is configured to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method of processing data according to any one of claims 1 to 9.
CN201910400230.XA 2019-05-13 2019-05-13 Data processing method, device and equipment Active CN111930367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910400230.XA CN111930367B (en) 2019-05-13 2019-05-13 Data processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910400230.XA CN111930367B (en) 2019-05-13 2019-05-13 Data processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN111930367A CN111930367A (en) 2020-11-13
CN111930367B true CN111930367B (en) 2024-04-16

Family

ID=73282636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910400230.XA Active CN111930367B (en) 2019-05-13 2019-05-13 Data processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN111930367B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615586A (en) * 2015-01-21 2015-05-13 上海理工大学 Real-time cooperative editing system
CN107179952A (en) * 2016-03-11 2017-09-19 思杰系统有限公司 Collaboration Input Method Editor (IME) activity between virtual application client and server
CN107301197A (en) * 2017-05-12 2017-10-27 上海瀚银信息技术有限公司 A kind of business datum tracking processing system and method
CN109710909A (en) * 2018-12-29 2019-05-03 腾讯科技(深圳)有限公司 Content acquisition method, device, terminal and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9864973B2 (en) * 2012-04-12 2018-01-09 Avid Technology, Inc. Methods and systems for collaborative media creation
US10713370B2 (en) * 2017-06-24 2020-07-14 Seclore Technology Private Limited Information rights management through editors implemented in a browser

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104615586A (en) * 2015-01-21 2015-05-13 上海理工大学 Real-time cooperative editing system
CN107179952A (en) * 2016-03-11 2017-09-19 思杰系统有限公司 Collaboration Input Method Editor (IME) activity between virtual application client and server
CN107301197A (en) * 2017-05-12 2017-10-27 上海瀚银信息技术有限公司 A kind of business datum tracking processing system and method
CN109710909A (en) * 2018-12-29 2019-05-03 腾讯科技(深圳)有限公司 Content acquisition method, device, terminal and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
利用Java实现基于Web的同步协同编辑器;陈岭, 陈挺, 陈根才;计算机工程(04);全文 *
基于WebService的WebGis设计与实现;马保国;李华刚;王连锋;;计算机与数字工程(04);全文 *

Also Published As

Publication number Publication date
CN111930367A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
US10564920B2 (en) Dynamic server-side image sizing for fidelity improvements
CN105282013A (en) Item message notification method, device and system
US11677697B2 (en) Smart attachment of cloud-based files to communications
CN104660635A (en) Message synchronizing method, device and system
US10120542B2 (en) Reproducing state of source environment when image was screen captured on a different computing device using resource location, resource navigation and positional metadata embedded in image
US20220385612A1 (en) Mail processing method and apparatus, electronic device and storage medium
CN112073307B (en) Mail processing method, mail processing device, electronic equipment and computer readable medium
CN104780137A (en) Data processing method, device, client, server and system
CN114500432A (en) Session message transceiving method and device, electronic equipment and readable storage medium
KR102040999B1 (en) Linking web extension and content contextually
EP2916495A1 (en) Information processing system, an information processing apparatus and a medium storing an information processing program
CN110889263A (en) Document backlog generation method, device, equipment and storage medium
CN110647827A (en) Comment information processing method and device, electronic equipment and storage medium
CN105556549A (en) Integrating customer relationship management information to communication sessions
CN114371888A (en) Method and device for hot updating of log collection plug-in, electronic equipment and readable medium
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN114153362A (en) Information processing method and device
CN111930367B (en) Data processing method, device and equipment
CN110659006A (en) Cross-screen display method and device, electronic equipment and readable storage medium
CN105162817A (en) Method and apparatus for image upload
KR101900969B1 (en) Real-time media optimization over remoted sessions
CN111385599A (en) Video processing method and device
CN112016280B (en) File editing method and device and computer readable medium
CN114500651A (en) Block chain data transmission method, device and equipment and readable storage medium
CN104516883A (en) Webpage sharing method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant