A document editing method, device, equipment and storage medium

By displaying the content panel in the document editing interface and displaying referenceable document units, the problem of users needing to frequently switch documents when editing documents is solved, achieving a more efficient and convenient document editing experience.

CN114997116BActive Publication Date: 2025-03-18BEIJING ZITIAO NETWORK TECH CO LTD

Patent Information

Application Number
CN202110227796.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-01
Publication Date
2025-03-18
Estimated Expiration
2041-03-01

AI Technical Summary

Technical Problem

In the prior art, the user needs to find and open the target document before pasting the required content in the currently edited document, which interrupts the user's editing operation and reduces the user experience.

Method used

A document editing method is provided, by receiving a trigger command in a first document interface, displaying a content panel, and displaying a document unit including the content of a second document part in the panel. The user can select these document units and display them in the first document interface in a preset mode.

Benefits of technology

This method simplifies user operation steps, allows users to quickly reference and embed content from other documents, and improves the user's editing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114997116B_ABST
    Figure CN114997116B_ABST
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a method, apparatus, device and storage medium for editing a document. The method comprises: in response to a trigger command received in a first document interface, displaying a content panel in the first document interface, wherein at least one document unit is displayed in the content panel, and the document unit includes part of the content of a second document; in response to a selection operation of a document unit in the content panel, displaying the document unit in a preset mode in the interface of the first document. The document editing method provided by the embodiments of the present disclosure can quickly call up a reference panel in a document, and display referenceable objects in the panel, thereby simplifying the user's operation steps and improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the technical field of electronic devices, and in particular, to a document editing method, apparatus, device, and storage medium. Background Art

[0002] In the prior art, when a user wants to add a piece of content from another document to a currently edited document, the user can only search for the corresponding target document first, find the required content from the target document and copy it, and finally paste it into the currently edited document.

[0003] The drawback of the prior art is that the target document needs to be found and opened before the desired content can be obtained, which interrupts the user's editing operation on the current document and reduces the user's editing experience. Summary of the invention

[0004] The embodiments of the present disclosure provide a document editing method, apparatus, device and storage medium, which can simplify the user's operation steps and improve the user experience.

[0005] In a first aspect, an embodiment of the present disclosure provides a method for editing a document, comprising:

[0006] In response to a trigger command received in the first document interface, displaying a content panel in the first document interface, wherein at least one document unit is displayed in the content panel, and the document unit includes a portion of the content of the second document;

[0007] In response to a selection operation on the document unit in the content panel, the document unit is displayed in a preset mode in the interface of the first document.

[0008] In a second aspect, the present disclosure also provides a document editing device, including:

[0009] A content panel display module, configured to display a content panel in the first document interface in response to a trigger command received in the first document interface, wherein at least one document unit is displayed in the content panel, and the document unit includes a portion of the content of the second document;

[0010] The document unit display module is used to display the document unit in a preset mode in the interface of the first document in response to a selection operation on the document unit in the content panel.

[0011] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0012] one or more processing devices;

[0013] A storage device for storing one or more instructions;

[0014] When the one or more instructions are executed by the one or more processing devices, the one or more processing devices implement the document editing method as described in the embodiment of the present disclosure.

[0015] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processing device, implements the document editing method as described in the embodiment of the present disclosure.

[0016] The disclosed embodiment first responds to a trigger command received in the first document interface, displays a content panel in the first document interface, displays at least one document unit in the content panel, and includes a partial content panel of the second document; then responds to a selection operation of the document unit in the content panel, displays the document unit in a preset mode in the interface of the first document, and the preset mode is different from the display style of the content in the first document content panel. The document editing method provided by the disclosed embodiment can quickly call up a reference panel in a document and display referenceable objects in the panel, simplifying the user's operation steps and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flowchart of a document editing method in an embodiment of the present disclosure;

[0018] Figure 2 is a schematic diagram of an underlying interaction process in an embodiment of the present disclosure;

[0019] Figure 3 is a flow chart of a method for displaying a content panel in an embodiment of the present disclosure;

[0020] Figure 4 is a schematic diagram of a recommendation strategy in an embodiment of the present disclosure;

[0021] Figure 5 is a schematic diagram of a display method of preview information in an embodiment of the present disclosure;

[0022] Figure 6 is a structural schematic diagram of a document editing device in an embodiment of the present disclosure;

[0023] Figure 7 It is a structural schematic diagram of an electronic device in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0025] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0026] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0027] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0028] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0029] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0030] Figure 1 This is a flowchart of a document editing method provided by an embodiment of the present disclosure. This embodiment is applicable to the case of obtaining an object that a user desires to reference when editing a document. The method can be executed by a document editing device, which can be composed of hardware and / or software and can generally be integrated in a device with a document editing function, which can be an electronic device such as a user terminal. Figure 1 As shown, the specific steps include:

[0031] Step 110: In response to a trigger command received in the first document interface, display a content panel in the first document interface.

[0032] Among them, the document can be a text document, a table, a presentation and other files, the first document can be a target document that the user wants to edit, the interface can be a display interface that allows the user to edit the first document, the trigger command can be an instruction for calling up the content panel, the content panel can be a tool panel in the document editing interface for performing reference operations, at least one document unit is displayed in the content panel, the document unit can be a text unit, a table unit, a picture unit, etc., and the document unit includes part of the content of the second document.

[0033] Specifically, the trigger command content panel received in the first document interface can be triggered by the user, or can be automatically triggered when certain conditions are met. For example, the user can trigger the content panel waving command event by inputting a set waving character, clicking a set button, or inputting a set voice command; or the terminal can automatically wake up the content panel when receiving characters related to an object frequently referenced by the user.

[0034] Optionally, the user may trigger a content panel awakening instruction event by inputting a set awakening character, and the terminal calls the content panel and displays it according to the content panel awakening instruction.

[0035] In this embodiment, in response to a trigger command received in the interface of the first document, the manner of displaying the content panel in the first document interface may be: displaying the document unit in a preset mode in the interface of the first document, the preset mode including a reference mode different from the display style of the content in the first document, or a normal mode the same as the display style of the content in the first document.

[0036] Specifically, the user can choose the way to display the document unit in the interface of the first document. For example, the user can choose to display it in a reference mode that is different from the display style of the content in the first document, or can choose a normal mode, that is, a mode that is the same as the display style of the content of the first document.

[0037] In this embodiment, before responding to the trigger command received in the first document interface, it is also possible to: in the editing interface of the current document, if a set wake-up character input by the user is received, it is determined that the trigger command is received.

[0038] Specifically, the set wake-up character can be a specific character set in the terminal for awakening the content panel, such as "@", "[[", etc. In the editing interface of the current document, if the set wake-up character input by the user is received, for example, the character "@" is received, it can be determined that a wake-up trigger event is generated, that is, the wake-up instruction of the content panel is triggered, and then the content panel can be called and displayed to perform further operations.

[0039] Furthermore, other characters or shortcut keys for invoking the content panel can be set in the terminal, or a button for invoking the content panel can be displayed in the document editing interface. For example, the user can also invoke the content panel by entering " / " (slash tool), clicking the "+" button on a blank line in the document, and setting a shortcut key for invoking the content panel.

[0040] In the editing interface of the current document, calling and displaying the content panel according to the invocation trigger event can quickly invoke the content panel in the document, thereby reducing the user's operation steps.

[0041] In this embodiment, in response to a trigger command received in the first document interface, the manner of displaying the content panel in the first document interface may be: obtaining associated information of the document unit; and displaying the associated information of the document unit in a set manner on the content panel.

[0042] The document unit may be a data block or document of a set type in the space where the current document is located; the associated information may be information related to the document unit, such as summary information or title of the document unit.

[0043] Optionally, the document unit is a data block of a set type existing in other documents; or the document unit is a document.

[0044] Specifically, the set type data block is a module in the document. A text, a picture, a code, etc. are all different types of data blocks. A document is composed of multiple data blocks. Users can reference data blocks in other documents. Furthermore, users can also use documents as reference objects. When other documents are embedded in the current document, the referenced document can be regarded as a data block in the current document.

[0045] Furthermore, before obtaining preview information of the candidate reference object, it is also possible to: determine the candidate reference object to be previewed according to the preview operation instruction; or determine the candidate reference object with the highest display order among the candidate reference objects as the candidate reference object to be previewed.

[0046] Specifically, the candidate reference object to be previewed can be determined based on an operation instruction input by the user to preview the associated information of the candidate reference object, for example, based on which candidate reference object in the candidate reference object list the user places the cursor on; if the user does not input a preview operation instruction, the candidate reference object with the highest display order in the candidate reference object list can be determined as the candidate reference object to be previewed.

[0047] Displaying the associated information of the candidate reference objects in a set manner on the content panel and further previewing the candidate reference objects can enable the user to obtain more relevant information so that the user can select the object he wants to reference.

[0048] The user's operation on the associated information in the content panel may be clicking an insert button on the panel or double-clicking a candidate reference object, and establishing a reference relationship between a document and a reference object may be pasting or connecting the reference object to the current document.

[0049] Specifically, after the user selects a candidate reference object, the user can click an insert button on the panel or double-click the selected object to establish a reference relationship between the current document and the reference object.

[0050] Further, Figure 2 is a schematic diagram of a bottom-level interaction process in this embodiment, such as Figure 2 As shown, a search operation is performed in document A according to the search characters input by the user, and the candidate reference object list returns document information related to the search content. If the user selects document B as the reference object, the content of document B is inserted into document A, and then the key information of the referenced document B is described in A, including the source of the referenced content and the location of the referenced content in the source document. After the reference is completed, if the user receives an operation in document A or document B to edit the content of the real-time reference part, the editing instruction is pushed to the server, and the server will simultaneously push the relevant editing instructions to other clients, and update the corresponding content in document A and document B to achieve the purpose of collaboration.

[0051] Step 120: In response to a selection operation on a document unit in the content panel, display the document unit in a preset mode in the interface of the first document.

[0052] The selection operation may be an operation in which the user moves the cursor to the document unit or clicks on the document unit, and the preset mode may be a pre-set way of displaying the document unit.

[0053] Specifically, when the terminal recognizes that the user has selected a document unit, the document unit can be displayed in the currently edited document in a set mode. Optionally, in response to the selection operation of the document unit in the content panel, the document unit can be displayed in a preset mode in the interface of the first document by: displaying the title of the second document at the top of the document unit; displaying the content of the second document below the title; displaying a reference mark in the document unit, the reference mark indicating that the second document is referenced in the first document. The reference mark can include a vertical line, a text box, a highlight, etc.

[0054] Furthermore, the title can be clicked to jump to the second document. The user can click on the title at the top of the document unit to jump to the second document.

[0055] In this embodiment, the document editing method may also be: displaying a creation instruction control for creating a third document on the content panel; and creating the third document in response to a user operation on the creation instruction control.

[0056] The third document may be a new document created by the user.

[0057] Specifically, if no document unit is obtained or the user does not select a document unit, the user can create a new document unit by operating the create command control on the content panel. For example, after the content panel is called up, if no relevant data block or document is found after searching according to the search character input by the user, a create command control can be displayed to allow the user to create a new object. Furthermore, the search character can be defaulted as the title of the newly created document unit.

[0058] Furthermore, in response to the user's operation on the creation instruction control, the third document may be created by displaying the third document or a document unit in the third document in a preset mode in the first document.

[0059] Specifically, after the third unit is created, the created third document or the document unit in the third document may be displayed in the first document.

[0060] In this embodiment, the document editing method may also be: in response to an editing instruction received in the first document interface, a content panel is displayed in the first document interface, and editing prompt information is displayed in the content panel.

[0061] Specifically, after the second document is referenced in the first document, if the user edits the content of the real-time referenced part in the first document or the second document, the editing instruction is pushed to the server, and the server will simultaneously push related editing instructions to other clients, thereby achieving the purpose of collaboration.

[0062] The disclosed embodiment first responds to a trigger command received in the first document interface, displays a content panel in the first document interface, and displays at least one document unit in the content panel, and the document unit includes a partial content panel of the second document; then responds to a selection operation of the document unit in the content panel, displays the document unit in a preset mode in the interface of the first document, and the preset mode is different from the display style of the content in the first document content panel. The document editing method provided by the disclosed embodiment can quickly call up the content panel in the document and display referenceable objects in the panel, simplifying the user's operation steps and improving the user experience.

[0063] Figure 3This is a flow chart of a method for displaying a content panel provided by an embodiment of the present disclosure. This embodiment can be applied to the case where a document unit and its associated information are acquired and displayed according to a set strategy after the content panel is awakened. Figure 3 As shown, the specific steps include:

[0064] Step 210: Obtain the associated information of the document unit.

[0065] The associated information of the document unit may be information related to the document unit, such as summary information or title of the document unit, etc. The associated information of the document unit may be obtained by reading the content of the document unit and extracting the information therein, for example, the associated information may be obtained by extracting the title of the document or the first line of text in the text content of a data block.

[0066] In this embodiment, the method of obtaining the associated information of the document unit can be: receiving the search characters input by the user in the content panel, and determining the document unit based on the search character query; or if it is recognized that the search character field is empty, determining the document unit based on the set recommendation strategy.

[0067] Among them, the characters input by the user after the content panel is evoked can be used as search characters.

[0068] Optionally, after the content panel is evoked, the search characters input by the user can be received, a query can be performed based on the search characters within the space where the current document is located, and the document unit can be determined based on the set search strategy; if the user does not enter the search characters, the document unit can be determined based on the set recommendation strategy.

[0069] By obtaining the associated information of the candidate reference object document unit, the reference objects that the user may need can be more intuitively displayed to the user, making it more convenient for the user to determine the reference object.

[0070] Specifically, after the content panel is called up, a search can be performed based on the search characters input by the user, and the searched related data blocks or documents are used as candidate reference objects. For example, if the user calls up the content panel by setting a call-up character, the characters that continue to be input after the set call-up character can be used as search characters, and then the candidate reference objects that can be referenced can be searched based on the search characters. Optionally, when the user does not input a search character, the candidate reference objects can be determined based on the set recommendation strategy. After the candidate reference objects are determined, they can be displayed in the content panel in the form of a list.

[0071] Optionally, the content on the content panel can be displayed according to the type sorting rules of author, document, operation, and data block. For example, if the search character entered by the user is "hi", the content panel will first display documents whose author names contain "hi", then documents whose titles contain "hi", then the creation instruction control for creating reference objects, and finally the data block containing "hi". If there is no data of a certain type, such as no matching keywords, it will not be displayed.

[0072] The recommendation strategy may be set in various ways, such as making recommendations based on objects recently referenced in the current document or based on content recently browsed by the user.

[0073] Specifically, after the content panel is invoked, the user may not input a search character. At this time, the terminal recognizes that the search character field is empty and can determine a candidate reference object according to a set recommendation strategy.

[0074] Figure 4 is a schematic diagram of a recommended strategy in this embodiment, such as Figure 4 As shown, the content panel displays the objects that the user has recently browsed. Furthermore, the search scope of the recommendation strategy can be set to all members, documents and data blocks in the workspace where the current document is located. The recommendation strategy can be set to:

[0075] (1) Author

[0076] 1) By default, the user is the first item in the recommendation list.

[0077] 2) Arrange the authors most recently mentioned by the user in reverse chronological order, with the most recently mentioned authors at the top.

[0078] 3) Prioritize the current document collaborators, and then arrange other members.

[0079] 4) Sort the documents by their relevance to the author, from high to low.

[0080] (2) Documentation

[0081] 1) Arrange the documents most recently viewed by the user in reverse chronological order, with the most recently mentioned documents at the front.

[0082] 2) According to the relevance between the candidate reference documents and the current document, and between the candidate reference documents and the user of the current document, the candidate reference documents are sorted from high to low according to the relevance.

[0083] (3) Data Block

[0084] 1) Arrange the data blocks in the documents most recently browsed by the user in reverse chronological order, with the data blocks in the most recently mentioned documents at the front.

[0085] 2) According to the correlation between the candidate reference document and the current document, the candidate reference document and the user of the current document, the candidate reference block and the current document, and the candidate reference block and the author of the current document, the candidate reference documents are sorted from high to low according to the correlation.

[0086] Step 220: Display the associated information of the document unit in a set manner on the content panel.

[0087] The associated information of the document unit may be relevant information of the document unit, such as summary information or title.

[0088] After obtaining the associated information of the document unit, it can be displayed on the content panel in a set manner, wherein the setting manner may be a list, a grid, a carousel, a lane, a card, a picture and text, etc., and the associated information may be summary information of the document unit.

[0089] In this embodiment, the manner of displaying the associated information of the document unit in a set manner on the content panel may be: displaying summary information of multiple document units in the form of list items on the content panel.

[0090] Optionally, after determining the document unit, the summary information of multiple document units can be displayed in the form of list items on the content panel. A list can be in the form of pure text, icons and text, or pictures and titles. Users can view more content by sliding the list.

[0091] Furthermore, the summary information of the document unit can be displayed in other ways. For example, the summary information of the document unit can be laid out on the content panel in a grid manner. Text or pictures and other content can be displayed in the grid. For the grid that cannot be displayed on the content panel, the user can also view it by sliding the grid.

[0092] Furthermore, after the associated information of the candidate reference objects is displayed, the object selected by the user can be previewed according to the user's operation.

[0093] In this embodiment, after displaying the associated information of the document unit in a set manner on the content panel, it is also possible to: obtain the preview information of the document unit in response to an operation instruction input by the user to preview the associated information of the document unit; and display the preview information.

[0094] The user inputs an operation instruction to preview the associated information of the document unit by moving the cursor to a document unit in the document unit list or clicking on the document unit. For example, when the user moves the cursor to a document unit in the candidate object list, the preview information of the document unit can be displayed.

[0095] Furthermore, the preview information may be displayed in an extended area of ​​the content panel; wherein the preview information includes the content of the document unit and the associated content of the document unit in the second document.

[0096] Specifically, Figure 5 is a schematic diagram of a display method of preview information in this embodiment, such as Figure 5 As shown, an extension area independent of the content panel can be created, and the extension area can be a floating window, and the content of the floating window is the preview information of the document unit. The preview information includes at least part of the content of the document unit, wherein the search character and the data block in which it is located can be highlighted, and the data block matched based on the search character can be displayed in the middle position of the floating window, so that the previous and next sections of the data block can also be displayed in the floating window. Furthermore, a scroll bar can be set on the floating window so that the user can view more content by sliding the scroll bar. If the entire content of the candidate reference object cannot be displayed in the floating window, the user can view it by opening the document where the candidate reference object is located. Furthermore, if the candidate reference object is a non-existent object, a floating window with no content can be displayed during preview, that is, there is no preview information.

[0097] Optionally, in addition to the context, more information can be displayed in the floating window to help users locate. If the document unit is a document, the creator of the document, the contributors of the document (who edited the document), the time when the document was created, and the time when the document was last edited can be displayed in the floating window; if the candidate reference object is a data block, the creator of the data block, the contributors of the data block (who edited the data block), the creation time of the data block, the time when the data block was last edited, the number of times the data block was cited, and which documents cited the data block can be displayed in the floating window.

[0098] Furthermore, the preview information may be displayed in an extended area of ​​the content panel; wherein the preview information includes the content of the document unit and the associated content of the document unit in the second document.

[0099] The disclosed embodiment obtains the associated information of the document unit; then displays the associated information of the document unit in a set manner on the content panel. The display method of the content panel provided by the disclosed embodiment performs a query based on the search character when the user enters the search character, and performs a recommendation based on the recommendation strategy when the user does not enter the search character, and finally arranges and displays the determined candidate reference objects according to certain rules, so that the objects that the user is most likely to reference can be displayed first, making it more convenient for the user to make references.

[0100] Figure 6The structure diagram of a document editing device provided by an embodiment of the present disclosure is shown in FIG. Figure 6 As shown, the device includes: a content panel display module 210 and a document unit display module 220.

[0101] The content panel display module 210 is used to display the content panel in the first document interface in response to a trigger command received in the first document interface.

[0102] Wherein, at least one document unit is displayed in the content panel, and the document unit includes partial content of the second document.

[0103] Optionally, the content panel display module 210 is further used for:

[0104] The document unit is displayed in a preset mode in the interface of the first document, where the preset mode includes a reference mode different from the display style of the content in the first document, or a normal mode the same as the display style of the content in the first document.

[0105] Optionally, the content panel display module 210 is further used for:

[0106] Get the associated information of the document unit; display the associated information of the document unit in a set manner on the content panel.

[0107] Optionally, the content panel display module 210 is further used for:

[0108] The search character input by the user is received in the content panel, and the document unit is determined according to the search character query; or if it is recognized that the search character column is empty, the document unit is determined according to the set recommendation strategy.

[0109] Optionally, the content panel display module 210 is further used for:

[0110] Display summary information of multiple document units in the form of list items on the content panel.

[0111] The document unit display module 220 is used to display the document unit in a preset mode in the interface of the first document in response to a selection operation on the document unit in the content panel.

[0112] Optionally, the document unit display module 220 is further used for:

[0113] The title of the second document is displayed at the top of the document unit; the content of the second document is displayed below the title; and a reference mark is displayed in the document unit, indicating that the second document is referenced in the first document.

[0114] Optionally, the document unit display module 220 is further used for:

[0115] In response to a triggering operation on the title, the second document is opened.

[0116] Optionally, the device further includes: a creation instruction control display module and a third document creation module.

[0117] The creation instruction control display module is used to display a creation instruction control for creating a third document on the content panel.

[0118] The third document creation module is used to create a third document in response to the user's operation on the creation instruction control.

[0119] Optionally, the third document creation module is further used for:

[0120] The third document or a document unit in the third document is displayed in the first document in a preset mode.

[0121] Optionally, the device further includes: a preview information acquisition module and a preview information display module.

[0122] The preview information acquisition module is used to acquire the preview information of the document unit in response to an operation instruction input by a user to preview the associated information of the document unit.

[0123] The preview information display module is used to display the preview information.

[0124] Optionally, the preview information display module is further used to: display the preview information in the extended area of ​​the content panel; wherein the preview information includes the content of the document unit and the associated content of the document unit in the second document.

[0125] Optionally, the device further comprises a second content panel display module, which is used to display a content panel in the first document interface in response to an editing instruction received in the first document interface, wherein editing prompt information is displayed in the content panel.

[0126] The above device can execute the methods provided by all the above embodiments of the present disclosure, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not fully described in this embodiment, please refer to the methods provided by all the above embodiments of the present disclosure.

[0127] Reference below Figure 7, which shows a schematic diagram of the structure of an electronic device 300 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc., or various forms of servers, such as independent servers or server clusters. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0128] like Figure 7 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only storage device (ROM) 302 or a program loaded from a storage device 308 to a random access storage device (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0129] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0130] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing a method for recommending words. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 309, or installed from a storage device 308, or installed from a ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0131] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0132] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0133] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0134] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: receives a service request sent by a client; wherein the service request carries a request identifier; if the server fails, obtains the stored historical request data according to the request identifier; and sends the historical request data to the client.

[0135] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0136] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0137] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit does not, in some cases, limit the unit itself.

[0138] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0139] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0140] According to one or more embodiments of the present disclosure, the present disclosure discloses a method for editing a document, which is characterized by comprising:

[0141] In response to a trigger command received in the interface of the first document, displaying a content panel in the first document interface, wherein at least one document unit is displayed in the content panel, and the document unit includes a portion of the content of the second document;

[0142] In response to a selection operation on the document unit in the content panel, the document unit is inserted into the interface of the first document.

[0143] Further, in response to a trigger command received in the interface of the first document, displaying a content panel in the first document interface includes:

[0144] The document unit is displayed in a preset mode in the interface of the first document, wherein the preset mode includes a reference mode different from a display style of the content in the first document, or a normal mode the same as a display style of the content in the first document.

[0145] Further, in response to a trigger command received in the first document interface, displaying a content panel in the first document interface includes:

[0146] Acquire the associated information of the document unit;

[0147] The associated information of the document unit is displayed on the content panel in a set manner.

[0148] Furthermore, the document editing method also includes:

[0149] Receiving a search character input by a user in the content panel, and determining the document unit according to the search character query; or

[0150] If it is recognized that the search character column is empty, the document unit is determined according to a set recommendation strategy.

[0151] Furthermore, after displaying the associated information of the document unit in a set manner on the content panel, the method further includes:

[0152] In response to an operation instruction input by a user to preview the associated information of the document unit, obtaining preview information of the document unit;

[0153] The preview information is displayed.

[0154] Furthermore, the preview information is displayed, including:

[0155] The preview information is displayed in an extended area of ​​the content panel; wherein the preview information includes the content of the document unit and the associated content of the document unit in the second document.

[0156] Furthermore, the associated information of the document unit is displayed in a set manner on the content panel, including:

[0157] The summary information of the plurality of document units is displayed in the form of list items on the content panel.

[0158] Further, in response to a selection operation on the document unit in the content panel, displaying the document unit in a preset mode in the interface of the first document includes:

[0159] Displaying the title of the second document at the top of the document unit;

[0160] displaying the content of the second document below the title;

[0161] A reference mark is displayed in the document unit, wherein the reference mark indicates that the second document is referenced in the first document.

[0162] Furthermore, in response to a selection operation on the document unit in the content panel, the document unit is displayed in a preset mode in the interface of the first document, further comprising:

[0163] In response to a triggering operation on the title, the second document is opened.

[0164] Furthermore, the method further comprises:

[0165] Displaying a creation instruction control for creating a reference object on the reference panel;

[0166] In response to the user's operation on the creation instruction control, a third document is created.

[0167] Further, in response to the user's operation on the creation instruction control, creating a third document includes:

[0168] The third document or a document unit in the third document is displayed in the first document in a preset mode.

[0169] Furthermore, the method further comprises:

[0170] In response to receiving an edit instruction for the document unit, content of the document unit is updated in the first document and the second document based on the edit instruction.

[0171] Note that the above are only preferred embodiments of the present disclosure and the technical principles used. Those skilled in the art will understand that the present disclosure is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present disclosure. Therefore, although the present disclosure is described in more detail through the above embodiments, the present disclosure is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present disclosure, and the scope of the present disclosure is determined by the scope of the attached claims.

Claims

1. A document editing method, characterized in that: include: In response to a trigger command received in the interface of the first document, a content panel is displayed in the first document interface, wherein at least one document unit is displayed in the content panel, and the document unit includes a part of the content of the second document, and the document unit includes a text unit, a table unit, or a picture unit; In response to a selection operation on the document unit in the content panel, displaying the document unit in a preset mode in the interface of the first document; In response to an edit instruction for the document unit received in the first document or the second document, updating the content of the document unit in the same manner in the first document and the second document based on the edit instruction; The method further includes: if the document unit is not acquired or the user does not select the document unit, displaying a creation instruction control for creating a reference object on the content panel; In response to the user's operation on the creation instruction control, a third document is created, and the third document is a new document.

2. The method according to claim 1, characterized in that The step of displaying a content panel in the first document interface in response to a trigger command received in the first document interface includes: The document unit is displayed in a preset mode in the interface of the first document, wherein the preset mode includes a reference mode different from a display style of the content in the first document, or a normal mode the same as a display style of the content in the first document.

3. The method according to claim 1, characterized in that: In response to a trigger command received in a first document interface, displaying a content panel in the first document interface includes: Acquire the associated information of the document unit; The associated information of the document unit is displayed on the content panel in a set manner.

4. The method according to claim 1, characterized in that: Also includes: Receiving a search character input by a user in the content panel, and determining the document unit according to the search character query; or If it is recognized that the search character column is empty, the document unit is determined according to a set recommendation strategy.

5. The method according to claim 3, characterized in that: After displaying the associated information of the document unit in a set manner on the content panel, the method further includes: In response to an operation instruction input by a user to preview the associated information of the document unit, obtaining preview information of the document unit; The preview information is displayed.

6. The method according to claim 5, characterized in that The preview information is displayed, including: The preview information is displayed in an extended area of ​​the content panel; wherein the preview information includes the content of the document unit and the associated content of the document unit in the second document.

7. The method according to claim 3, characterized in that Displaying the associated information of the document unit in a set manner on the content panel includes: The summary information of the plurality of document units is displayed in the form of list items on the content panel.

8. The method according to claim 1, characterized in that In response to a selection operation on the document unit in the content panel, displaying the document unit in a preset mode in the interface of the first document includes: Displaying the title of the second document at the top of the document unit; displaying the content of the second document below the title; A reference mark is displayed in the document unit, wherein the reference mark indicates that the second document is referenced in the first document.

9. The method according to claim 8, characterized in that Also includes: In response to a triggering operation on the title, the second document is opened.

10. The method according to claim 1, characterized in that The step of creating a third document in response to the user's operation on the creation instruction control comprises: The third document or a document unit in the third document is displayed in the first document in a preset mode.

11. A document editing device, characterized in that: include: A content panel display module, configured to display a content panel in the first document interface in response to a trigger command received in the first document interface, wherein the content panel displays at least one document unit, the document unit including a portion of the content of the second document, and the document unit including a text unit, a table unit or a picture unit; A document unit display module, configured to display the document unit in a preset mode in the interface of the first document in response to a selection operation on the document unit in the content panel; In response to an edit instruction for the document unit received in the first document or the second document, updating the content of the document unit in the same manner in the first document and the second document based on the edit instruction; The device also includes a creation instruction control display module and a third document creation module. The creation instruction control display module is used to display a creation instruction control for creating a reference object on the content panel if the document unit is not acquired or the user does not select the document unit; the third document creation module is used to create a third document in response to the user's operation on the creation instruction control, and the third document is a new document.

12. An electronic device, characterized in that: The electronic device comprises: one or more processing devices; A storage device for storing one or more instructions; When the one or more instructions are executed by the one or more processing devices, the one or more processing devices implement the document editing method as described in any one of claims 1-10.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the document editing method as described in any one of claims 1-10 is implemented.

Citation Information

Patent Citations

  • Module and method for rapidly searching for and interpolating stock information

    CN108182289A

  • Automated repeated content presentation

    CN108292302A

  • Online document information insertion method and device

    CN110162758A

  • Reference document updating method and device, electronic equipment and storage medium

    CN111858518A

Cited By

  • Document editing method and apparatus, device, and storage medium

    US12373638B2