CN114818614A - File storage method, recovery method, medium and system based on block editor - Google Patents

File storage method, recovery method, medium and system based on block editor Download PDF

Info

Publication number
CN114818614A
CN114818614A CN202210239692.XA CN202210239692A CN114818614A CN 114818614 A CN114818614 A CN 114818614A CN 202210239692 A CN202210239692 A CN 202210239692A CN 114818614 A CN114818614 A CN 114818614A
Authority
CN
China
Prior art keywords
block
document
version
editor
identified
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210239692.XA
Other languages
Chinese (zh)
Inventor
汪佳敏
葛彦斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai I Cloud Network Technology Co ltd
Original Assignee
Shanghai I Cloud Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai I Cloud Network Technology Co ltd filed Critical Shanghai I Cloud Network Technology Co ltd
Priority to CN202210239692.XA priority Critical patent/CN114818614A/en
Publication of CN114818614A publication Critical patent/CN114818614A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The present invention relates to the field of document processing technologies, and in particular, to a method for storing/retrieving a document based on a block editor, a document processing system, and a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the method for storing/retrieving the document based on the block editor. According to the document storage method based on the block editor, when the editing operation of the block is identified, the page-independent historical version of the block is generated instead of storing the block together with the page where the block is located, so that the historical version of the block can be independently consulted at the position of the block on the current page without jumping to the historical version of the page to consult the content of the block, and the block is independently recovered through the document recovery method based on the block editor without recovering the whole page, so that the document editing work is more flexible and convenient.

Description

File storage method, recovery method, medium and system based on block editor
Technical Field
The present invention relates to the field of document processing technologies, and in particular, to a document storage method based on a block editor, a document processing system, and a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the document storage method based on the block editor is implemented.
Background
In recent years, a document editing manner based on a Block Editor (Block Editor) in the field of document editing has attracted much attention, and unlike a conventional rich text Editor, each item (such as a text passage, an image, a video, an audio, a list) added to a page by a user can be regarded as an independent Block in the Block Editor (Block Editor). The block editing mode enables the document to be edited more freely and the content of the page to be richer. For example, in a conventional rich text editor, the edited content defaults to a text paragraph, and a separate list plug-in needs to be installed if other items, such as a list, are to be added to the text paragraph, whereas in a block editor, the text paragraph and the list both belong to separate blocks, and the actions of creating the list and creating the text paragraph are the same, and a user can edit the list by selecting a column and a line only after adding a list block.
Currently, a document based on a block editor uses a page as a document storage unit, the page is composed of a plurality of blocks, and the page is updated and stored when the content of the block changes or the position of the block is adjusted. The existing document editing methods all provide the functions of searching and recovering historical versions of a page, but if a user wants to recover a certain version of a certain block, the user can only browse various historical versions of the page, find a historical page storing the version to be recovered of the block, copy the content of the block in the historical page, and then: finding the position of the block in the new page, and covering the original content of the block with the copied content; or, a block with the same format is newly created in the new page, and the copied content is pasted into the newly created block in the new page. The block editor in the prior art has troublesome operations of storing and restoring blocks and brings inconvenience to document editing work.
Disclosure of Invention
The invention aims to provide a document storage method based on a block editor, which can quickly and conveniently check the history editing process of a document, a computer readable storage medium storing a computer program for realizing the method when executed and a system comprising the storage medium.
A document storage method based on a block editor is provided, which comprises the following recording steps: if an editing operation on a block within the page is identified, recording a current state of the identified block, the recording including generating a page-independent historical version of the identified block, the historical version including content and editing information for the block.
Preferably, the recording step includes a start-stop step: and for the identified block, if the editing operation is identified again within the preset time period T after the editing operation is identified, continuously recording until the editing operation is not identified within the continuous time period T, and stopping recording.
Preferably, in the start-stop step, the recording is continuously performed only when the number of times of the editing operation is recognized within a preset time period T as long as a preset number of times from the recognition of the editing operation.
Preferably, the continuously recording means that: recording is performed periodically according to a preset time interval.
Preferably, the identified blocks include all blocks in which an editing operation exists within a continuous preset time period X, where X is less than or equal to T.
Preferably, the identified block includes a block group, the block group is a plurality of blocks combined together in advance, and if an editing operation on any block in the block group is identified, the current state of the block group is recorded.
The method for restoring the document based on the block editor is also provided, and for the block with the historical version generated by the document storage method based on the block editor, the content of the selected historical version of the block is displayed on the current page according to the selection of the historical version of the block.
Preferably, the method comprises the step of history version reference: providing each recorded historical version of the block for a user to select, specifically, the block comprises a plurality of time nodes respectively linked to each historical version, and if the time node is selected, the time node displays the content of the historical version corresponding to the time node; the historical version consulting step also comprises a playing step of displaying each time node in sequence according to the time sequence, and displaying the content of the historical version corresponding to each time node while displaying each time node.
There is also provided a computer readable storage medium storing a computer program which, when executed by a processor, is capable of implementing the above-described block editor-based document storage method or restoration method.
There is also provided a document processing system comprising a storage module for storing historical versions of blocks and a processor in which the above-mentioned computer-readable storage medium is prestored, and a computer program on the computer-readable storage medium is executable by the processor.
Has the advantages that: according to the document storage method based on the block editor, when the editing operation of the block is identified, the page-independent historical version of the block is generated instead of storing the block together with the page where the block is located, so that the historical version of the block can be independently consulted at the position of the block on the current page without jumping to the historical version of the page to consult the content of the block, and the block is independently recovered through the document recovery method based on the block editor without recovering the whole page, so that the document editing work is more flexible and convenient.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below.
FIG. 1 is a flow chart of a block editor-based document storage method, a recovery method of the present invention.
FIG. 2 is a schematic diagram of a client module architecture of the document processing system of the present invention.
FIG. 3 is a schematic diagram of a display window of a client of the document processing system of the present invention.
Fig. 4 is a schematic diagram of a display state of the earliest history version, which is the first time node in the document storage method based on the block editor in the display window according to the present invention.
Fig. 5 is a diagram illustrating a display state of a last time node, i.e., a latest history version, in a display window in the block editor-based document storage method according to the present invention.
FIG. 6 is a diagram illustrating a history version timeline in a dragged state and before dragging in the method for storing a document based on a block editor according to the present invention.
Fig. 7 is a diagram illustrating a state after dragging the history version time axis in fig. 6.
FIG. 8 is a diagram showing a history document "resume" of the history document referring method of the present invention.
FIG. 9 is a diagram of a historical version of the block "work experience one" in the history document "resume" of FIG. 8.
FIG. 10 is a diagram of another historical version of the block "work experience one" in the history document "resume" of FIG. 8.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The document processing system of the embodiment is used for implementing the document storage method and the document recovery method shown in fig. 1, the document processing system comprises a client and a server, and the client comprises a control module, an input module, a display module, a selection module, a time axis control module, a storage module and a content comparison module which are respectively connected with the control module, as shown in fig. 2. The user uses the editor (input module) of the client side to edit the document, the edited document is displayed in a page form in a whole, the editor automatically creates or the user selects to create a plurality of blocks to store the edited content, the user can edit the content of each block independently, and a single page can display a plurality of blocks simultaneously. The document processing system stores the page content under editing through the recording step of the block editor-based document storage method of the present embodiment, and specifically, if the control module of the client identifies an editing operation (the editing operation includes insertion, deletion, format setting, and the like) on a block within the page, the control storage module records the current state of the identified block, that is, generates a page-independent history version of the identified block. The history version includes the content of the block and editing information including editing time, editor, etc. And, the content comparison module also records the revised content of the block. In practice, the generation of the page-independent historical version of the identified block is implemented by generating a complete block snapshot for each block created within a predetermined time (e.g., 1 minute), and the document processing system uploads the block snapshots as historical versions of the block from the client and stores the block snapshots in the server, so as to ensure that the data of the block is not lost due to various accidents of the client. When a user uses a client with the document processing system of the embodiment, the history versions of the blocks stored on the server side can be referred by the client through the document recovery method based on the block editor detailed below, the history versions of the blocks are selected alternatively, the content of the selected history version of the block is displayed on the current page, and therefore the current version is replaced by any history version of the block, and the recovery of the selected history version is realized.
In the document storage method based on the block editor according to this embodiment, the recording step includes a start-stop step: if one or more editing operations are recognized within a preset time period T (such as 30 seconds) since the editing operation is recognized (the preset number of times to be reached by the number of editing operations can be set by a user according to actual conditions), recording is continuously carried out until the editing operation is not recognized within a continuous time period T (such as 5 minutes) since the last editing operation is recognized, and the recording is stopped. Wherein, continuously recording means that: the recording is performed periodically according to a preset time interval (e.g., 1 minute).
Preferably, the identified blocks include all blocks for which there is an editing operation within a continuous predetermined time period X (e.g., 20 seconds), X being less than or equal to T. The plurality of blocks are continuously edited in a short time, which indicates that the blocks have strong correlation and can be stored together as correlated blocks.
Preferably, the identified block includes a block group, the block group is a plurality of blocks combined together in advance, and if an editing operation on any block in the block group is identified, the current state of the block group is recorded.
According to the document storage method based on the block editor, when the editing operation on the block is identified, the page-independent historical version of the block is generated instead of storing the block together with the page where the block is located, so that the historical version of the block can be independently consulted at the position of the block on the current page without jumping to the historical version of the page to consult the content of the block.
For the block with the history version generated by the document storage method based on the block editor, the document recovery method based on the block editor of the embodiment is executed, and the content of the selected history version of the block is displayed on the current page according to the selection of the history version of the block by the user. The user selects from among the recorded historical versions of the block by a historical version review step as follows. The history version reference step is specifically described below.
Specifically, a document processing system initiates a task of querying the historical version of a block, a display window 1 of the block shown in fig. 3 is displayed on the display page of the client in a popup or other manner in real time, a historical version time axis 2 is arranged in the display window 1, a plurality of time nodes 3 respectively corresponding to the historical versions of the block at different times are marked on the historical version time axis 2, and each time node 3 is linked to the corresponding historical version stored at the server. In the display window 1, a content display area 4 above the history version time axis 2 is used for displaying the history version content, and an information display area 5 of the currently displayed history version is arranged on the left side below the history version time axis 2. When the user selects any time node 3 of the historical version time axis 2, the control module of the client controls the content display area 4 to display the corresponding historical version content, and the information display area 5 displays the information of the historical version, such as the block type, the editing time, the editor and the like. The middle below the historical version time axis 2 is an operation button area, the operation button area comprises an earliest point button 71, a last point button 81, a play button 6, a next point button 82 and a latest point button 72 from left to right, and when each button of the operation button area is clicked, an identification signal is transmitted to a control module of the client. The lower right corner of the display window 1 is provided with a version restoring button 9, and when the button is clicked, the current version is replaced by the currently selected historical version, namely the selected historical version is copied and then is used as a new current version.
For any block, if the user executes the historical version viewing step of the embodiment, the user can view all the historical versions of the block, so as to view the whole life cycle variation process of the block.
When a user initiates a task of querying the historical versions of a block at a client, time nodes 3 with the same number as the historical versions of the block are generated on the historical version time axis 2 of the display window 1. The time nodes 3 are selected by a user for clicking and are linked to historical versions of different versions, the time nodes 3 are sequentially arranged on the historical version time axis 2 according to the editing time sequence, and the time intervals between every two adjacent time nodes 3 are the same.
The user performs a selection step to select the content of the history version that is desired to be referred to, in particular, the user controls the mouse to select the time node with the mouse pointer as a selector (selection module), the user controls the mouse pointer to click to select the first time node (oldest history version), see fig. 4, the selected first time node 3 is illuminated, and the content "history version 1" of its corresponding history version is displayed in the content display area 4 of the display window 1. And then, the user executes the playing step, the user controls a mouse pointer to click a playing button 6 in the operation button area, and if the current user clicks the playing button 6 without clicking the selected time node, the system defaults to start playing from the first time node. Each time node is sequentially displayed in the display window 1 according to the time sequence, and the content of the history version corresponding to the time node is displayed while each time node is displayed.
In the actual use process, a user can select any one time node on the time axis 2 of the historical version, and the historical version contents of each time node are automatically and continuously displayed from the selected time node. The selection module of the client comprises a click identification module and a hover identification module, the click identification module is triggered when a mouse which is used as a selector is controlled by a user to directly click any time node, the time node is selected, or the hover identification module is triggered when the mouse is controlled by the user to stay at the time node for a preset time length T (such as 3 seconds), and the time node is considered to be selected. In addition, after clicking the selected time node, the user continues to click the previous point button 81/next point button 82 of the operation button area, and then jumps left/right respectively and displays the historical version content of the version corresponding to the time node adjacent to the time node; the user, after clicking on the selected time node, continues to click on the earliest point button 71 and jumps directly to the first, earliest historical version of the block (FIG. 4); after the user clicks the selected time node and continues to click the latest point button 72, the user jumps directly to the last latest historical version (current version) of the block (fig. 5), and when the user selects the latest historical version and executes the playing step, the user jumps to the earliest historical version to start the circular playing.
The display window 1 displays 8 time nodes at most at the same time, and when the number of the historical versions of the block exceeds 8, the historical version time axis 2 is a dynamic axis capable of being dragged left and right. When a user places a mouse pointer on the horizontal line of the historical version time axis 2 and presses a left mouse button, the historical version time axis 2 is in the state of fig. 6, the previous 8 time nodes are displayed, at this time, the first time node (the earliest historical version) is close to the leftmost time, the user keeps pressing the left mouse button and drags the historical version time axis 2 to the left, the subsequent time nodes 3 are sequentially displayed on the display window 1, the user drags the historical version until the latest historical version is close to the rightmost state in fig. 7, the left mouse button is released, see fig. 7, and the 8 time nodes are displayed on the display window 1.
After the user selects the time node, the document processing system executes the playing step, the historical version contents of a plurality of time nodes are sequentially displayed according to the selected time node, the user views the whole life cycle change process of the block in a playing mode, and the historical editing process of the document can be rapidly and conveniently viewed.
During the history editing process of viewing the document, the user can click the play button 6 to pause to a certain history version at any time and click the resume this version button 9 of the display window 1 to resume the version. The file recovery method based on the block editor is used for independently recovering the blocks without recovering the whole page, so that the file editing work is more flexible and convenient.
Taking the "resume" of the history document in fig. 8 as an example, the history document reference method of the present embodiment can realize the copy recovery function of the recovery amount of the history document. In the working experience block of the historical document "resume", a user can establish various working experience historical versions of company a according to the actual working condition of the user and the recruitment condition of the target filing company, for example, the filing company emphasizes the on-duty product investigation capability, and the user can call up the historical version 1 (see fig. 9) of company a in the "resume", which emphasizes the working condition that the user participates in the product investigation at company a, and when filing another company operating on the product, the user can restore the working experience to the historical version 2 (see fig. 10), which describes the working tasks related to the product activity planning of company a participated by the user. The historical document consulting method can realize the recovery function of different blocks in different application scenes, so that a user can simply and conveniently modify the document in different scenes.
The above-described embodiments of the document processing system are merely illustrative, and the modules illustrated as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Finally, it should be noted that: the document storage method based on the block editor disclosed in the embodiment of the present invention is only a preferred embodiment of the present invention, and is only used for illustrating the technical solution of the present invention, not limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. The document storage method based on the block editor is characterized by comprising the following recording steps: if an editing operation on a block within the page is identified, recording a current state of the identified block, the recording including generating a page-independent historical version of the identified block, the historical version including content and editing information for the block.
2. The block editor-based document storage method of claim 1, wherein the recording step comprises a start-stop step of: and for the identified block, if the editing operation is identified again within the preset time period T after the editing operation is identified, continuously recording until the editing operation is not identified within the continuous time period T, and stopping recording.
3. The method according to claim 2, wherein the start/stop step is performed continuously if the number of editing operations recognized within a predetermined time period T reaches a predetermined number of times from the recognition of the editing operation.
4. The method for storing a document based on a block editor as claimed in claim 2 or 3, wherein said continuously recording means: recording is performed periodically according to a preset time interval.
5. The method of claim 1, wherein the identified blocks include all blocks in which there is an editing operation within a continuous predetermined time period X, X being less than or equal to T.
6. The method of claim 1, wherein the identified block comprises a block group, the block group is a plurality of blocks previously combined together, and if an editing operation for any block in the block group is identified, a current status of the block group is recorded.
7. A method for restoring a document by using a block editor, wherein, for a block having a history version generated by the method for storing a document by using a block editor as claimed in any one of claims 1 to 6, the contents of the selected history version of the block are displayed on the current page in response to a selection of the history version of the block.
8. The method for restoring a document based on a block editor as claimed in claim 7, comprising a history version look-up step of: providing each recorded historical version of the block for a user to select, specifically, the block comprises a plurality of time nodes respectively linked to each historical version, and if the time node is selected, the time node displays the content of the historical version corresponding to the time node; the historical version consulting step also comprises a playing step of displaying each time node in sequence according to the time sequence, and displaying the content of the historical version corresponding to each time node while displaying each time node.
9. Computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is able to carry out a block editor based document storage method according to one of claims 1 to 6 or a block editor based document retrieval method according to one of claims 7 or 8.
10. Document processing system, characterized in that it comprises a storage module for storing historical versions of blocks and a processor in which a computer-readable storage medium according to claim 9 is pre-stored, the computer program on the computer-readable storage medium being executable by the processor.
CN202210239692.XA 2022-03-12 2022-03-12 File storage method, recovery method, medium and system based on block editor Pending CN114818614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210239692.XA CN114818614A (en) 2022-03-12 2022-03-12 File storage method, recovery method, medium and system based on block editor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210239692.XA CN114818614A (en) 2022-03-12 2022-03-12 File storage method, recovery method, medium and system based on block editor

Publications (1)

Publication Number Publication Date
CN114818614A true CN114818614A (en) 2022-07-29

Family

ID=82528480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210239692.XA Pending CN114818614A (en) 2022-03-12 2022-03-12 File storage method, recovery method, medium and system based on block editor

Country Status (1)

Country Link
CN (1) CN114818614A (en)

Similar Documents

Publication Publication Date Title
JP7477028B2 (en) PROGRAM, METHOD, AND DEVICE FOR ON-DEVICE MESSAGE MANAGEMENT AND DOCUMENT GENERATION - Patent application
US11048945B2 (en) System and method for using a website containing video playlists as input to a download manager
US10725626B2 (en) Systems and methods for chat message management and document generation on devices
US7464137B2 (en) On-line conference recording system
WO2022205798A1 (en) Multimedia information editing method and apparatus therefor
DE112016001737T5 (en) Systems and procedures for notifying users of changes to files in cloud-based file storage systems
KR20100037040A (en) Collecting and presenting temporal-based action information
JP2007323222A (en) Working motion analysis method, working motion analysis apparatus and working motion analysis program
JP6669952B1 (en) Tagging apparatus, method, and program for video
US20200089964A1 (en) System and Method for Searching Video
US11804247B2 (en) Collaborative media object generation and presentation in improved collaborative workspace
JP5434041B2 (en) Document collaborative editing system, document collaborative editing method and program
JP4350137B2 (en) Terminal monitoring method, terminal monitoring apparatus, and terminal monitoring program
US10020996B1 (en) Real-time policy management of data management life cycle
JPH11327980A (en) Version management device
CN114818614A (en) File storage method, recovery method, medium and system based on block editor
CN117170538A (en) Document processing method, device, equipment and medium
CN114979743B (en) Method, device, equipment and medium for displaying audiovisual works
CN114866805A (en) Video processing method, device and storage medium
CN114611018A (en) Historical document searching method, computer readable storage medium and document processing system
CN111651111A (en) Media file processing method and device
CN112231040A (en) Method and device for editing time sequence task in software system
JP4238662B2 (en) Presentation support device and presentation support method
JP2021170242A (en) Plant monitoring/controlling apparatus
CN112148917B (en) Media play control method, device and system and computer readable storage medium

Legal Events

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