CN114997117A - Document editing method, device, terminal and non-transitory storage medium - Google Patents

Document editing method, device, terminal and non-transitory storage medium Download PDF

Info

Publication number
CN114997117A
CN114997117A CN202110232005.7A CN202110232005A CN114997117A CN 114997117 A CN114997117 A CN 114997117A CN 202110232005 A CN202110232005 A CN 202110232005A CN 114997117 A CN114997117 A CN 114997117A
Authority
CN
China
Prior art keywords
editing
content
area
content block
document
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
CN202110232005.7A
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.)
Beijing Zitiao Network Technology Co Ltd
Original Assignee
Beijing Zitiao 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 Beijing Zitiao Network Technology Co Ltd filed Critical Beijing Zitiao Network Technology Co Ltd
Priority to CN202110232005.7A priority Critical patent/CN114997117A/en
Priority to PCT/CN2022/078727 priority patent/WO2022184077A1/en
Priority to US18/279,548 priority patent/US20240303413A1/en
Publication of CN114997117A publication Critical patent/CN114997117A/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
    • 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/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]

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)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The embodiment of the disclosure provides a method, a device, a terminal and a non-transitory storage medium for document editing. The method comprises the following steps: creating a first piece of content in response to receiving a first create operation in a document; wherein the first content block comprises an interactive area, and the first content block is of a first type; responding to a first trigger operation on the first content block, and generating a first editing area, wherein the first editing area is used for editing the first content block; updating display content of an interaction area of the first piece of content in the document based on the input information received at the first editing area. The document editing method provided by the disclosure can provide extended compiling function.

Description

Document editing method, device, terminal and non-transitory storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a terminal, and a non-transitory storage medium for document editing.
Background
The traditional document has limited expressible information and can only edit the content according to the functions provided by the document, but the requirements of users are diversified, and the various requirements can not be met through the limited functions.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In order to solve the above problems, the present disclosure provides a method, an apparatus, a terminal, and a non-transitory storage medium for document editing.
According to an embodiment of the present disclosure, there is provided a method of document editing, including:
creating a first piece of content in response to receiving a first create operation in a document; wherein the first content block comprises an interactive area, and the first content block is of a first type;
responding to a first trigger operation on the first content block, and generating a first editing area, wherein the first editing area is used for editing the first content block;
updating display content of an interaction area of the first piece of content in the document based on the input information received at the first editing area.
According to an embodiment of the present disclosure, there is provided a method of document editing, including:
creating a second piece of content in response to receiving a second create operation in the document; the second content block is of a second type, the second content block comprises a second editing area, and the second editing area is used for editing the document;
generating a third editing area in response to a third trigger operation on the second content block, wherein the third editing area is used for compiling the second content block;
updating the tile type and/or display content of the second piece of content in the document based on the input information received at the third editing region.
According to an embodiment of the present disclosure, there is provided a document editing apparatus including:
a creation module to create a first piece of content in response to receiving a first creation operation in a document; wherein the first content block comprises an interactive area, and the first content block is of a first type; or, in response to receiving a second create operation in the document, creating a second piece of content; the second content block is of a second type, the second content block comprises a second editing area, and the second editing area is used for editing the document;
the generating module is used for responding to a first triggering operation on the first content block and generating a first editing area; the first editing area is used for editing the first content block; or, in response to a third trigger operation on the second content block, generating a third editing area, where the third editing area is used for compiling the second content block; and
an updating module for updating the display content of the interaction area of the first content block in the document based on the input information received in the first editing area; or updating the block type and/or the display content of the second content block in the document based on the input information received in the third editing area.
According to an embodiment of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
According to an embodiment of the present disclosure, there is provided a non-transitory storage medium storing program code for performing the above method.
The document editing scheme of the present disclosure can provide extended compilation functionality.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
FIG. 1 shows a flowchart of a document editing method of an embodiment of the present disclosure.
Fig. 2 shows a schematic diagram of a call-out operation panel according to an embodiment of the present disclosure.
Fig. 3 shows a schematic diagram of a first editing region of an embodiment of the present disclosure.
FIG. 4 shows a flowchart of a document editing method of another embodiment of the present disclosure.
Fig. 5 shows a schematic structural diagram of a document editing apparatus according to an embodiment of the present disclosure.
Fig. 6 shows a schematic structural diagram of a terminal suitable for implementing an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "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". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The terminal in the present disclosure may include, but is not limited to, mobile terminal devices such as a mobile phone, a smart phone, a notebook computer, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation apparatus, a vehicle-mounted terminal device, a vehicle-mounted display terminal, a vehicle-mounted electronic rearview mirror, and the like, and fixed terminal devices such as a digital TV, a desktop computer, and the like.
As shown in FIG. 1, the present disclosure provides a flowchart of a document editing method of an embodiment, comprising the following steps.
S100, in response to receiving a first creation operation in a document, creating a first content block; wherein the first content block comprises an interactive region, and the first content block is of a first type.
Specifically, the interaction area of the embodiment of the present disclosure may be used to display the editing result, and the first type may include a playground type, where the playground is only a temporary name of the content block, and may also be named by any other name, which is not limited herein. More specifically, the content of the document of the embodiment of the present disclosure may be composed of various content blocks, and the document may be composed of content blocks, or may be stored in content blocks, and by organizing the document into a plurality of independent content blocks, the content of each part of the document corresponding to each content block may be individually referred to, collected, and cooperatively edited, and the like. The user can realize the self-definition of the content blocks according to the requirement of the user, so that the expression capability of the document is expanded. The interactive area is used for receiving an input instruction of a user and updating the display content based on the input instruction. Optionally, the interactive area provides a component or a control, and receives an input instruction of the user to the component or the control, so as to update the display content of the component or the control; optionally, predetermined content is displayed in a component or a control provided in the interaction area, and a user may input an instruction based on the predetermined content, and in response to the input instruction, update the displayed content of the interaction area under a predetermined content framework of the component or the control.
S200, responding to a first trigger operation of the first content block, and generating a first editing area; the first editing area is used for editing the first content block.
Specifically, the embodiment of the present disclosure may include replacing the interactive area by the first editing area; or generating the first editing area in the association area of the interaction area, wherein the interaction area and the first editing area are displayed simultaneously. Alternatively, the interactive area may be connected to the first editing area through a boundary. Optionally, the components or controls of the interactive area may be edited through the first editing area, and the components or controls may be generated based on the editing result.
The first editing area can be generated by various triggering manners, for example, as shown in fig. 2, a preset symbol such as "/" is input into a document to call out an operation panel, and a Playground is selected to expand the first editing area, and the first editing area can be referred to fig. 3. And after the first editing area is expanded, compiling operation can be performed, and when compiling is performed, the top right corner icon can be triggered to enter a full screen mode for editing, so that a self-defined content block is created.
In the embodiment of the disclosure, besides the custom compilation, the content of the third-party database can be introduced in the compilation process. Embodiments of the present disclosure may include creating a connection file; retrieving a target module in a database through the connection file; acquiring a dependency tree of the target module; and carrying out recursive analysis on the target module according to the dependency tree to obtain a target file. More specifically, creating the connection file includes: acquiring a calling instruction; replacing the call instruction with a target instruction; and using the target instruction as the connection file; the target module comprises an asynchronous module, a global variable export module and a cascading style sheet module. That is, since a third-party database may have a problem of format incompatibility, the embodiment of the present disclosure provides an addressing method, which can perform addressing according to a preset path or a class library name. For example, when the asynchronous module needs to be retrieved, a connection file is created, the asynchronous module is retrieved from the database through the connection file, a dependency tree is obtained, wherein the connection file can include a target instruction generated by converting a calling instruction, and then the asynchronous module is recursively analyzed according to the dependency tree. In addition to asynchronous modules, the target module of embodiments of the present disclosure may also be a global variable derivation module, a cascading style sheet module, or other modules.
In addition, the embodiment of the present disclosure may further include hiding the first editing region; or adjusting, for example, reducing the display scale of the first editing region. Hiding the editing area or reducing the display scale, such as height, of the editing area may display the running result of the compiled content block.
And S300, updating the display content of the interactive area of the first content block in the document based on the input information received in the first editing area.
Specifically, the embodiment of the present disclosure may include updating the display content of the interactive area in real time in response to the input information received at the first editing area. When the interactive area and the first editing area are displayed simultaneously, the embodiment of the disclosure can also receive a second trigger operation on the interface where the first editing area is located; and updating the display content of the interaction area of the first content block in the document in response to the second trigger operation.
The embodiment of the disclosure may obtain instruction information for re-editing the content block; and re-editing the content block according to the instruction information to obtain an editing result. Specifically, a port for compiling the block is defined as a host end; judging an issuing port of the instruction information; if the issuing port is not the host end, the instruction information is sent to the host end, and the instruction information is executed through the host end; and returning the recompilation result to the issuing port. More specifically, the instruction information may include: replacement operation, insertion operation, removal operation, and the like.
In the embodiment of the present disclosure, the created content block may be recompiled, and the compiler is not limited to the creator, i.e., the host side, but may also include other sides. In particular, when the other end initiates recompilation, the host end may perform the modify operation. For example, custom blocks may be inherited from virtual blocks. Where inheritance can cause a child to have the properties and methods of a parent class or redefine, append properties and methods, etc., a virtual block can read and modify data. The virtual block will not start rendering until the host side data is received, and the data content may contain all data that the current content block can access and modify. By modifying the data, the embodiments of the present disclosure may perform various operations including, but not limited to, replacement, insertion, and removal, respectively. The operation can be sent to the host end in the form of a message, and the host end processes the message by analyzing the message. After the data is modified, the embodiment of the disclosure can drive the virtual block to render the modified data. The data of the content block may include written block code, data generated when the block is run, height of the content block, and the like. After the other end sends the modification message to the host end for modification, the host end returns to the other end for rendering, and refreshing operation can be avoided. The embodiment of the disclosure can read and write the persistent data through a port such as an application programming interface, and the data can be coordinated based on an operation conversion mode. The operation conversion of the embodiment of the present disclosure may be a method for maintaining consistency of different data copies in a collaborative technology, for example, in different terminals, operations are adjusted according to different operation sequences to maintain data consistency.
As shown in fig. 4, fig. 4 shows a flowchart of a document editing method according to another embodiment of the disclosure, which includes the following steps.
S100', in response to receiving a second creation operation in the document, creating a second content block; the second content block is of a second type, the second content block includes a second editing area, and the second editing area is used for editing the document. Wherein the second type may comprise a non-playground type. The second editing area is used for receiving the editing operation of a user, and corresponding content is recorded in the editing area based on the editing operation.
S200', responding to a third trigger operation on the second content block, and generating a third editing area, wherein the third editing area is used for compiling the second content block.
S300', updating the tile type and/or the display content of the second content block in the document based on the input information received in the third editing region. Optionally, based on the input information received by the third editing region, the type and the display content of the second content block may be modified at the same time, or only the type or the display content of the second content block may be modified; wherein when only the display content of the second content block is modified, an equivalent operational effect to receiving an editing operation in the second editing region is obtained.
Unlike step S300, in step S300', the second type content block may be converted into the first type content block, and the rest of the contents may refer to the description of the foregoing embodiment and will not be repeated here.
Optionally, generating the third editing region includes: and replacing the second editing area by the third editing area.
Optionally, before updating the block type and/or the display content of the second content block in the document, the method further includes:
receiving a fourth trigger operation on an interface where the third editing area is located; updating the tile type and/or display content of the second content block in the document in response to the fourth trigger operation.
Optionally, generating the third editing region includes: and generating the third editing area in the associated area of the second editing area, wherein the second editing area and the third editing area are displayed simultaneously.
Optionally, updating the tile type and/or the display content of the second content block in the document based on the input information received in the third editing region includes: updating the tile type and/or display content of the second piece of content in real-time in response to the input information received at the third editing region.
Optionally, hiding the third editing region; or adjusting the display scale of the third editing area.
Optionally, creating a connection file; retrieving a target module in a database through the connection file; acquiring a dependency tree of the target module; and carrying out recursive analysis on the target module according to the dependency tree to obtain a target file.
Optionally, the creating a connection file includes: acquiring a calling instruction; replacing the call instruction with a target instruction; and using the target instruction as the connection file; the target module comprises an asynchronous module, a global variable derivation module and a cascading style sheet module.
Optionally, obtaining instruction information for re-editing the content block; and re-editing the content block according to the instruction information to obtain an editing result.
Optionally, defining a creation port of the content block as a host end; judging an issuing port of the instruction information; if the issuing port is not the host end, the instruction information is sent to the host end, and the instruction information is executed through the host end; and returning the editing result to the sending port; wherein the instruction information includes: replacement operation, insertion operation, and removal operation.
As shown in fig. 5, fig. 5 shows a schematic structural diagram of a document editing apparatus according to an embodiment of the present disclosure. In fig. 5, the apparatus 10 may include a creation module 11, a generation module 13, and an update module 15. Wherein the creation module 11 is operable to create a first piece of content in response to receiving a first creation operation in a document; wherein the first content block comprises an interactive area, and the first content block is of a first type; or, in response to receiving a second create operation in the document, creating a second piece of content; the second content block is of a second type, the second content block comprises a second editing area, and the second editing area is used for editing the document; the generating module 13 may be configured to generate a first editing region in response to a first trigger operation on the first content block; the first editing area is used for editing and translating the first content block; or, in response to a third trigger operation on the second content block, generating a third editing area, where the third editing area is used for compiling the second content block; the updating module 15 is operable to update the display content of the interaction area of the first content block in the document based on the input information received at the first editing area; or updating the block type and/or the display content of the second content block in the document based on the input information received in the third editing area. In addition, the apparatus 10 of the embodiment of the present disclosure may further include a defining module that defines a port where the block is compiled as a host, an obtaining module that obtains instruction information for recompiling the block, and a determining module that determines an issue port of the instruction information.
For the embodiments of the apparatus, since they correspond substantially to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, wherein the modules described as separate modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
In addition, the present disclosure also provides a terminal, including: at least one memory and at least one processor; wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
Furthermore, the present disclosure also provides a non-transitory storage medium storing program code for performing the above method.
Referring now to fig. 6, a block diagram of a terminal 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The terminal shown in fig. 6 is only an example, and should not bring any limitation to the functions and the use range of the embodiment of the present disclosure.
As shown in fig. 6, the terminal 800 may include a processing device (e.g., central processing unit, graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage device 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the terminal 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the terminal 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 6 illustrates a terminal 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the terminal; or may exist separately and not be assembled into the terminal.
The computer readable medium carries one or more programs which, when executed by the terminal, cause the terminal to: displaying at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the displayed internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the terminal, cause the terminal to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first display unit may also be described as a "unit displaying at least two internet protocol addresses".
The functions described herein above 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), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The 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, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a method of document editing, including:
creating a first piece of content in response to receiving a first create operation in a document; wherein the first content block comprises an interactive area, and the first content block is of a first type;
responding to a first trigger operation on the first content block, and generating a first editing area, wherein the first editing area is used for editing the first content block;
updating display content of an interaction area of the first content block in the document based on the input information received at the first editing area.
According to one or more embodiments of the present disclosure, the generating of the first editing region includes:
and replacing the interactive area by the first editing area.
According to one or more embodiments of the present disclosure, before updating the display content of the interactive area of the first content block in the document, the method further includes:
receiving a second trigger operation on an interface where the first editing area is located;
and updating the display content of the interaction area of the first content block in the document in response to the second trigger operation.
According to one or more embodiments of the present disclosure, the generating of the first editing region includes:
generating the first editing area in the association area of the interaction area; wherein the interactive area and the first editing area are displayed simultaneously.
According to one or more embodiments of the present disclosure, the updating, in the document, the display content of the interaction area of the first content block based on the input information received at the first editing area includes:
and updating the display content of the interactive area in real time in response to the input information received in the first editing area.
According to one or more embodiments of the present disclosure, the method further comprises:
hiding the first editing area; or
And adjusting the display scale of the first editing area.
According to one or more embodiments of the present disclosure, the method further comprises:
creating a connection file;
searching a target module in a database through the connection file;
acquiring a dependency tree of the target module; and
and carrying out recursive analysis on the target module according to the dependency tree to obtain a target file.
According to one or more embodiments of the present disclosure, the creating of the connection file includes:
acquiring a calling instruction;
replacing the call instruction with a target instruction; and
taking the target instruction as the connection file;
the target module comprises an asynchronous module, a global variable derivation module and a cascading style sheet module.
According to one or more embodiments of the present disclosure, the method further comprises:
acquiring instruction information for re-editing the content block;
and re-editing the content block according to the instruction information to obtain an editing result.
According to one or more embodiments of the present disclosure, the method further comprises:
defining the creation port of the content block as a host end;
judging an issuing port of the instruction information;
if the issuing port is not the host end, the instruction information is sent to the host end, and the instruction information is executed through the host end; and
returning the editing result to the sending port;
wherein the instruction information includes: replacement operation, insertion operation, and removal operation.
According to one or more embodiments of the present disclosure, there is provided a method of document editing, including:
creating a second piece of content in response to receiving a second create operation in the document; the second content block is of a second type, the second content block comprises a second editing area, and the second editing area is used for editing the document;
generating a third editing area in response to a third trigger operation on the second content block, wherein the third editing area is used for compiling the second content block;
updating the tile type and/or display content of the second piece of content in the document based on the input information received at the third editing region.
According to one or more embodiments of the present disclosure, there is provided an apparatus for document editing, including:
a creation module to create a first piece of content in response to receiving a first creation operation in a document; wherein the first content block comprises an interactive area, and the first content block is of a first type; or, in response to receiving a second create operation in the document, creating a second piece of content; the second content block is of a second type, the second content block comprises a second editing area, and the second editing area is used for editing the document;
the generating module is used for responding to a first triggering operation on the first content block and generating a first editing area; the first editing area is used for editing and translating the first content block; or, in response to a third trigger operation on the second content block, generating a third editing area, where the third editing area is used for compiling the second content block; and
an updating module for updating the display content of the interaction area of the first content block in the document based on the input information received in the first editing area; or updating the block type and/or the display content of the second content block in the document based on the input information received in the third editing area.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; wherein the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
According to one or more embodiments of the present disclosure, there is provided a non-transitory storage medium storing program code for performing the above-described method.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (14)

1. A method of document editing, comprising:
creating a first piece of content in response to receiving a first create operation in a document; wherein the first content block comprises an interactive area, and the first content block is of a first type;
responding to a first trigger operation on the first content block, and generating a first editing area, wherein the first editing area is used for editing the first content block;
updating display content of an interaction area of the first piece of content in the document based on the input information received at the first editing area.
2. The method of claim 1, wherein generating the first editing region comprises:
and replacing the interactive area by the first editing area.
3. The method of claim 2, further comprising, prior to updating the display content of the interactive area of the first piece of content in the document:
receiving a second trigger operation on an interface where the first editing area is located;
and updating the display content of the interaction area of the first content block in the document in response to the second trigger operation.
4. The method of claim 1, wherein the generating a first edit region comprises:
and generating the first editing area in the association area of the interaction area, wherein the interaction area and the first editing area are displayed simultaneously.
5. The method of claim 4, wherein updating the display content of the interactive area of the first content block in the document based on the input information received in the first editing area comprises:
and updating the display content of the interactive area in real time in response to the input information received in the first editing area.
6. The method of claim 1, further comprising:
hiding the first editing area; or
And adjusting the display scale of the first editing area.
7. The method of claim 1, further comprising:
creating a connection file;
retrieving a target module in a database through the connection file;
acquiring a dependency tree of the target module; and
and carrying out recursive analysis on the target module according to the dependency tree to obtain a target file.
8. The method of claim 7, wherein creating the connection file comprises:
acquiring a calling instruction;
replacing the call instruction with a target instruction; and
taking the target instruction as the connection file;
the target module comprises an asynchronous module, a global variable derivation module and a cascading style sheet module.
9. The method of claim 1, further comprising:
acquiring instruction information for re-editing the content block;
and re-editing the content block according to the instruction information to obtain an editing result.
10. The method of claim 9, further comprising:
defining the creation port of the content block as a host end;
judging an issuing port of the instruction information;
if the issuing port is not the host end, the instruction information is sent to the host end, and the instruction information is executed through the host end; and
returning the editing result to the sending port;
wherein the instruction information includes: replacement operation, insertion operation, and removal operation.
11. A method of document editing, comprising:
creating a second piece of content in response to receiving a second create operation in the document; the second content block is of a second type, the second content block comprises a second editing area, and the second editing area is used for editing the document;
generating a third editing area in response to a third trigger operation on the second content block, wherein the third editing area is used for compiling the second content block;
updating the tile type and/or display content of the second piece of content in the document based on the input information received at the third editing region.
12. An apparatus for document editing, comprising:
a creation module to create a first piece of content in response to receiving a first creation operation in a document; wherein the first content block comprises an interactive area, and the first content block is of a first type; or, in response to receiving a second create operation in the document, creating a second piece of content; the second content block is of a second type, the second content block comprises a second editing area, and the second editing area is used for editing the document;
the generating module is used for responding to a first triggering operation on the first content block and generating a first editing area; the first editing area is used for editing the first content block; or, in response to a third trigger operation on the second content block, generating a third editing area, where the third editing area is used for compiling the second content block; and
an updating module for updating the display content of the interaction area of the first content block in the document based on the input information received in the first editing area; or updating the block type and/or the display content of the second content block in the document based on the input information received in the third editing area.
13. A terminal, comprising:
at least one memory and at least one processor;
wherein the at least one memory is configured to store program code and the at least one processor is configured to invoke the program code stored in the at least one memory to perform the method of any of claims 1 to 11.
14. A non-transitory storage medium for storing program code for performing the method of any one of claims 1 to 11.
CN202110232005.7A 2021-03-02 2021-03-02 Document editing method, device, terminal and non-transitory storage medium Pending CN114997117A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202110232005.7A CN114997117A (en) 2021-03-02 2021-03-02 Document editing method, device, terminal and non-transitory storage medium
PCT/CN2022/078727 WO2022184077A1 (en) 2021-03-02 2022-03-02 Document editing method and apparatus, and terminal and non-transitory storage medium
US18/279,548 US20240303413A1 (en) 2021-03-02 2022-03-02 Document editing method and apparatus, and terminal and non-transitory storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110232005.7A CN114997117A (en) 2021-03-02 2021-03-02 Document editing method, device, terminal and non-transitory storage medium

Publications (1)

Publication Number Publication Date
CN114997117A true CN114997117A (en) 2022-09-02

Family

ID=83018191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110232005.7A Pending CN114997117A (en) 2021-03-02 2021-03-02 Document editing method, device, terminal and non-transitory storage medium

Country Status (3)

Country Link
US (1) US20240303413A1 (en)
CN (1) CN114997117A (en)
WO (1) WO2022184077A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115688698A (en) * 2022-09-29 2023-02-03 华为技术有限公司 Text code editing method and system
CN117610505B (en) * 2023-11-24 2024-05-10 中国人民解放军军事科学院系统工程研究院 Data processing method and device based on standard model

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9946691B2 (en) * 2013-01-30 2018-04-17 Microsoft Technology Licensing, Llc Modifying a document with separately addressable content blocks
US20150046799A1 (en) * 2013-08-07 2015-02-12 Eustace Prince Isidore Advanced Editing and Interfacing in User Applications
US10713424B2 (en) * 2018-04-10 2020-07-14 Microsoft Technology Licensing, Llc Automated document content modification
EP3686748B1 (en) * 2019-01-22 2022-05-04 PRMA Consulting Limited Synchronizing content blocks between multiple electronic documents
CN109948102B (en) * 2019-03-27 2021-05-25 维沃移动通信有限公司 Page content editing method and terminal
CN111985203A (en) * 2020-08-14 2020-11-24 维沃移动通信有限公司 Document processing method, document processing device and electronic equipment

Also Published As

Publication number Publication date
WO2022184077A1 (en) 2022-09-09
US20240303413A1 (en) 2024-09-12

Similar Documents

Publication Publication Date Title
CN109634598B (en) Page display method, device, equipment and storage medium
CN110046021B (en) Page display method, device, system, equipment and storage medium
CN110389807B (en) Interface translation method and device, electronic equipment and storage medium
CN110070593B (en) Method, device, equipment and medium for displaying picture preview information
US20220385836A1 (en) Video special effect configuration file generation method and apparatus, and video rendering method and apparatus
CN110688829A (en) Table generation method, device, equipment and storage medium
WO2022184077A1 (en) Document editing method and apparatus, and terminal and non-transitory storage medium
CN113449498A (en) Method and device for generating form, storage medium and electronic equipment
CN111459364A (en) Icon updating method and device and electronic equipment
CN110134905B (en) Page update display method, device, equipment and storage medium
CN111857720A (en) Method and device for generating user interface state information, electronic equipment and medium
CN111652675A (en) Display method and device and electronic equipment
EP4134904A1 (en) Image special effect configuration method, image recognition method, apparatuses, and electronic device
CN114428925A (en) Page rendering method and device, electronic equipment and computer readable medium
CN111381819A (en) List creation method and device, electronic equipment and computer-readable storage medium
CN113205601A (en) Roaming path generation method and device, storage medium and electronic equipment
CN115113787B (en) Message processing method, device, equipment and medium
CN111753238A (en) Data mapping method and device and electronic equipment
CN116301526A (en) Interaction method, interaction device, electronic equipment and storage medium
CN115576458A (en) Application window display method, device, equipment and medium
CN116775174A (en) Processing method, device, equipment and medium based on user interface frame
CN115526953A (en) Method and device for generating view, electronic equipment and storage medium
CN111199519B (en) Method and device for generating special effect package
CN112153439A (en) Interactive video processing method, device and equipment and readable storage medium
CN114564246B (en) Method, device, equipment and medium for drawing graphic anchor points on line

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