Document editing method, device, equipment and medium
By implementing the collaborative editing function in the instant messaging application, the problem of poor experience of collaborative editing of documents in the instant messaging session scenario is solved, and an efficient and intuitive collaborative editing experience is achieved.
Patent Information
- Application Number
- CN202010715912.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-23
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2040-07-23
AI Technical Summary
In the prior art, multiple people collaboratively edit documents have problems such as frequent application switching, poor collaborative editing experience, and unintuitive document updates and reviews in real-time communication session scenarios.
Implement the collaborative editing function in the instant messaging application. By displaying the collaborative editing portal in the session page, users can edit documents and collaborate in real time without leaving the instant messaging application. Document content is updated in real time in the document editing window and displayed as a message in the session page.
The collaborative editing process is simplified, document editing efficiency and collaborative editing experience are improved, and document content is enhanced intuition and user experience.
Smart Images

Figure CN113971392B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, specifically to the field of document editing, and in particular to a document editing method, a document editing apparatus, a document editing device, and a computer-readable storage medium. Background Art
[0002] In the instant messaging session scenario, there is often a need for multiple people to collaboratively edit documents. In the prior art, collaborative document editing by multiple people is mainly achieved with the help of collaborative document editing tools (such as Tencent Docs, DingTalk Docs, Google Docs, etc.). At present, collaborative document editing tools generally refer to independent collaborative document applications, which are independent of the instant messaging session scenario; the collaborative document application supports the creation of a document that can be edited by multiple people, and the document can be shared in the instant messaging session scenario in the form of a link address or a sharing card that displays a title; but practice has found that the collaborative document editing solution in the above-mentioned prior art has some defects. First, it relies on an independent collaborative document editing tool to be implemented, and the collaborative document editing tool is independent of the instant messaging session scenario, which makes the collaborative editing process in the instant messaging session scenario require frequent switching of applications, the collaborative editing experience is poor, and the editing efficiency is low; secondly, the update and review of document content depends on the user's active access to the collaborative document editing tool to achieve, the collaborative progress is not intuitive enough, and the user experience is poor. Summary of the invention
[0003] The embodiments of the present application disclose a document editing method, apparatus, device and medium, which can realize collaborative editing of documents by multiple people in an instant messaging session scenario, improve document editing efficiency, ensure the intuitiveness of the collaborative editing process, and enhance the collaborative editing experience.
[0004] On the one hand, an embodiment of the present application provides a document editing method, comprising:
[0005] Displaying a conversation page between N users in an instant messaging application, wherein the conversation page includes a collaborative editing entry; N is an integer greater than 1;
[0006] When the collaborative editing portal is selected, a document editing window of the target document is displayed in the instant messaging application;
[0007] Displaying in real time in the document editing window of the target document the document content generated by M users among N users co-editing the target document; M is a positive integer and M≤N; and,
[0008] Display document content as a message in the conversation page.
[0009] On the other hand, an embodiment of the present application provides a document editing device, including:
[0010] A display unit, used to display a conversation page between N users in an instant messaging application, wherein the conversation page includes a collaborative editing entry; N is an integer greater than 1;
[0011] A processing unit is used to display a document editing window of a target document in an instant messaging application when a collaborative editing entry is selected; to display in real time in the document editing window of the target document the document content generated by collaborative editing of the target document by M users out of N users; M is a positive integer and M≤N; and to display the document content in the form of a message in a conversation page.
[0012] In one implementation, the conversation page includes a message display area, which is used to display the instant communication message stream between N users; the instant communication message stream includes a collaborative document message sent by any user among the N users after editing the target document; the collaborative editing entry is set in the collaborative document message; when the collaborative document message is selected, the collaborative editing entry is selected.
[0013] In another implementation, the conversation page includes a message display area, which displays a collaborative editing prompt, and the collaborative editing prompt is used to prompt the number of users who are performing collaborative editing among M users; the collaborative editing entrance is set in the collaborative editing prompt, and when the collaborative editing prompt is selected, the collaborative editing entrance is selected.
[0014] In another implementation, the conversation page includes a message input area, in which the user inputs a timed communication message; the message input area includes an input box, and when the input box is triggered, an option bar is displayed in the conversation page, and the collaborative editing entrance is set in the option bar.
[0015] In another implementation, the document editing window of the target document is located in a document editing page, and the document editing page and the conversation page are two different pages in the instant messaging application; or,
[0016] The document editing window belongs to the session page, and is displayed in the session page as a floating layer.
[0017] In another implementation, the conversation page includes a message display area, and the message display area is used to display the instant messaging message stream between N users; the processing unit is specifically used to:
[0018] Displaying the document content in the message display area through a collaborative document message, the collaborative document message being included in the instant messaging message stream; or,
[0019] The document content is displayed through a notification message outside the message display area.
[0020] In another implementation, the processing unit is further configured to:
[0021] If the length of the document content exceeds the length threshold, the document content is folded and displayed in the collaborative document message and the notification message; and a folding mark is set in the collaborative document message and the notification message;
[0022] When the collapse mark is selected, the document content is fully displayed in the collaborative document message or notification message.
[0023] In this technical solution, if the length of the document content exceeds the length threshold (for example, the document content is too long so that the conversation page cannot display the entire document content), the document content is folded and displayed in the collaborative document message and notification message; when the folding mark is selected, the document content is fully displayed in the collaborative document message or notification message. This can beautify the page and improve the user experience.
[0024] In another implementation, the document content includes target content, which is any content in the document content; the target document also includes annotations added to the target content; and the processing unit is specifically configured to:
[0025] Display comments in the conversation page;
[0026] Wherein, when the annotation is displayed, the target content is highlighted; the highlighting includes: displaying the target content as a target color or displaying the target content as a target brightness.
[0027] In another implementation, the annotation includes the number of annotated users; and the processing unit is specifically configured to:
[0028] The number of annotated users is displayed at the location where the target content is displayed on the conversation page.
[0029] In another implementation, the annotation includes annotation information; and the processing unit is specifically configured to:
[0030] The annotation information is displayed at the display position of the target content in the conversation page; or, the annotation information is displayed in the annotation window in the conversation page.
[0031] In another implementation, the conversation page includes an annotation window, and the annotation window is used to display P annotations added by M users to the document content, where P is a positive integer;
[0032] The P annotations are collectively displayed in the annotation window, or the P annotations are classified and displayed in the annotation window.
[0033] On the other hand, an embodiment of the present application provides a document editing device, including:
[0034] a processor adapted to execute a computer program;
[0035] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the document editing method as described above is implemented.
[0036] On the other hand, an embodiment of the present application provides another computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the document editing method as described above is implemented.
[0037] In the embodiment of the present application, firstly, a conversation page between N users displayed in an instant messaging application contains a collaborative editing entry, and any user among the N users can trigger collaborative editing of a target document among the N users by selecting the collaborative editing entry, and such a triggering method is relatively simple and convenient; secondly, when the collaborative editing entry in the conversation page is selected, a document editing window of the target document is displayed in the instant messaging application, and the document content generated by collaborative editing of the target document by M users among the N users is displayed in real time in the document editing window of the target document; since the document editing window of the target document is provided by the instant messaging application, that is to say, the collaborative document editing process in the instant messaging conversation scenario does not require switching and jumping of the application, which simplifies the process of collaborative editing of documents and can effectively improve the efficiency of collaborative editing; in addition, the document content generated by collaborative editing in the document editing window will be displayed in the form of a message in the conversation page, so that the document content can be intuitively displayed in the conversation page without the user's active access, which is convenient for users to check the document content and enables users to obtain information such as the progress and completion of collaborative editing in a timely manner, thereby improving the intuitiveness of the collaborative editing process and the collaborative editing experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0039] Figure 1 A schematic diagram of the structure of a document editing system provided by an exemplary embodiment of the present application is shown;
[0040] Figure 2a A schematic diagram of a session page provided by an exemplary embodiment of the present application is shown;
[0041] Figure 2b A schematic diagram of a session page provided by an exemplary embodiment of the present application is shown;
[0042] Figure 2cA schematic diagram of a session page provided by an exemplary embodiment of the present application is shown;
[0043] Figure 2d A schematic diagram of a session page provided by an exemplary embodiment of the present application is shown;
[0044] Figure 2e A schematic diagram of a session page provided by an exemplary embodiment of the present application is shown;
[0045] Figure 2f A schematic diagram of a document editing window provided by an exemplary embodiment of the present application is shown;
[0046] Figure 2g A schematic diagram of a document editing window provided by an exemplary embodiment of the present application is shown;
[0047] Figure 2h A schematic diagram of a document editing window provided by an exemplary embodiment of the present application is shown;
[0048] Figure 2i A schematic diagram of displaying document content provided by an exemplary embodiment of the present application is shown;
[0049] Figure 3a A schematic diagram of annotating target content provided by an exemplary embodiment of the present application is shown;
[0050] Figure 3b A schematic diagram of annotating target content provided by an exemplary embodiment of the present application is shown;
[0051] Figure 3c A schematic diagram of annotating target content provided by an exemplary embodiment of the present application is shown;
[0052] Figure 4 A schematic diagram showing a flow chart of a document editing method provided by an exemplary embodiment of the present application is shown;
[0053] Figure 5a A schematic diagram of initiating collaborative editing provided by an exemplary embodiment of the present application is shown;
[0054] Figure 5b A schematic diagram of initiating collaborative editing provided by an exemplary embodiment of the present application is shown;
[0055] Figure 6 A schematic diagram of participating in collaborative editing provided by an exemplary embodiment of the present application is shown;
[0056] Figure 7 A schematic diagram of annotating document content provided by an exemplary embodiment of the present application is shown;
[0057] Figure 8 A schematic diagram of viewing annotations provided by an exemplary embodiment of the present application is shown;
[0058] Fig. 9 A schematic diagram of viewing annotations provided by an exemplary embodiment of the present application is shown;
[0059] Fig.10 A schematic flow chart of another document editing method provided by another exemplary embodiment of the present application is shown;
[0060] Fig.11 A schematic diagram of an interactive processing logic provided by an exemplary embodiment of the present application is shown;
[0061] Fig.12 A schematic diagram of various modules in a terminal provided by an exemplary embodiment of the present application is shown;
[0062] Fig.13 A schematic diagram showing a document task processing logic provided by an exemplary embodiment of the present application is shown;
[0063] Fig.14 A schematic diagram of the structure of a document editing device provided by an exemplary embodiment of the present application is shown;
[0064] Fig.15 A schematic structural diagram of a document editing device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0065] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0066] The embodiments of the present application relate to collaborative editing in an instant messaging session scenario. The so-called collaborative editing in an instant messaging session scenario refers to: the editing operation performed jointly on the same document by M users out of N users participating in the same session in an instant messaging application. Here, the session in the instant messaging application may include but is not limited to: a group session between multiple (i.e., more than two) users, or a separate session between two users, etc., where N is an integer greater than 1, M is a positive integer and M≤N, that is, the N users participating in the session may participate in the collaborative editing process in whole or in part. The collaborative editing process may have the following characteristics: ① The document contents edited by each user participating in the collaborative editing may not affect each other (such as the newly edited document content will not overwrite the historically edited document content); ② Each user participating in the collaborative editing can display the document content being edited by himself in real time in his respective terminal, and can also display the document content being edited by other users in real time. The document content here may include but is not limited to: text, pictures, voice and video, etc.
[0067] The embodiment of the present application designs a solution for collaboratively editing documents in an instant messaging session scenario. First, a collaborative editing entry is set in a session page between N users displayed in an instant messaging application. Any user among the N users can trigger collaborative editing of a target document among the N users by selecting the collaborative editing entry. This triggering method is relatively simple and convenient. Secondly, when the collaborative editing entry in the session page is selected, a document editing window of the target document is displayed in the instant messaging application. In the document editing window of the target document, document contents generated by collaborative editing of the target document by M users among the N users are displayed in real time. Since the document editing window of the target document is provided by the instant messaging application, that is, the collaborative document editing process in the instant messaging session scenario does not require switching and jumping of the application, which simplifies the process of collaborative editing of documents and can effectively improve the efficiency of collaborative editing. In addition, the document contents generated by collaborative editing in the document editing window will be displayed in the form of messages in the session page. In this way, the document contents can be intuitively displayed in the session page without the user's active access, which is convenient for the user to check the document contents and enables the user to obtain information such as the progress and completion of collaborative editing in a timely manner, thereby improving the intuitiveness of the collaborative editing process and the collaborative editing experience.
[0068] The document editing solution proposed in the embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0069] Figure 1 FIG. 1 shows a schematic diagram of the architecture of a document editing system provided by an exemplary embodiment of the present application; Figure 1As shown, the document editing system may include a server 101 and N terminals (such as terminal 102, terminal 103, etc.), where N is a positive integer greater than 1, and the specific number of the server 101 and the terminal 102 is not limited in the embodiment of the present application. The following description of the terminal is based on terminal 102 as an example, and the other terminals in the N terminals can refer to the relevant description of terminal 102. Among them:
[0070] The terminal 102 may include but is not limited to: PC (Personal Computer), PDA (tablet computer), mobile phone, wearable smart device, etc.; the terminal 102 is equipped with a display device, which may also be a display, a display screen, a touch screen, etc., and the touch screen may also be a touch screen, a touch panel, etc.; various applications can be installed and run in the terminal 102, and the applications may include but are not limited to: IM (Instant Messaging) application, content interaction application, etc. Among them, the instant messaging application refers to an application for instant communication of messages and social interaction based on the Internet, and the instant messaging application may include but is not limited to: QQ, WeChat, enterprise WeChat, map application with social interaction function, game application, etc. Content interaction application refers to an application that can realize content interaction, such as online banking, microblog, personal space, news and other applications. The server 101 can be a background server of various applications in the terminal 102, which is used to interact with the terminal 102 to provide computing and application service support for various applications in the terminal 102. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal 102 and the server 101 can be directly or indirectly connected via wired or wireless communication, which is not limited in this application.
[0071] based on Figure 1 In the system shown in FIG. 1 , the terminal 102 among the N terminals is taken as an example to describe the document editing solution of the present application from the side of the terminal 102. The document editing solution may include the following steps:
[0072] (1) Displaying a conversation page between N users in the instant messaging application of the terminal 102, wherein the conversation page includes a collaborative editing entry; N is an integer greater than 1.
[0073] The conversation page is called the AIO page, which is used to display the instant messaging messages generated by the conversation between N users. Figure 2a , Figure 2aA schematic diagram of a session page provided by an exemplary embodiment of the present application is shown; Figure 2a As shown, the conversation page includes a message display area 201 and a message input area 202, wherein the message display area 201 is used to display the instant communication message stream between N users. The so-called instant communication message stream refers to a data stream composed of multiple instant communication messages. An instant communication message refers to any message edited and sent by a user in the conversation page during an instant communication conversation. Since the message is edited, sent and displayed instantly, it is called an instant communication message (such as Figure 2a As shown, an instant messaging message sent by user C is: the investment here is not cutting and migration, but mainly preparatory work); the message input area 202 includes a quick input area 2021 and an input box 2022, and the message input area 202 is used to realize the input of instant messaging messages.
[0074] The location of the collaborative editing entrance in the conversation page may include but is not limited to the following implementation methods:
[0075] In one implementation, the instant messaging message stream of the conversation page includes a collaborative document message sent by any one of the N users after editing the target document; the collaborative editing portal is set in the collaborative document message; when the collaborative document message is selected, the collaborative editing portal is selected. The collaborative document message refers to an instant messaging message generated based on the document content after any one of the N users edits the target document in the document editing window. The collaborative document message may be selected in ways that include, but are not limited to: double-clicking (such as clicking the collaborative document message twice in succession with a 1-second interval between the two clicks), long pressing (such as pressing the collaborative document message for 2 seconds), etc. See. Figure 2b , Figure 2b A schematic diagram of a session page provided by an exemplary embodiment of the present application is shown; Figure 2b As shown, the collaborative editing entry is set in the collaborative document message 203. In addition, when the collaborative document message is selected, the conversation page can also display an option bar, the option bar includes at least one option, and the collaborative editing entry is set as an option in the option bar. Figure 2b As shown, when the collaborative document message 203 is selected (such as long pressed), an option bar 204 is displayed in the conversation page, wherein the option bar 204 includes at least one option, such as share, delete, withdraw, write together, etc., wherein the option - write together serves as a collaborative editing entry.
[0076] In another implementation, a collaborative editing prompt is displayed in the message display area 201 of the conversation page. The collaborative editing prompt is used to prompt the number of users who are performing collaborative editing among the M users, or the collaborative editing prompt is used to indicate that the current conversation page has initiated a document editing window, and clicking the collaborative editing entrance can enter the document editing window to edit the document content; the collaborative editing entrance is set in the collaborative editing prompt; when the collaborative editing prompt is selected, the collaborative editing entrance is selected. Among them, the M users refer to the users who perform collaborative editing to generate document content among the N users, and the number of users who are performing collaborative editing among the M users refers to the number of users who perform collaborative editing of document content in the document editing window among the M users at the current moment. See Figure 2c , Figure 2c A schematic diagram of a session page provided by an exemplary embodiment of the present application is shown; Figure 2c As shown, the collaborative editing entrance is set in the collaborative editing prompt 205, and the collaborative editing prompt 205 is located at the bottom of the collaborative document message 203. The collaborative editing prompt 205 can be displayed in the form of an icon, a frame, etc. It can be understood that the collaborative editing prompt 205 can also be located at other positions on the conversation page, such as a fixed position at the top of the conversation page, and the collaborative editing prompt can also be displayed in other forms. The embodiment of the present application does not limit the position and display form of the collaborative editing prompt 205 in the conversation page.
[0077] In another implementation, the message input area of the conversation page includes a quick input area, and the collaborative editing entrance is set in the quick input area. Figure 2d , Figure 2d A schematic diagram of a session page provided by an exemplary embodiment of the present application is shown; Figure 2d As shown, the quick input area 2021 includes at least one shortcut key, such as a voice shortcut key 20211, a red envelope shortcut key 20212, an emoticon shortcut key 20213, a more shortcut key 20214, etc., wherein the more shortcut key 20214 is folded and hides some other shortcut keys (such as a voice call shortcut key, a transfer shortcut key, a collaborative editing shortcut key 202141, etc.), wherein the collaborative editing entrance is folded and hidden in any shortcut key of the quick input area 2021 (such as the more shortcut key 20214), and when the more shortcut key 20214 is selected, the message input area displays the part of the shortcut keys that are folded and hidden (such as the collaborative editing shortcut key 202141). It can be understood that in addition to being hidden in any shortcut key of the quick input area 2021 in the above manner, the collaborative editing entrance can also be directly displayed in the quick input area 2021 in the form of a shortcut key, and the embodiment of the present application is not limited to this.
[0078] In another implementation, the message input area of the conversation page includes a message input box; when the message input box is triggered, an option bar is displayed in the conversation page; and the collaborative editing entrance is set in the option bar. The message input box may be triggered in a manner including but not limited to: double-clicking the message input box or long pressing the input box, etc. Figure 2e , Figure 2e A schematic diagram of a session page provided by an exemplary embodiment of the present application is shown; Figure 2e As shown, when the message input box 2022 is triggered, the option bar 204 is displayed in the conversation page, and the collaborative editing entrance is set in the option bar 204.
[0079] It should be noted that, in addition to the implementation described above, the collaborative editing entrance may also be located at other locations on the conversation page in other forms. The embodiment of the present application does not limit the position and form of the collaborative editing entrance in the conversation page.
[0080] (2) When the collaborative editing portal is selected, the document editing window of the target document is displayed in the instant messaging application. The target document refers to the document whose content is collaboratively edited by M users. The document editing window supports inputting document content, and also supports setting the font color, size, italicization, underline and other formats of the document content; in addition, the background of the document editing window can be set or updated arbitrarily, for example, a picture or photo can be used as the background picture of the document editing window, or the background color can be set according to the user's preferences, etc.
[0081] The location of the document editing window in the session page may include but is not limited to the following implementations:
[0082] In one implementation, the document editing window of the target document is located in the document editing page; the document editing page and the conversation page are different pages in the instant messaging application. The document editing window is displayed as a subwindow in a certain area of the document editing page. Figure 2f , Figure 2f A schematic diagram of a document editing window provided by an exemplary embodiment of the present application is shown; Figure 2f As shown, the user can edit the document content from the cursor position, where the cursor can be called a cursor, which is a symbol or graphic on a computer screen or other display device of a computer device (such as a computer or mobile phone) used for human-computer interaction. The cursor is used to indicate the location where the user action occurs. The common appearance of the cursor is an "angled arrow".
[0083] In another implementation, the document editing window belongs to the session page, and the document editing window is displayed on the session page in a floating window manner. In other words, the size of the document editing window is smaller than the size of the session page, and the document editing window is displayed on the session page in the form of a floating window. Figure 2g , Figure 2g A schematic diagram of a document editing window provided by an exemplary embodiment of the present application is shown; Figure 2g As shown, the document editing window 207 is displayed at the bottom of the conversation page in the form of a floating window; the visibility of the conversation page is lower than the visibility of the document editing window (of course, the visibility of the conversation page can be consistent with the visibility of the document editing window, or the visibility of the conversation page is higher than the visibility of the document editing window, which is not limited in this embodiment of the present application). When the document editing window is displayed on the conversation page in a floating manner, the document content being collaboratively edited in the document editing window can be displayed in real time on the conversation page.
[0084] (3) The document content generated by the collaborative editing of the target document by M users among the N users is displayed in real time in the document editing window of the target document in the terminal 102; M is an integer and M≤N. Figure 2h , Figure 2h A schematic diagram of a document editing window provided by an exemplary embodiment of the present application is shown; Figure 2h As shown, suppose user B's terminal displays Figure 2h In the document editing window shown, user B can see the document content edited by user B in the document editing window: design, 1. Mobile Internet 2 days, 2. Mobile vision 15 days; user B can also see the document content edited by user A in the document editing window: work tasks and workload; user B can also see the document content edited by user C in the document editing window: development; user B can also see the document content edited by user D in the document editing window: product, 1. Cropping details - compare with mobile QQ overview. In addition, the document editing window also supports the display of the target document's initiator's nickname, initiation time, nicknames of users participating in collaborative editing, target document save time and other information. Figure 2h As shown, the nickname of the initiator of the target document is user A, the target document was last saved at 11:25, and the nicknames of the users participating in the collaborative editing are user B, user C, and user D. In addition, the document editing window also displays a send mark, and when the send mark is triggered (such as clicked), the document editing window is closed.
[0085] (4) Displaying the document content in the form of messages in the conversation page. The message forms include, but are not limited to: instant messaging messages and notification messages. An instant messaging message refers to any message edited and sent by a user in a conversation page during an instant messaging conversation; a notification message refers to announcement information, reminder information, etc. published in a conversation page. Notification messages are generally located in a fixed position in the conversation page, such as the top of the conversation page. In one implementation, the document content is displayed in the message display area through collaborative document messages. In another implementation, the document content is displayed outside the message display area through notification messages. See Figure 2i , Figure 2i FIG. 1 shows a schematic diagram of displaying document content provided by an exemplary embodiment of the present application; Figure 2i As shown in the figure, there are two ways to display document content in the conversation page: (1) Display document content through notification messages. There is a fixed area at the top of the conversation page specifically for displaying notification messages. The notification message contains the document content edited by M users in the document editing window, and the notification message can be shared by any of the M users. (2) Display document content through collaborative document messages. Figure 2i As shown, the collaborative document message shared by user A includes the document content that user A browsed in the document editing window; the collaborative document message subsequently shared by user B includes the document content that user B browsed in the document editing window, and the document content browsed by user B has increased by part 209 compared to the document content browsed by user A; similarly, the collaborative document message subsequently shared by user B includes the document content that user B browsed in the document editing window, and the document content browsed by user C has increased by part 210 compared to the document content browsed by user B. In addition, if the length of the document content exceeds the length threshold, the document content is folded and displayed in the collaborative document message and notification message; and a collapse mark is set in the collaborative document message and notification message; when the collapse mark is selected, the document content is fully displayed in the collaborative document message or notification message. See. Figure 2i As shown, the collapse mark 208 is used to control whether the document content is fully displayed. The length threshold can be predefined. For example, if the document content contains 13 lines in total and the length threshold is 3 lines, 10 document contents are hidden in the collaborative document message or notification message; when the collapse mark is selected, all 13 document contents are displayed in the collaborative document message and notification message. This method of folding and displaying document content can beautify the page and improve the user experience.
[0086] In addition, the embodiment of the present application also supports adding annotations to document content. An annotation refers to an annotation added to a certain target content of the document content in a blank position of the target document, and the target content is any content in the document content. Specifically, the user can add an annotation at the cursor position of the target content.
[0087] In one implementation, the annotation includes the number of annotated users, which can be displayed at the display position of the target content in the conversation page (or document editing window). The number of annotated users refers to the total number of times the target content is annotated by M users. For example, the users who annotate the target content are: user A, user B, and user C. Among them, the number of annotations added by user A to the target content is 1, the number of annotations added by user B to the target content is 3, and the number of annotations added by user C to the target content is 2. Then the number of annotated users is 6, indicating that the target content has been annotated 6 times in total. See Figure 3a , Figure 3a FIG. 1 shows a schematic diagram of annotating target content provided by an exemplary embodiment of the present application; Figure 3a As shown, in the document editing window, the last position of the target content line is displayed with an annotation icon, and the number of annotated users is displayed in the annotation icon; of course, the last position of the target content line can directly display the number of annotated users, or the annotation can be displayed in other positions of the document editing window, which is not limited in the present embodiment. Figure 3a As shown; the target content is: 1. 2 mobile terminal framework interaction combings; the annotation icon is displayed at the end of the line where the target content is located, and the annotation icon includes the number of annotated users 4, indicating that the target content has been annotated 4 times in total.
[0088] In another implementation, the annotation includes annotation information, which can be displayed at the display position of the target content in the document editing window, or in the annotation window in the document editing window. The annotation information includes the annotation content of the target content, the user's head portrait, the user's annotation time, and other information. Figure 3b , Figure 3b FIG. 1 shows a schematic diagram of annotating target content provided by an exemplary embodiment of the present application; Figure 3bAs shown, there are two ways to display the annotations of the target content in the document editing window: (1) Display the annotations (annotation information) at the display position of the target content in the document editing window. Specifically, the annotation information for the target content is displayed at the position of the next line of the target content in the document editing window. For example, the target content is: 1. Two mobile terminal framework interaction combings, and two different users' annotations on the target content are displayed at the position of the next line of the target content, where the annotation information includes user avatars (such as user A's avatar, user B's avatar) and annotation content. (2) Display the annotations (annotation information) in the annotation window in the document editing window. Specifically, the annotation information is displayed in the annotation window 301 of the document editing window. It should be noted that in addition to the above-mentioned document editing window that can display annotations of the target content, the conversation page can also display annotations of the target content. For example, the last position of the line where the target content is located in the collaborative document message of the conversation page can display annotations (number of annotated users, annotation information), see Figure 3c , Figure 3c A schematic diagram of annotating target content provided by an exemplary embodiment of the present application is shown, which will not be described in detail here. Based on this, the document editing solution provided by the embodiment of the present application supports users to annotate target content in the document content, and the user annotation operation is convenient, which improves the user experience.
[0089] In the embodiment of the present application, firstly, a conversation page between N users displayed in an instant messaging application includes a collaborative editing entry, and the collaborative editing entry has a variety of forms and positions in the conversation page. Any user among the N users can trigger collaborative editing of a target document between the N users by selecting the collaborative editing entry in any way. Such a triggering method is relatively simple and convenient. Secondly, when the collaborative editing entry in the conversation page is selected, a document editing window of the target document is displayed in the instant messaging application, and the document content can be collaboratively edited in the document editing window, wherein the format of the document content (such as font color, size, etc.) allows for custom settings, which can meet the user's format requirements for document editing. The window belongs to a conversation page or a document editing page, and the conversation page or the document editing page is provided by an instant messaging application, indicating that the document editing window is provided by an instant messaging application, that is, the collaborative document editing process in the instant messaging conversation scenario does not require application switching and jumping, which simplifies the collaborative document editing process and can effectively improve the efficiency of collaborative editing; in addition, the document content generated by collaborative editing in the document editing window will be displayed in the form of a message in the conversation page, so that the document content can be intuitively displayed in the conversation page without the user's active access, which is convenient for users to check the document content and enables users to obtain information such as the progress and completion of collaborative editing in a timely manner, thereby improving the intuitiveness of the collaborative editing process and the collaborative editing experience. In addition, the embodiment of the present application also supports annotations to document content, and the annotations include the number of annotated users and annotation information, so that users can directly browse the number of annotated users and annotation information corresponding to the document content, thereby improving the user experience.
[0090] The above embodiment introduces in detail the various interface diagrams involved in the document editing solution, such as the session page, the document editing window, etc. Figure 4 Specifically explain the document editing plan, Figure 4 A schematic diagram of a document editing method provided by an exemplary embodiment of the present application is shown. The document editing method can be performed by Figure 1 The method includes but is not limited to steps S401-S404, wherein:
[0091] S401. Displaying a conversation page between N users in an instant messaging application, where the conversation page includes a collaborative editing entry, where N is an integer greater than 1.
[0092] In one implementation, the method of initiating collaborative editing from a conversation page may include but is not limited to: the user triggers an input box in the conversation page; the conversation page displays an option bar; the collaborative editing entry is selected from the option bar; the document editing window of the target file is displayed in the instant messaging application; after the user edits the document content in the document editing window, he clicks the send icon, and the document content is displayed in the conversation page in the form of a message. Figure 5a For example, Figure 5a FIG. 4 shows a schematic diagram of initiating collaborative editing provided by an exemplary embodiment of the present application; Figure 5a As shown, when the user long presses (or double-clicks) the input box, an option bar 204 may be displayed next to the input box, and the option bar 204 may include at least one option (such as line break, full-screen input, write together, etc.); when the user clicks the "Write Together" option, the instant messaging application displays the document editing window of the target document; after editing the document content (such as work tasks and workload) in the document editing window, click the send identifier (key, button, etc.); the instant messaging application displays the conversation page, and at this time the conversation page includes a collaborative document message, and the collaborative document message includes the document content (work tasks and workload), and a collaborative editing prompt (such as write together, the collaborative editing entrance is set in the collaborative editing prompt) is displayed at the bottom of the collaborative document message, and the collaborative editing prompt can be used to indicate that the document editing window of the target document has been successfully created; other users can directly enter the document editing window of the target document for collaborative editing by clicking the collaborative editing prompt. It should be noted that after the instant messaging application displays the document editing window of the target document, you can also edit the document content without editing it in the document editing window, and directly click the send icon. At this time, a blank collaborative document message is displayed on the conversation page, but the bottom of the collaborative document message still contains the collaborative editing prompt, indicating that the collaborative editing is initiated successfully.
[0093] In another implementation, the method of initiating collaborative editing from a conversation page may include but is not limited to: long pressing (or double-clicking) any instant messaging message in the instant messaging message stream in the conversation page; displaying an option bar at the location of the instant messaging message; selecting a collaborative editing entry from the option bar; displaying a document editing window of the target file in the instant messaging application; after the user edits the document content in the document editing window, clicks the send icon, and the document content is displayed in the conversation page in the form of a message. Figure 5b For example, Figure 5b FIG. 4 shows a schematic diagram of initiating collaborative editing provided by an exemplary embodiment of the present application; Figure 5bAs shown, after long pressing any instant messaging message in the conversation page, an option bar is displayed next to the instant messaging message, and the option bar contains at least one option; after selecting the collaborative editing entry from the option bar, the instant messaging application displays the document editing window of the target document; when the sending indicator in the document editing window is triggered, the instant messaging message displays the conversation page, and the conversation page contains a collaborative document message at this time, and the collaborative document message contains document content, and a collaborative editing prompt (write together) is displayed at the bottom of the collaborative document message, and other users can directly enter the document editing window of the target document for collaborative editing by clicking the collaborative editing prompt.
[0094] S402: When the collaborative editing portal is selected, a document editing window of the target document is displayed in the instant messaging application.
[0095] S403 . Displaying in real time in the document editing window of the target document the document contents generated by collaborative editing of the target document by M users among N users, where M is a positive integer and M≤N.
[0096] S404: Display the document content in the form of a message in the conversation page.
[0097] Based on step S401, collaborative editing can be initiated in the session page, and subsequent users can directly enter the document editing window of the target document through the collaborative editing entrance to participate in collaborative editing. Figure 6 To illustrate the process of participating in collaborative editing (the execution process of steps S402-S403), Figure 6 FIG. 1 shows a schematic diagram of participating in collaborative editing provided by an exemplary embodiment of the present application; Figure 6As shown, after user B clicks the collaborative editing prompt (write together) at the bottom of the collaborative document message (work tasks and workload), the instant messaging application displays a document editing window containing the document content edited by user A; user B can edit the document content in the document editing window (such as: design, 1. Mobile Internet 2 days, 2. Mobile terminal vision 15 days); while user B is editing the document content, other users (such as user C, user D) can edit the document content in the document editing window at the same time, and user B can browse the document content being edited by user A, user C and user D in real time; if user B clicks the send icon in the document editing window, the user The conversation page displayed on the terminal held by user B displays the collaborative document message sent by user B, which includes the document content edited by user A (work tasks and workload), the document content edited by user B (design, 1. Mobile Internet 2 days, 2. Mobile vision 15 days), the document content edited by user C (development), and the document content edited by user D (1. Cropping details - compared with the mobile QQ overview); if user C clicks the send icon on the terminal held by user C, the collaborative document message sent by user C can be displayed in the conversation page of user B. The collaborative document message includes the document content collaboratively edited by user A, user B, user C, and user D. In this way, the document content collaboratively edited by each user can be displayed in real time in the instant messaging application, and these document contents are displayed in the conversation page in the form of messages, which is convenient for user query and improves the user experience. In addition, see Figure 6 It can be seen that there are many forms of displaying collaborative editing prompts, such as [X people write together] or [Write together]. In addition, due to the excessive content of the document, the document content is folded and displayed in the collaborative document message. In addition, in the document editing window of the target document, the area where the document content edited by each user is located and information such as the user nickname can be displayed in different ways. For example, the nickname of user A is displayed in red, the nickname of user B is displayed in blue, the nickname of user C is displayed in yellow, and the nickname of user D is displayed in orange. In this way, the users who are collaboratively editing and the document content edited by the users can be clearly distinguished in the document editing window.
[0098] Based on the above steps S401-S404, multiple people can collaboratively edit a document, and the edited document content is displayed in the form of a message on the conversation page. At this time, the edited document content can be annotated. Figure 3a , Figure 3b , Figure 3c as well as Figure 7 , which details the process of users annotating document content. Figure 7 , Figure 7 FIG. 1 shows a schematic diagram of annotating document content provided by an exemplary embodiment of the present application; Figure 7As shown, an annotation mark 701 is displayed in the document editing window. When the annotation mark 701 is triggered, the document editing window can be used to annotate any target content in the document content. For example, the target content - Mobile Internet 2 Days can be annotated; after the annotation is completed, the document editing window displays the annotation window, and the annotation window is used to display P annotations added to the document content by M users, P is a positive integer, and the P annotations are uniformly displayed in the annotation window, or the P annotations are classified and displayed in the annotation window, and the annotation window displays a close mark (key or button); when the close mark is triggered, the annotation window is closed; when the send mark displayed in the document editing window is triggered, the instant messaging application displays the collaborative document message containing the annotations. Among them, the display form of the annotations in the conversation page can be referred to. Figure 3a , Figure 3b , Figure 3c It should be noted that some of the above operations are not required to be performed, and not performing some operations will not affect the entire annotation operation. For example, not closing the annotation window will not affect the entire process of annotating the document content.
[0099] In addition, the present application embodiment also supports viewing annotations. Figure 8 Describe in detail the process of viewing comments. Figure 8 FIG. 1 shows a schematic diagram of viewing annotations provided by an exemplary embodiment of the present application; Figure 8 As shown, the number of annotated users is displayed at the display position of the target content in the conversation page as an example for explanation. When the number of annotated users is triggered (or the collaborative editing prompt (4 people writing together) is triggered), the instant messaging application displays a document editing window, and the number of annotated users of each target content is displayed in the document editing window. For example, the target content: 1. Mobile Internet 2 days, the corresponding number of annotated users is 1, the target content: 2. Mobile terminal vision 15 days, the corresponding number of annotated users is 4; when the number of annotated users 4 is clicked, the document editing window displays the annotation window, and the annotation window displays the annotation information and the number of annotated users of the target content. Among them, the user can perform a sliding operation on the annotation window to view the hidden annotations. The sliding operation may include but is not limited to: sliding left and right (pressing the display device with a finger to the left or right and then releasing it), sliding up and down (pressing the display device with a finger to the upper or lower slide and then releasing it), and so on.
[0100] It should be noted that the annotation window can display annotations of different target contents according to the sliding operation, or the annotation window can display multiple annotations of the same user according to the sliding operation, or the annotation window can display all annotations of the document content according to the sliding operation, or the annotation window can display annotations of all users according to the sliding operation, or the annotation window can display annotations in different time sequences according to the sliding operation, for example, annotations from recent to distant (or from distant to recent), etc. The following is an example of the annotation window displaying annotations of different target contents according to the sliding operation, see Fig. 9 , Fig. 9 FIG. 1 shows a schematic diagram of viewing annotations provided by an exemplary embodiment of the present application; Fig. 9 As shown, the target content 1 displayed in the document editing window is: 1. Mobile Internet 2 days, the number of annotation users corresponding to target content 1 is 1; target content 2 is: 2. Mobile terminal vision, the number of annotation users corresponding to target content 2 is 4; the annotation displayed in the current annotation window is 1 annotation corresponding to target content 1, and when the user's finger slides to the left (or right), the annotation window displays 4 annotations corresponding to target content 2. In addition, when the annotation is displayed in the annotation window, the target content corresponding to the annotation is highlighted, and the highlighting method may include: displaying the target content as a target color or displaying the target content as a target brightness, specifically, displaying the field (text) contained in the target content or the area occupied by the target content as a target color, or displaying the field (text) contained in the target content or the area occupied by the target content as a target brightness. For example, the text contained in the target content is set to red (target color), and the text of other document content is set to black, so as to distinguish the target content from other content in the document content. For another example, the target brightness of the target content is set to a first brightness, and the brightness of other document contents in the document content is set to a second brightness. The first brightness is different from the second brightness, so as to distinguish the target content from other contents in the document content.
[0101] In one implementation, the embodiment of the present application also supports converting the document content collaboratively edited by M users into table content for display. Specifically, the user can perform a conversion operation in the document editing window to convert the edited document content into table content for display; for example: a conversion shortcut key can be set in the document editing window, and when the user clicks the conversion shortcut key, the document content can be converted into table content; for another example: the user can long press any document content in the document editing window to trigger a pop-up option bar, which has a conversion option. When the user selects the conversion option, the document content can be converted into table content, etc.; the embodiment of the present application does not limit the implementation form of the conversion operation. It can be understood that the document content displayed in the conversation page can also be converted into table content for display according to the above-mentioned relevant description, which will not be repeated here. In this way, flexible and diverse document content display forms are provided, and the document content is displayed in a table, which can make the document content presentation more hierarchical and convenient for users to consult.
[0102] In one implementation, the target document supports being shared or forwarded, for example, the target document is shared or forwarded to a conversation page of another instant messaging application, or is shared or forwarded to other conversation pages belonging to the same instant messaging application as the above conversation page, or is shared or forwarded to a dynamic page such as a friend circle, a personal homepage, or a personal dynamic page, wherein the method of being shared or forwarded may include but is not limited to: email, instant messaging message, SMS, etc. In a specific implementation, the conversation page includes a document sharing portal, and when the document sharing portal is selected, the target document is shared or forwarded, and any user among N users can share or forward the target document to other conversation pages, and users of other conversation pages can collaboratively edit the target document, and the document content generated by the collaborative editing is displayed in real time in each conversation page containing the target document. For example, if the terminal held by user A includes the first instant messaging application and the second instant messaging application, user A can forward the target document contained in the first conversation page of the first instant messaging application to the second conversation page of the second instant messaging application; accordingly, user B who belongs to the second conversation page with user A can collaboratively edit the target document; the document content collaboratively edited by user B is displayed in real time in the first conversation page of the first instant messaging application and the second conversation page of the second instant messaging application. In this way, the cross-conversation page collaborative editing of the target document is achieved, and the method of collecting document content information is more flexible and diverse, further improving the efficiency of information collection and statistics.
[0103] In one implementation, the document content in the target document in the embodiment of the present application supports being exported. Specifically, after the document content in the target document is edited, any user among the N users can export the document content in the target document as a file through the document export option (located in the quick input area, option bar, etc.), and the file supports being shared or forwarded. For example, the file can be shared or forwarded to other session pages. In this way, the document content in the target document is exported as a file, which facilitates the storage, management and sharing of the document content.
[0104] In the embodiment of the present application, firstly, a conversation page between N users displayed in an instant messaging application contains a collaborative editing entry, and any user among the N users can initiate collaborative editing (trigger collaborative editing of a target document) by selecting the collaborative editing entry, and such a triggering method is relatively simple and convenient; secondly, when the collaborative editing entry in the conversation page is selected, a document editing window of the target document is displayed in the instant messaging application, and the user can participate in the editing of the document content of the target document in the document editing window, and can browse in real time the document content generated by the collaborative editing of the target document by M users among the N users. This method of participating in or browsing the document content in the target document through the collaborative editing entry improves the speed at which users participate in collaborative editing; since the document editing window belongs to the conversation page or the document editing page, and the conversation page or the document editing page It is provided by the instant messaging application, indicating that the document editing window is provided by the instant messaging application, that is, the collaborative document editing process in the instant messaging session scenario does not require switching and jumping of applications, which simplifies the process of collaborative document editing and can effectively improve the efficiency of collaborative editing; again, the embodiment of the present application also supports the display of document content in a table form and the export and sharing of target documents, etc., which can improve the hierarchy of document content and facilitate user viewing and sharing; in addition, the document content generated by collaborative editing in the document editing window will be displayed in the form of messages on the session page, so that the document content can be intuitively displayed on the session page without the user's active access, which is convenient for users to check the document content and enables users to obtain information such as the progress and completion of collaborative editing in a timely manner, thereby improving the intuitiveness of the collaborative editing process and the collaborative editing experience. In addition, the embodiment of the present application also supports annotations on document content, so that collaborative editing under the instant messaging application meets the user's needs for annotations on document content and improves the user experience.
[0105] based on Figure 1 The system shown below is combined with Fig.10 , the process of interaction between the terminal 102 and the server 101 is introduced in detail. Fig.10A schematic diagram of a flow chart of another document editing method provided by another exemplary embodiment of the present application is shown. The document editing method can be Figure 1 The terminal 102 and the server 101 are interactively executed; the method includes but is not limited to steps S1001-S1011. Among them:
[0106] S1001. The first terminal sends document content to a server.
[0107] The first terminal refers to the terminal that initiates collaborative editing. Specifically, when the first terminal clicks the collaborative editing entrance in the conversation page, the first terminal displays the document editing window of the target document; accordingly, the user corresponding to the first terminal can edit the document content in the document editing window; when the send mark in the document editing window is clicked, the first terminal sends the document content to the server.
[0108] S1002. The server creates a target document.
[0109] Specifically, the server generates a target document of the document content based on the document content sent by the first terminal, and generates a document identifier of the target document, wherein the document identifier may include but is not limited to: a target document version number, a target document link address, and the like.
[0110] S1003: The server sends the target document identifier to the first terminal.
[0111] S1004. The server sends the collaborative document message to the second terminal.
[0112] The second terminal refers to a terminal that contains the same session page as the first terminal. It can also be understood that the user of the second terminal and the user of the first terminal have a connection relationship in the instant messaging application (such as belonging to the same instant messaging application). The collaborative document message carries the document identifier of the target document and the collaborative editing entry.
[0113] S1005: When the collaborative editing entry in the second terminal is selected, a collaborative editing request is generated, where the collaborative editing request is used to request the server for collaborative editing authority in the target document.
[0114] The collaborative editing request carries the document identifier of the target document and the information of the second terminal (such as the user's identity information, etc.).
[0115] S1006: The second terminal sends a collaborative editing request to the server.
[0116] S1007: The server detects whether the second terminal has permission to perform collaborative editing in the document editing window of the target document.
[0117] Specifically, based on the collaborative editing request sent by the second terminal, the server can verify whether the user corresponding to the second terminal is a netizen of the user corresponding to the first terminal, and verify whether the document identifier sent by the second terminal is the document identifier of the target document initiated by the first terminal. Only when both of the above two conditions are met can it be determined that the second terminal has the authority to edit in the target document. For example, the first terminal corresponds to user A, and the second terminal corresponds to user B. User A and user B are netizens in the same QQ group, and the document identifier of the target document initiated by user A is AJK123; now the document identifier sent by the second terminal to the server is SHJ231, then the server can determine that user A and user B are netizens, but the document identifier provided by user B is inconsistent with the document identifier provided by user A, indicating that user B does not have the authority to collaboratively edit in the target document initiated by user A.
[0118] S1008. The server returns a response message to the second terminal.
[0119] The response message is used to indicate the response result of the server to the second terminal, and the response result may include: the second terminal has the authority to collaboratively edit the target document, or the second terminal does not have the authority to collaboratively edit the target document.
[0120] S1009: The second terminal enters a document editing window of the target document.
[0121] In detail, if the second terminal has the permission to edit in the target document, the second terminal can enter the document editing window of the target document by clicking the collaborative editing entrance; the user can edit the document content in the document editing window through the second terminal; when the document editing content is edited, click the send mark to send the edited document content to the server. In the embodiment of the present application, the user's document change operations such as adding, deleting, and annotating the document content in the document editing window are called document editing dynamics.
[0122] S1010. The server sends the document change operation to the first terminal or the second terminal.
[0123] Specifically, the server may receive document change operations from N terminals, and send the document change operations (or document content updated according to the document change operations) to the N terminals (first terminal, second terminal) for display.
[0124] S1011. The first terminal (the second terminal) merges document contents.
[0125] In detail, after receiving the document change operation, the first terminal (second terminal) can use the document collaborative editing algorithm (OT algorithm) to update (add, delete, annotate) the document content, so as to realize the real-time display of the document content being collaboratively edited by each user in the document editing window, wherein the operation of updating the document content refers to the operation of merging the historical document content and the new document content.
[0126] In summary, Fig.10 The document editing scheme described involves the interaction between the terminal and the server. The following describes the processing logic of the server and the terminal for the document editing scheme. The interaction processing logic between the terminal and the server can be found in Fig.11 For a description of the processing logic of each module in the terminal, see Fig.12 Related description.
[0127] The interaction processing logic between the terminal and the server can be found in Fig.11 , Fig.11 FIG. 1 shows a schematic diagram of a server processing logic provided by an exemplary embodiment of the present application; Fig.11 As shown, when the server is used to process the document editing solution mentioned in the embodiment of the present application, it mainly involves the following parts: big data channel, write together logic layer, document list, websocket access layer, room layer, room layer storage, network instant collaborative document (hackpad) and distributed database (TDSQL). Among them, the big data channel is used to transmit the document content, document change operation and other data sent by the terminal. For example, the terminal submits the first document content through the big data channel, and the collaborative editing background (write together background) in the big data channel docking server generates the target document identifier (version number) of the document content, and returns the target document identifier to the terminal. The document list is used to store the document content of the currently existing target document. The write together logic layer is responsible for handling document change operations (cs operations) and document change conflicts (cs conflicts) when multiple users collaboratively edit documents, and returns the latest document content or document change operations to the terminal. The Websocket access layer is responsible for connecting the document editing dynamics between the terminal and the document server. By using websocket as a long connection (a long connection refers to a connection method that maintains the connection state after the terminal and the server are established), the document content or document change operation can be returned to the terminal, ensuring that the document editing windows of multiple terminals are updated in real time to display the document content. The room layer is responsible for managing the permissions of each user, such as whether they have the permission to perform collaborative editing in the target document.
[0128] The terminal's processing logic for document editing solutions can be found in Fig.12 , Fig.12 FIG. 1 shows a schematic diagram of various modules in a terminal provided by an exemplary embodiment of the present application; Fig.12 As shown, when the terminal is used to process the document editing solution mentioned in the embodiment of the present application, it mainly involves the following parts: editor, document task, document management, document collaborative editing algorithm, room protocol, document protocol, document collaborative change protocol and message. Among them, the document protocol is responsible for handling the opening of the target document and the acquisition of the document content in the target document. The room protocol is responsible for processing the user's collaborative editing permissions. The file collaborative editing algorithm (OT change protocol) is responsible for handling document change operations and document change conflicts. Document management and document tasks are responsible for managing the logical relationship between multiple stored target documents and the session pages that initiate the target documents. For example, the target document identified as A belongs to the target document of session page a, and the target document identified as B belongs to the target document of session page b. This will prevent the numerous target documents from being confused with the session pages. The document task also has the following functions: (1) document change operations or document change conflicts generated by the docking editor; (2) receiving collaborative editing operations returned to the terminal by the protocol layer (including but not limited to document protocols and room protocols); (3) processing document change operations generated by the terminal and document change operations generated by the server; (4) submitting local document change operations to the protocol layer and transmitting them to the server. The processing logic of the document task can be found in Fig.13 , Fig.13 A schematic diagram of a document task processing logic provided by an exemplary embodiment of the present application is shown. The document collaborative editing algorithm is responsible for generating document change operations on the terminal side, and processing conflicts between document change operations sent by the server and document change operations generated on the terminal side. The editor is responsible for displaying the document content and submitting the user's editing operations to the document task.
[0129] In an embodiment of the present application, the first terminal can send the document content submitted by the user for the first time to the server; the server generates a target document and a target document identifier for the document content, and sends the target document identifier to the second terminal; the second terminal can directly enter the document editing window of the target document through the collaborative editing entrance, and can browse the document content edited by the first terminal or other terminals in real time in the document editing window. Similarly, the document content edited by the second terminal can also be transmitted to the server in real time, and forwarded by the server to the document editing window of each terminal for real-time display. The server and the terminal interact with each other, so that the document content edited for the target document in the first terminal can be displayed in real time on the display device of other terminals, and the document content edited for the target document in other terminals can be displayed in real time on the display device of the first terminal, so as to realize multi-terminal collaborative editing and real-time display of document content; and, since the session page and the document editing window of the target document are provided by the same instant messaging application in the terminal, the collaborative editing process does not require jumps between servers of different applications, between terminals, or between servers and terminals, which simplifies the process of collaborative editing of documents and can effectively improve the efficiency of collaborative editing. In addition, the terminal displays the document content in the form of messages in the conversation page, so that the document content can be intuitively displayed in the conversation page without the user's active access. This not only makes it convenient for users to access the document content, but also enables users to obtain information such as the progress and completion of collaborative editing in a timely manner, thereby improving the intuitiveness of the collaborative editing process and enhancing the collaborative editing experience.
[0130] Fig.14 A schematic diagram of the structure of a document editing device provided by an exemplary embodiment of the present application is shown; the document editing device can be a computer program (including program code) running in the terminal 102, for example, the document editing device can be an instant messaging application (such as WeChat, QQ) in the terminal 102; the document editing device can be used to execute Figure 4 , Fig.10 Some or all of the steps in the method embodiment shown. Fig.14 , the document editing device comprises the following units:
[0131] The display unit 1401 is used to display a conversation page between N users in an instant messaging application, where the conversation page includes a collaborative editing entry; N is an integer greater than 1;
[0132] The processing unit 1402 is configured to display a document editing window of a target document in an instant messaging application when the collaborative editing portal is selected;
[0133] Displaying in real time in the document editing window of the target document the document content generated by M users among N users co-editing the target document; M is a positive integer and M≤N; and,
[0134] Display document content as a message in the conversation page.
[0135] In one implementation, a conversation page includes a message display area, which is used to display an instant communication message stream between N users; the instant communication message stream includes a collaborative document message sent by any one of the N users after editing a target document; a collaborative editing entrance is set in the collaborative document message; when the collaborative document message is selected, the collaborative editing entrance is selected.
[0136] In one implementation, the conversation page includes a message display area, in which a collaborative editing prompt is displayed, and the collaborative editing prompt is used to prompt the number of users who are performing collaborative editing among M users; the collaborative editing entrance is set in the collaborative editing prompt, and when the collaborative editing prompt is selected, the collaborative editing entrance is selected.
[0137] In one implementation, the conversation page includes a message input area, which is used to input instant messaging messages; the message input area includes a shortcut input area; and the collaborative editing entrance is set in the shortcut input area.
[0138] In one implementation, the conversation page includes a message input area, which is used to input instant messaging messages; the message input area includes an input box, and when the input box is triggered, an option bar is displayed in the conversation page, and the collaborative editing entrance is set in the option bar.
[0139] In one implementation, the document editing window of the target document is located in a document editing page, and the document editing page and the conversation page are two different pages in the instant messaging application; or,
[0140] The document editing window belongs to the session page and is displayed in the session page as a floating layer.
[0141] In one implementation, the conversation page includes a message display area, and the message display area is used to display the instant messaging message stream between N users; the processing unit 1402 is specifically used to:
[0142] Displaying the document content in the message display area through a collaborative document message, the collaborative document message being included in the instant messaging message stream; or,
[0143] The document content is displayed through a notification message outside the message display area.
[0144] In one implementation, the processing unit 1402 is further configured to:
[0145] If the length of the document content exceeds the length threshold, the document content is folded and displayed in the collaborative document message and the notification message; and a folding mark is set in the collaborative document message and the notification message;
[0146] When the collapse mark is selected, the document content is fully displayed in the collaborative document message or notification message.
[0147] In one implementation, the document content includes target content, which is any content in the document content; the target document also includes annotations added to the target content; the processing unit 1402 is further configured to:
[0148] Display comments in the conversation page;
[0149] Wherein, when the annotation is displayed, the target content is highlighted; the highlighting includes: displaying the target content as a target color or displaying the target content as a target brightness.
[0150] In one implementation, the annotation includes the number of annotated users; the processing unit 1402 is specifically configured to:
[0151] The number of annotated users is displayed at the location where the target content is displayed on the conversation page.
[0152] In one implementation, the annotation includes annotation information; the processing unit 1402 is specifically configured to:
[0153] The annotation information is displayed at the display position of the target content in the conversation page; or, the annotation information is displayed in the annotation window in the conversation page.
[0154] In one implementation, the conversation page includes an annotation window; the annotation window is used to display P annotations added by M users to the document content, where P is a positive integer;
[0155] The P annotations are collectively displayed in the annotation window, or the P annotations are classified and displayed in the annotation window.
[0156] According to one embodiment of the present application, Fig.14The various units in the document editing device shown can be individually or completely combined into one or several other units to form a whole, or one (or some) of the units can be further divided into multiple functionally smaller units to form a whole, which can achieve the same operation without affecting the realization of the technical effects of the embodiments of the present application. The above-mentioned units are divided based on logical functions. In practical applications, the function of one unit can also be implemented by multiple units, or the functions of multiple units can be implemented by one unit. In other embodiments of the present application, the document editing device can also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented by the collaboration of multiple units. According to another embodiment of the present application, the following can be performed by running on a general computing device such as a computer including processing elements and storage elements such as a central processing unit (CPU), a random access storage medium (RAM), and a read-only storage medium (ROM). Figure 4 , Fig.10 A computer program (including program code) for each step involved in the corresponding method shown in FIG. Fig.14 The document editing device shown in the embodiment of the present application is implemented by the document editing method. The computer program can be recorded on a computer-readable recording medium, for example, and loaded into the above-mentioned computing device through the computer-readable recording medium and run therein.
[0157] In the embodiment of the present application, the conversation page between N users displayed by the display unit 1401 of the terminal 102 includes a collaborative editing entry. Any user among the N users can trigger the collaborative editing of the target document among the N users by selecting the collaborative editing entry. This triggering method is relatively simple and convenient. Secondly, when the collaborative editing entry in the conversation page is selected, the processing unit 1402 displays the document editing window of the target document in the instant messaging application. The processing unit 1402 also displays in the document editing window of the target document the document content generated by the collaborative editing of the target document by M users among the N users in real time. The document editing window of the target document is provided by the instant messaging application, that is, the collaborative document editing process in the instant messaging session scenario does not require switching and jumping of the application, which simplifies the process of collaborative document editing and can effectively improve the efficiency of collaborative editing; in addition, the processing unit 1402 displays the document content generated by the collaborative editing in the document editing window in the form of a message in the session page, so that the document content can be intuitively displayed in the session page without the user's active access, which is convenient for users to check the document content and enables users to obtain information such as the progress and completion of collaborative editing in a timely manner, thereby improving the intuitiveness of the collaborative editing process and the collaborative editing experience. In addition, the processing unit 1402 is also used to annotate the document content, so that the collaborative editing under the instant messaging application meets the user's needs for annotating the document content and improves the user experience.
[0158] Fig.15 FIG. 1 shows a schematic diagram of a document editing device provided by an exemplary embodiment of the present application. Fig.10 , the document editing device includes a processor 1501, a communication interface 1502 and a computer-readable storage medium 1503. The processor 1501, the communication interface 1502 and the computer-readable storage medium 1503 can be connected via a bus or other means. The communication interface 1502 is used to receive and send data. The computer-readable storage medium 1503 can be stored in the memory of the document editing device, the computer-readable storage medium 1503 is used to store a computer program, the computer program includes program instructions, and the processor 1501 is used to execute the program instructions stored in the computer-readable storage medium 1503. The processor 1501 (or CPU (Central Processing Unit)) is the computing core and control core of the document editing device, which is suitable for implementing one or more instructions, and is specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding function.
[0159] The embodiment of the present application also provides a computer-readable storage medium (Memory), which is a memory device in a document editing device for storing programs and data. It is understandable that the computer-readable storage medium here can include both the built-in storage medium in the document editing device and the extended storage medium supported by the document editing device. The computer-readable storage medium provides a storage space, which stores the processing system of the document editing device. In addition, one or more instructions suitable for being loaded and executed by the processor 1501 are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage; optionally, it can also be at least one computer-readable storage medium located away from the aforementioned processor.
[0160] In one embodiment, the document editing device may be Figure 1 The terminal 102 shown; the computer-readable storage medium stores one or more instructions; the processor 1501 loads and executes the one or more instructions stored in the computer-readable storage medium to implement the corresponding steps in the above document editing method embodiment; in a specific implementation, the one or more instructions in the computer-readable storage medium are loaded by the processor 1501 and execute the following steps:
[0161] Displaying a conversation page between N users in an instant messaging application, wherein the conversation page includes a collaborative editing entry; N is an integer greater than 1;
[0162] When the collaborative editing portal is selected, a document editing window of the target document is displayed in the instant messaging application;
[0163] Displaying in real time in the document editing window of the target document the document content generated by M users among N users co-editing the target document; M is a positive integer and M≤N; and,
[0164] Display document content as a message in the conversation page.
[0165] In one implementation, a conversation page includes a message display area, which is used to display an instant communication message stream between N users; the instant communication message stream includes a collaborative document message sent by any one of the N users after editing a target document; a collaborative editing entrance is set in the collaborative document message; when the collaborative document message is selected, the collaborative editing entrance is selected.
[0166] In one implementation, the conversation page includes a message display area, in which a collaborative editing prompt is displayed, and the collaborative editing prompt is used to prompt the number of users who are performing collaborative editing among M users; the collaborative editing entrance is set in the collaborative editing prompt, and when the collaborative editing prompt is selected, the collaborative editing entrance is selected.
[0167] In one implementation, the conversation page includes a message input area, which is used to input instant messaging messages; the message input area includes a shortcut input area; and the collaborative editing entrance is set in the shortcut input area.
[0168] In one implementation, the conversation page includes a message input area, which is used to input instant messaging messages; the message input area includes an input box, and when the input box is triggered, an option bar is displayed in the conversation page, and the collaborative editing entrance is set in the option bar.
[0169] In one implementation, the document editing window of the target document is located in a document editing page, and the document editing page and the conversation page are two different pages in the instant messaging application; or,
[0170] The document editing window belongs to the session page and is displayed in the session page as a floating layer.
[0171] In one implementation, the conversation page includes a message display area, which is used to display instant messaging message streams between N users; when one or more instructions in the computer-readable storage medium are loaded by the processor 1501 and the document content is displayed in the form of messages in the conversation page, the following steps are specifically performed:
[0172] Displaying the document content in the message display area through a collaborative document message, the collaborative document message being included in the instant messaging message stream; or,
[0173] The document content is displayed through a notification message outside the message display area.
[0174] In one implementation, one or more instructions in the computer readable storage medium are loaded by the processor 1501 and further perform the following steps:
[0175] If the length of the document content exceeds the length threshold, the document content is folded and displayed in the collaborative document message and the notification message; and a folding mark is set in the collaborative document message and the notification message;
[0176] When the collapse mark is selected, the document content is fully displayed in the collaborative document message or notification message.
[0177] In one implementation, the document content includes target content, which is any content in the document content; the target document also includes annotations added to the target content; one or more instructions in the computer-readable storage medium are loaded by the processor 1501 and the following steps are further executed:
[0178] Display comments in the conversation page;
[0179] Wherein, when the annotation is displayed, the target content is highlighted; the highlighting includes: displaying the target content as a target color or displaying the target content as a target brightness.
[0180] In one implementation, the annotation includes the number of annotated users; when one or more instructions in the computer-readable storage medium are loaded by the processor 1501 and the annotation is displayed in the conversation page, the following steps are specifically performed:
[0181] The number of annotated users is displayed at the location where the target content is displayed on the conversation page.
[0182] In one implementation, the annotation includes annotation information; when one or more instructions in the computer-readable storage medium are loaded by the processor 1501 and the annotation is displayed in the conversation page, the following steps are specifically performed:
[0183] The annotation information is displayed at the display position of the target content in the conversation page; or, the annotation information is displayed in the annotation window in the conversation page.
[0184] In one implementation, the conversation page includes an annotation window; the annotation window is used to display P annotations added by M users to the document content, where P is a positive integer;
[0185] The P annotations are collectively displayed in the annotation window, or the P annotations are classified and displayed in the annotation window.
[0186] In the embodiment of the present application, firstly, the conversation page between N users displayed by the processor 1501 includes a collaborative editing entry. Any user among the N users can trigger the collaborative editing of the target document among the N users by selecting the collaborative editing entry. Such a triggering method is relatively simple and convenient. Secondly, when the collaborative editing entry in the conversation page is selected, the processor 1501 displays the document editing window of the target document, and displays in real time in the document editing window of the target document the document content generated by the collaborative editing of the target document by M users among the N users. Since the document editing window of the target document is provided by an instant messaging application, that is to say, the collaborative document editing process in the instant messaging conversation scenario does not require switching and jumping of the application, which simplifies the process of collaborative editing of documents and can effectively improve the efficiency of collaborative editing. In addition, the processor 1501 displays the document content generated by the collaborative editing in the document editing window in the form of a message in the conversation page, so that the document content can be intuitively displayed in the conversation page without the user's active access, which is convenient for users to check the document content and enables users to obtain information such as the progress and completion of collaborative editing in a timely manner, thereby improving the intuitiveness of the collaborative editing process and the collaborative editing experience. In addition, the processor 1501 also supports annotations on document content, so that the collaborative editing under the instant messaging application meets the user's needs for annotating document content, thereby improving the user experience.
[0187] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0188] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted through a computer-readable storage medium. The computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
[0189] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A document editing method, characterized in that: include: Displaying a conversation page between N users in an instant messaging application, wherein the conversation page includes a collaborative editing entry; N is an integer greater than 1; When the collaborative editing entry is selected, a document editing window of the target document is displayed in a floating layer on the conversation page in the instant messaging application; the size of the document editing window is smaller than the size of the conversation page, and the document editing window is provided by the instant messaging application; the target document refers to a document whose content is collaboratively edited by M users among the N users, and the collaborative editing refers to the M users editing the document content of the target document in the document editing window at the same time; Displaying in real time in the document editing window of the target document the document content generated by the M users among the N users co-editing the target document, and displaying in real time in the session page the document content being co-edited in the document editing window; M is a positive integer and M≤N; as well as, The document content is displayed in the conversation page in the form of a conversation message.
2. The method according to claim 1, characterized in that The conversation page includes a message display area, and the message display area is used to display the instant communication message flow between the N users; the instant communication message flow includes a collaborative document message sent by any user of the N users after editing the target document; The collaborative editing entry is set in the collaborative document message; when the collaborative document message is selected, the collaborative editing entry is selected.
3. The method according to claim 1, characterized in that The conversation page includes a message display area, in which a collaborative editing prompt is displayed, and the collaborative editing prompt is used to prompt the number of users who are currently performing collaborative editing among the M users; The collaborative editing entry is set in the collaborative editing prompt, and when the collaborative editing prompt is selected, the collaborative editing entry is selected.
4. The method according to claim 1, characterized in that The conversation page includes a message input area, and the message input area is used to input instant messaging messages; the message input area includes a shortcut input area; and the collaborative editing entrance is set in the shortcut input area.
5. The method according to claim 1, characterized in that The conversation page includes a message input area, which is used to input instant messaging messages; the message input area includes an input box, and when the input box is triggered, an option bar is displayed in the conversation page, and the collaborative editing entrance is set in the option bar.
6. The method according to claim 1, characterized in that The document editing window of the target document is located in a document editing page, and the document editing page and the conversation page are two different pages belonging to the instant messaging application; or, The document editing window belongs to the session page, and the document editing window is displayed in the session page in a floating layer manner.
7. The method according to claim 1, characterized in that The conversation page includes a message display area, and the message display area is used to display the instant communication message flow between the N users; The displaying of the document content in the conversation page in the form of a conversation message includes: The document content is displayed in the message display area through a collaborative document message, and the collaborative document message is included in the instant messaging message stream.
8. The method according to claim 7, characterized in that The method further comprises: If the length of the document content exceeds the length threshold, the document content is folded and displayed in the collaborative document message and the notification message; and a folding mark is set in the collaborative document message and the notification message; When the collapse mark is selected, the document content is fully displayed in the collaborative document message or the notification message.
9. The method according to claim 1, characterized in that The document content includes target content, and the target content is any content in the document content; the target document also includes annotations added to the target content; the method further includes: displaying the annotations in the conversation page; Wherein, when the annotation is displayed, the target content is highlighted; the highlighting includes: displaying the target content as a target color or displaying the target content as a target brightness.
10. The method according to claim 9, characterized in that The annotation includes the number of annotating users; and displaying the annotation in the conversation page includes: displaying the number of annotating users at the display position of the target content in the conversation page.
11. The method according to claim 9, characterized in that The annotation includes annotation information; and displaying the annotation in the conversation page includes: displaying the annotation information at a display position of target content in the conversation page; or displaying the annotation information in an annotation window in the conversation page.
12. The method according to claim 1, characterized in that The conversation page includes an annotation window, and the annotation window is used to display P annotations added by the M users to the document content, where P is a positive integer; The P annotations are displayed in the annotation window in a unified manner, or the P annotations are displayed in the annotation window in a classified manner.
13. A document editing device, characterized in that: include: A display unit, used to display a conversation page between N users in an instant messaging application, wherein the conversation page includes a collaborative editing entry; N is an integer greater than 1; A processing unit, configured to display a document editing window of a target document in a floating layer form on the conversation page in the instant messaging application when the collaborative editing entry is selected; the size of the document editing window is smaller than the size of the conversation page, and the document editing window is provided by the instant messaging application; the target document refers to a document whose document content is collaboratively edited by M users among the N users, and the collaborative editing refers to the M users editing the document content of the target document in the document editing window at the same time; displaying in real time in the document editing window of the target document the document content generated by the collaborative editing of the target document by M users among the N users, and displaying in real time in the conversation page the document content being collaboratively edited in the document editing window; M is a positive integer and M≤N; And, the document content is displayed in the conversation page in the form of a conversation message.
14. A document editing device, characterized in that: include: a processor adapted to execute a computer program; A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by the processor, the document editing method according to any one of claims 1 to 12 is implemented.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more instructions, and the one or more instructions are suitable for being loaded by a processor and executing the document editing method according to any one of claims 1-12.
16. A computer program product, characterized in that The computer program product includes one or more computer instructions, and the document editing device implements the document editing method according to any one of claims 1 to 12 when loading and executing the computer instructions.
Citation Information
Patent Citations
Session message display method and device, terminal and storage medium
CN110601959A
Multi-person collaborative document editing method and system
CN110765744A
Picture processing method and device and storage medium
CN111309211A