WO2024002051A1 - Document editing method and apparatus, and electronic device and storage medium - Google Patents

Document editing method and apparatus, and electronic device and storage medium Download PDF

Info

Publication number
WO2024002051A1
WO2024002051A1 PCT/CN2023/102652 CN2023102652W WO2024002051A1 WO 2024002051 A1 WO2024002051 A1 WO 2024002051A1 CN 2023102652 W CN2023102652 W CN 2023102652W WO 2024002051 A1 WO2024002051 A1 WO 2024002051A1
Authority
WO
WIPO (PCT)
Prior art keywords
content block
document
online document
response
online
Prior art date
Application number
PCT/CN2023/102652
Other languages
French (fr)
Chinese (zh)
Inventor
林智丰
陈露
龚鑫
邹翔
陈泽彬
刘进坤
黄万军
Original Assignee
北京字跳网络技术有限公司
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 北京字跳网络技术有限公司 filed Critical 北京字跳网络技术有限公司
Publication of WO2024002051A1 publication Critical patent/WO2024002051A1/en

Links

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
    • G06F40/186Templates
    • 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
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • 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
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Document Processing Apparatus (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Provided in the present application are a document editing method and apparatus, and an electronic device and a storage medium. The method comprises: receiving an editing instruction for at least one content block in a first online document, and storing, in a cloud database, the at least one content block in the form of a second online document; and in response to having received a call instruction in a third online document, displaying the at least one content block at a specified position in the third online document. By means of the present application, the requirement of a user for a local template is met, such that the user can directly insert stored online document content into a local area of a document, and can freely combine a plurality of online documents to edit the whole document, thereby avoiding the problem whereby only one template can be used in the whole document and online storage and/or online insertion is not possible, and thus improving the efficiency and degree of freedom of document editing, and improving the user experience.

Description

文档编辑方法、装置、电子设备及存储介质Document editing method, device, electronic equipment and storage medium
本申请要求于2022年6月30日提交中国专利局、申请号为202210778991.0、申请名称为“文档编辑方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on June 30, 2022, with application number 202210778991.0 and the application title "Document editing method, device, electronic device and storage medium", the entire content of which is incorporated by reference. in this application.
技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种文档编辑方法、装置、电子设备及存储介质。The present application relates to the field of computer technology, and in particular, to a document editing method, device, electronic equipment and storage medium.
背景技术Background technique
相关技术中,可以预设文档模板,当需要创建文档时,点击模板即可生成包含模板内容的文档,方便用户进行内容创作。但这种方式需要基于整篇文档的维度去使用模板,不能满足更精细化的模板使用需求。In related technologies, a document template can be preset. When a document needs to be created, a document containing the template content can be generated by clicking on the template, making it convenient for users to create content. However, this method requires the use of templates based on the dimensions of the entire document, and cannot meet the needs for more refined template use.
发明内容Contents of the invention
有鉴于此,本申请的目的在于提出一种文档编辑方法、装置、电子设备及存储介质。In view of this, the purpose of this application is to provide a document editing method, device, electronic device and storage medium.
基于所述目的,在第一方面,本申请提供了一种文档编辑方法,包括:Based on the stated purpose, in a first aspect, this application provides a document editing method, including:
接收针对第一在线文档中至少一个内容块的编辑指令,将所述至少一个内容块以第二在线文档的形式保存在云数据库中;Receive an editing instruction for at least one content block in the first online document, and save the at least one content block in the cloud database in the form of a second online document;
响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块。In response to receiving the calling instruction in the third online document, the at least one content block is displayed at a designated position in the third online document.
在一种可能的实现方式中,In one possible implementation,
所述接收针对第一在线文档中至少一个内容块的编辑指令,包括:The receiving an editing instruction for at least one content block in the first online document includes:
响应于对所述至少一个内容块的确定操作,显示第一交互控件;In response to a determined operation on the at least one content block, displaying a first interactive control;
响应于对所述第一交互控件的触发操作,显示至少一个第二交互控件,通过所述第二交互控件接收所述编辑指令。In response to a triggering operation on the first interactive control, at least one second interactive control is displayed, and the editing instruction is received through the second interactive control.
在一种可能的实现方式中,In one possible implementation,
所述接收针对第一在线文档中至少一个内容块的编辑指令,包括:The receiving an editing instruction for at least one content block in the first online document includes:
响应于所述至少一个内容块被引用的次数大于预设值,显示第三交互控件,通过所述第三交互控件接收所述编辑指令。In response to the number of times the at least one content block is referenced being greater than the preset value, a third interactive control is displayed, and the editing instruction is received through the third interactive control.
在一种可能的实现方式中, In one possible implementation,
所述方法,还包括:The method also includes:
响应于焦点位于所述第二交互控件,在所述第二交互控件的关联位置显示第一演示面板,所述第一演示面板包含用于演示的图片和/或文字。In response to the focus being on the second interactive control, a first presentation panel is displayed at an associated position of the second interactive control, and the first presentation panel contains pictures and/or text for presentation.
在一种可能的实现方式中,所述方法还包括:In a possible implementation, the method further includes:
响应于所述第二交互控件首次被显示,在所述第二交互控件的关联位置显示所述第一演示面板。In response to the second interactive control being displayed for the first time, the first presentation panel is displayed at an associated location of the second interactive control.
在一种可能的实现方式中,所述将所述至少一个内容块以第二在线文档的形式保存在云数据库中之后,还包括:In a possible implementation, after saving the at least one content block in the cloud database in the form of a second online document, the method further includes:
在所述第一在线文档页面中的预设位置显示第二演示面板,所述第二演示面板包含用于演示的图片、文字和/或控件。A second presentation panel is displayed at a preset position in the first online document page, and the second presentation panel contains pictures, text and/or controls for presentation.
在一种可能的实现方式中,响应于发送所述编辑指令的为第一用户,发送所述调用指令的为第二用户;In a possible implementation, the first user responds by sending the editing instruction, and the second user sends the calling instruction;
在所述于所述第三在线文档中的指定位置显示所述至少一个内容块之后,还包括:After the at least one content block is displayed at the designated position in the third online document, the method further includes:
在在所述第一在线文档页面中的预设位置显示第三演示面板,所述第三演示面板包含用于演示的图片、文字和/或控件。A third presentation panel is displayed at a preset position in the first online document page, and the third presentation panel contains pictures, text and/or controls for presentation.
在一种可能的实现方式中,所述在所述第四交互控件中录入所述至少一个内容块的标识信息,包括:In a possible implementation, entering the identification information of the at least one content block in the fourth interactive control includes:
确定所述至少一个内容块中的第一个内容块的类型;determining a type of a first content block in the at least one content block;
响应于所述第一个内容块的类型为文本类型,将所述第一个内容块中的前N个文本字符作为所述标识信息,所述N为正整数。In response to the type of the first content block being a text type, the first N text characters in the first content block are used as the identification information, and N is a positive integer.
在一种可能的实现方式中,所述在所述第四交互控件中录入所述至少一个内容块的标识信息,包括:In a possible implementation, entering the identification information of the at least one content block in the fourth interactive control includes:
确定所述至少一个内容块中的第一个内容块的类型;determining a type of a first content block in the at least one content block;
响应于所述第一个内容块的类型为容器类型,将所述第一个内容块的容器名称作为所述标识信息。In response to the type of the first content block being a container type, the container name of the first content block is used as the identification information.
在一种可能的实现方式中,所述调用指令,包括:第一调用指令;In a possible implementation, the calling instruction includes: a first calling instruction;
所述响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块,包括: In response to receiving a calling instruction in the third online document, displaying the at least one content block at a designated position in the third online document includes:
响应于在第三在线文档中接收到所述第一调用指令,显示所述云数据库中至少一个内容块;In response to receiving the first calling instruction in the third online document, display at least one content block in the cloud database;
响应于对所述至少一个内容块的选择操作,确定所述第一调用指令的调用路径,并于所述第三在线文档中在所述调用路径的关联位置显示被选择的至少一个内容块。In response to a selection operation on the at least one content block, a calling path of the first calling instruction is determined, and the selected at least one content block is displayed in the third online document at a position associated with the calling path.
在一种可能的实现方式中,In one possible implementation,
所述响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块,包括:In response to receiving a calling instruction in the third online document, displaying the at least one content block at a designated position in the third online document includes:
响应于在第三在线文档中接收到所述调用指令,获取在所述调用指令的位置处录入的所述至少一个内容块对应的关键词信息;In response to receiving the calling instruction in the third online document, obtaining keyword information corresponding to the at least one content block entered at the position of the calling instruction;
根据所述关键词信息获取所述至少一个内容块,响应于对所述至少一个内容块的确定操作,在所述调用指令的位置显示所述至少一个内容块。The at least one content block is obtained according to the keyword information, and the at least one content block is displayed at the position of the calling instruction in response to a determining operation on the at least one content block.
在一种可能的实现方式中,所述于所述第三在线文档中的指定位置显示所述至少一个内容块,包括:In a possible implementation, displaying the at least one content block at a specified location in the third online document includes:
将被显示的所述至少一个内容块高亮显示。The at least one content block to be displayed is highlighted.
在一种可能的实现方式中,在接收针对第一在线文档中至少一个内容块的编辑指令之前,所述方法还包括:In a possible implementation, before receiving an editing instruction for at least one content block in the first online document, the method further includes:
确定所述至少一个内容块的类型;determining a type of the at least one content block;
响应于所述至少一个内容块的类型为第一类型,接收所述编辑指令的入口为显示状态或激活状态;或者,In response to the type of the at least one content block being the first type, the entry receiving the editing instruction is in a display state or an activated state; or,
响应于所述至少一个内容块的类型为第二类型,接收所述编辑指令的入口为隐藏状态或非激活状态。In response to the type of the at least one content block being the second type, the portal that receives the editing instruction is in a hidden state or an inactive state.
在第二方面,本申请提供了一种文档编辑装置,包括:In a second aspect, this application provides a document editing device, including:
保存模块,被配置为接收针对第一在线文档中至少一个内容块的编辑指令,将所述至少一个内容块以第二在线文档的形式保存在云数据库中;A saving module configured to receive an editing instruction for at least one content block in the first online document, and save the at least one content block in the cloud database in the form of a second online document;
调用模块,被配置为响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块。The calling module is configured to display the at least one content block at a specified position in the third online document in response to receiving the calling instruction in the third online document.
在第三方面,本申请提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现 如第一方面,或第一方面中任意一种实施方式所述的文档编辑方法。In a third aspect, the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the The document editing method as described in the first aspect, or any one of the implementation modes of the first aspect.
在第四方面,本申请提供了一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使计算机执行如第一方面,或第一方面中任意一种实施方式所述的文档编辑方法。In a fourth aspect, the present application provides a non-transitory computer-readable storage medium that stores computer instructions for causing a computer to execute the first aspect, or the third aspect. The document editing method according to any one of the embodiments in one aspect.
在第五方面,本申请提供一种计算机程序产品,所述计算机程序产品在设备上运行时,使得所述设备执行上述第一方面,或第一方面中任一种可能的实施方式所述的文档编辑方法。In a fifth aspect, the present application provides a computer program product. When the computer program product is run on a device, the device executes the above-mentioned first aspect or any of the possible implementations of the first aspect. Document editing methods.
从上面所述可以看出,本申请提供的一种文档编辑方法、装置、电子设备及存储介质,接收到针对第一在线文档中至少一个内容块的编辑指令,将至少一个内容块以第二在线文档的形式保存在云数据库中,可以为用户提供能够作为局部模板的第二在线文档,进而满足用户对局部模板的诉求,增强用户体验。并且,响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块,使得用户可以在文档的局部区域内直接插入保存好的第二在线文档内容,可以自由搭配多个第二在线文档来对整篇文档进行编辑,避免了整篇文档仅能使用一种模板,并且无法在线保存和/或在线插入的问题,提高文档编辑效率和文档编辑自由度。It can be seen from the above that the document editing method, device, electronic device and storage medium provided by this application receive an editing instruction for at least one content block in the first online document, and edit the at least one content block in the second The form of the online document is stored in the cloud database, which can provide users with a second online document that can be used as a partial template, thereby meeting the user's demands for partial templates and enhancing the user experience. And, in response to receiving the calling instruction in the third online document, the at least one content block is displayed at a designated position in the third online document, so that the user can directly insert the saved second content block in the local area of the document. Online document content can be freely combined with multiple second online documents to edit the entire document, which avoids the problem that only one template can be used for the entire document and cannot be saved and/or inserted online, improving document editing efficiency and Document editing freedom.
附图说明Description of drawings
为了更清楚地说明本申请或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in this application or related technologies, the drawings needed to be used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings in the following description are only for the purposes of this application. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1示出了本申请实施例所提供的一种文档编辑方法的示例性流程示意图;Figure 1 shows an exemplary flow chart of a document editing method provided by an embodiment of the present application;
图2示出了根据本申请实施例的信息选择页面的示例性示意图;Figure 2 shows an exemplary schematic diagram of an information selection page according to an embodiment of the present application;
图3示出了根据本申请实施例的多次引用部分信息的示例性场景示意图;Figure 3 shows a schematic diagram of an exemplary scenario in which partial information is referenced multiple times according to an embodiment of the present application;
图4示出了根据本申请实施例的第四交互控件的示例性触发页面示意图;Figure 4 shows a schematic diagram of an exemplary trigger page of the fourth interactive control according to an embodiment of the present application;
图5示出了根据本申请实施例的第二演示面板的示例性触发页面示意图;Figure 5 shows a schematic diagram of an exemplary trigger page of the second demonstration panel according to an embodiment of the present application;
图6示出了根据本申请实施例的第三演示面板的示例性触发页面示意图;Figure 6 shows a schematic diagram of an exemplary trigger page of the third demonstration panel according to an embodiment of the present application;
图7示出了根据本申请实施例的一种文档编辑场景的示例性示意图; Figure 7 shows an exemplary schematic diagram of a document editing scenario according to an embodiment of the present application;
图8示出了根据本申请实施例的另一种文档编辑场景的示例性示意图;Figure 8 shows an exemplary schematic diagram of another document editing scenario according to an embodiment of the present application;
图9示出了本申请实施例所提供的一种文档编辑装置的示例性结构示意图;Figure 9 shows an exemplary structural schematic diagram of a document editing device provided by an embodiment of the present application;
图10示出了本申请实施例所提供的一种电子设备的示例性结构示意图。FIG. 10 shows an exemplary structural schematic diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本申请进一步详细说明。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.
需要说明的是,除非另外定义,本申请实施例使用的技术术语或者科学术语应当为本申请所属领域内具有一般技能的人士所理解的通常意义。本申请实施例中使用的“第一”、“第二”以及类似的词语并不表示任何顺序、数量或者重要性,而只是用来区分不同的组成部分。“包括”或者“包含”等类似的词语意指出现该词前面的元件或者物件涵盖出现在该词后面列举的元件或者物件及其等同,而不排除其他元件或者物件。“连接”或者“相连”等类似的词语并非限定于物理的或者机械的连接,而是可以包括电性的连接,不管是直接的还是间接的。“上”、“下”、“左”、“右”等仅用于表示相对位置关系,当被描述对象的绝对位置改变后,则该相对位置关系也可能相应地改变。It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of this application should have the usual meanings understood by those with ordinary skills in the field to which this application belongs. The "first", "second" and similar words used in the embodiments of this application do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "include" or "comprising" mean that the elements or things appearing before the word include the elements or things listed after the word and their equivalents, without excluding other elements or things. Words such as "connected" or "connected" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right", etc. are only used to express relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
本申请提供的一种文档编辑方法、装置、电子设备及存储介质,接收到针对第一在线文档中至少一个内容块的编辑指令,将至少一个内容块以第二在线文档的形式保存在云数据库中,可以为用户提供能够作为局部模板的第二在线文档,进而满足用户对局部模板的诉求,增强用户体验。并且,响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块,使得用户可以在文档的局部区域内直接插入保存好的局部模板内容,可以自由搭配多个局部模板来对整篇文档进行编辑,避免了整篇文档仅能使用一种模板,并且无法在线保存和/或在线插入的问题,提高文档编辑效率和文档编辑自由度。This application provides a document editing method, device, electronic device and storage medium. After receiving an editing instruction for at least one content block in a first online document, the at least one content block is saved in a cloud database in the form of a second online document. , it can provide users with a second online document that can be used as a partial template, thereby meeting the user's demands for partial templates and enhancing the user experience. And, in response to receiving the calling instruction in the third online document, display the at least one content block at a designated position in the third online document, so that the user can directly insert the saved partial template into the local area of the document Content, you can freely match multiple partial templates to edit the entire document, avoiding the problem that only one template can be used for the entire document and cannot be saved and/or inserted online, improving document editing efficiency and document editing freedom. .
下面通过具体的实施例来对本申请实施例所提供的文档编辑方法进行具体说明。The document editing method provided by the embodiment of the present application will be specifically described below through specific embodiments.
图1示出了本申请实施例所提供的一种文档编辑方法的示例性流程示意 图。Figure 1 shows an exemplary flowchart of a document editing method provided by an embodiment of the present application. picture.
参考图1,本申请实施例所提供的一种文档编辑方法具体包括以下步骤:Referring to Figure 1, a document editing method provided by an embodiment of the present application specifically includes the following steps:
S102:接收针对第一在线文档中至少一个内容块的编辑指令,将所述至少一个内容块以第二在线文档的形式保存在云数据库中。S102: Receive an editing instruction for at least one content block in the first online document, and save the at least one content block in the cloud database in the form of a second online document.
在本公开的一些实施例中,将至少一个内容块以第二在线文档的形式保存在云数据库中之后,第二在线文档可以认为是一个模板,是基于至少一个内容块的内容构建的局部模板或者部分模板。S104:响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块。In some embodiments of the present disclosure, after at least one content block is saved in the cloud database in the form of a second online document, the second online document can be considered as a template, which is a partial template constructed based on the content of the at least one content block. Or part of the template. S104: In response to receiving a calling instruction in the third online document, display the at least one content block at a designated position in the third online document.
在本公开的一些实施例中,内容块是文档的基本组成单元,即文档由多个内容块构成,每个内容块均可以进行编辑,内容块中可以承载文字、图片、视频等内容,此处不对内容种类进行限定。In some embodiments of the present disclosure, a content block is the basic component unit of a document, that is, a document is composed of multiple content blocks, each content block can be edited, and the content block can carry text, pictures, videos, and other content. There are no restrictions on content types.
图2示出了根据本申请实施例的信息选择页面的示例性示意图。Figure 2 shows an exemplary schematic diagram of an information selection page according to an embodiment of the present application.
参考图2,针对于步骤S102,当用户在当前的第一在线文档中选择至少一个内容块时,例如内容块可以为使用光标选中的部分文字,可以根据编辑指令在云数据库中将被选择的信息保存为第二在线文档,等待被调用。Referring to Figure 2, for step S102, when the user selects at least one content block in the current first online document, for example, the content block can be a part of the text selected using the cursor, and can be selected in the cloud database according to the editing instruction. The information is saved as a second online document, waiting to be recalled.
图3示出了根据本申请实施例的多次引用部分信息的示例性场景示意图。Figure 3 shows a schematic diagram of an exemplary scenario in which partial information is referenced multiple times according to an embodiment of the present application.
在本公开的一些实施例中,编辑指令可以为对页面中的控件的操作,例如选中内容块或焦点位于内容块之后,在内容块的关联位置显示第一交互控件,选中或焦点位于第一交互控件之后,显示至少一个第二交互控件,点击第二交互控件,从而完成编辑指令的触发流程;编辑指令还可以为一个或多个快捷键的组合,例如当在线文档中的部分信息被选中后,以点击的方式触发“=”键,则触发“=”键的动作可以被认定为保存指令。“=”键可以链接后台功能,将第一交互控件(例如保存工具)唤醒,于在线文档中调用第二交互控件,例如保存模板菜单,其中保存模板菜单中设置有保存功能,例如图2中的“保存为模板”功能,当保存模板菜单中的保存功能被触发时,可以将被选择的信息保存为局部模板,并将局部模板存储在云数据库中。具体地,当点击“保存为模板”功能后,被选中的信息被保存为一个局部模板,该局部模板可以以第二在线文档的形式进行存储,并且该局部模板可以被存储在云数据库中,等待被调用。 In some embodiments of the present disclosure, the editing instruction may be an operation on a control in the page, for example, selecting a content block or having focus behind the content block, displaying the first interactive control at an associated position of the content block, selecting or focusing on the first After the interactive control, at least one second interactive control is displayed, and the second interactive control is clicked to complete the triggering process of the editing instruction; the editing instruction can also be a combination of one or more shortcut keys, for example, when part of the information in the online document is selected Then, if the "=" key is triggered by clicking, the action of triggering the "=" key can be regarded as a save command. The "=" key can link the background function, wake up the first interactive control (such as the save tool), and call the second interactive control in the online document, such as the save template menu, where the save template menu is set with a save function, such as in Figure 2 "Save as template" function, when the save function in the save template menu is triggered, the selected information can be saved as a partial template, and the partial template can be stored in the cloud database. Specifically, when the "Save as Template" function is clicked, the selected information is saved as a partial template. The partial template can be stored in the form of a second online document, and the partial template can be stored in the cloud database, Waiting to be called.
在本公开的一些实施例中,响应于焦点位于第二交互控件,在第二交互控件的关联位置显示第一演示面板,第一演示面板包含用于演示的图片和/或文字。例如,当用户需要将文档中的部分内容保存为模板时,可以通过选中内容并通过相应流程调出第二交互控件,点击第二交互控件即可完成模板的保存,当焦点位于第二交互控件时,会在第二交互控件的附件显示一个包含内容的第一演示面板,演示的内容可以包括图像、视频、动图、文字中的一种或多种,该演示面板用于向用户演示保存或使用模板的操作流程;第一演示面板中还可以包括交互控件,例如用于打开关联页面的控件,或者用于关闭面板的控件。In some embodiments of the present disclosure, in response to the focus being on the second interactive control, a first presentation panel is displayed at an associated position of the second interactive control, and the first presentation panel contains pictures and/or text for presentation. For example, when the user needs to save part of the content in the document as a template, he can select the content and call up the second interactive control through the corresponding process. Click the second interactive control to complete the saving of the template. When the focus is on the second interactive control When , a first presentation panel containing content will be displayed at the attachment of the second interactive control. The content of the presentation may include one or more of images, videos, animations, and text. The presentation panel is used to demonstrate saving to the user. Or use the operation process of the template; the first demonstration panel may also include interactive controls, such as controls for opening associated pages, or controls for closing the panel.
在本公开的一些实施例中,为了既引导用户又不过分打扰用户,可以限定第一演示面板的显示条件,例如当所述第二交互控件首次被显示时或者焦点首次位于所述第二交互控件时,在所述第二交互控件的关联位置显示所述第一演示面板。In some embodiments of the present disclosure, in order to guide the user without disturbing the user too much, the display condition of the first demonstration panel may be defined, for example, when the second interactive control is displayed for the first time or the focus is on the second interaction for the first time. control, the first presentation panel is displayed at an associated position of the second interactive control.
在本公开的一些实施例中,确定被选择的信息被引用的次数是否大于预设引用次数阈值,当被选择的信息被引用的次数大于预设引用次数阈值,则确定该信息使用频率较高,可以引导用户将该信息保存为局部模板,进而便于用户后续的引用操作。此时可以调用引导菜单,根据引导菜单调用保存模板菜单。其中,引用可以是对文档中内容块的复制粘贴操作,也可以是对文档中内容块的数据引用操作,数据引用操作指的是基于该内容块建立另外一个新的内容块,两个内容块具有相同的内容并且建立关联关系,当编辑其中一个内容块的内容时,另外一个内容块的内容也相应的更新,数据引用操作可以是在同一篇文档中对内容块的引用,也可以是跨文档对内容块的引用。在本公开的一些实施例中,参考图3,当检测到用户多次引用某一段信息后,可以按照预设规则触发第三交互控件(例如引导菜单),进而引导用户将多次引用的信息保存为第二在线文档。In some embodiments of the present disclosure, it is determined whether the number of times the selected information is cited is greater than a preset citation count threshold. When the number of times the selected information is cited is greater than the preset citation count threshold, it is determined that the information is used more frequently. , which can guide the user to save the information as a partial template, thereby facilitating the user's subsequent reference operations. At this time, the boot menu can be called, and the save template menu can be called according to the boot menu. Among them, the reference can be a copy-paste operation of the content block in the document, or a data reference operation of the content block in the document. The data reference operation refers to establishing another new content block based on the content block. Two content blocks Have the same content and establish an association. When editing the content of one content block, the content of the other content block is also updated accordingly. The data reference operation can be a reference to the content block in the same document, or it can be across The document's reference to the content block. In some embodiments of the present disclosure, referring to Figure 3, when it is detected that a user has referenced a certain piece of information multiple times, a third interactive control (such as a guide menu) can be triggered according to preset rules, thereby guiding the user to refer to the information referenced multiple times. Save as a second online document.
在本公开的一些实施例中,当检测到某段信息被多次引用后,弹出引导菜单,并由引导菜单进一步自动调用保存模板菜单,当保存模板菜单中的保存功能被触发后,被选中的信息被保存为一个第二在线文档,该在线文档可以以文档的形式进行存储,并且该局部模板可以被存储在模板库中,等待被调用。需要说明的是,引导菜单也可以在弹出后,不自动调用保存模板菜单,而是等待 用户指令,当接收到用户发送的调用指令后,触发保存模板菜单,以供用户将被选择的信息保存为第二在线文档。In some embodiments of the present disclosure, when it is detected that a certain piece of information has been referenced multiple times, a boot menu pops up, and the boot menu further automatically calls the save template menu. When the save function in the save template menu is triggered, the save template menu is selected. The information is saved as a second online document, the online document can be stored in the form of a document, and the partial template can be stored in the template library, waiting to be called. It should be noted that the boot menu can also not automatically call the save template menu after popping up, but wait. User instruction: after receiving the calling instruction sent by the user, the save template menu is triggered so that the user can save the selected information as a second online document.
在本公开的一些实施例中,将被选择的信息保存为局部模板后,为了方便后续调用该局部模板,可以将该局部模板进行命名。In some embodiments of the present disclosure, after the selected information is saved as a partial template, the partial template can be named in order to facilitate subsequent calling of the partial template.
图4示出了根据本申请实施例的第四交互控件的示例性触发页面示意图。Figure 4 shows a schematic diagram of an exemplary trigger page of the fourth interactive control according to an embodiment of the present application.
参考图4,在触发对内容块的编辑指令后,可以调用第四交互控件(例如模板命名菜单),根据选中的信息的第一个内容块(也可称为block)的类型,对第二在线文档进行默认命名。例如,确定第一个内容块的类型为文本类型(如图3中的“设计完成自检清单”),以被选择的信息中前N个文本字符命名第二在线文档,也就是说该在线文档可以被默认命名为“设计完成自检清单”,其中N为正整数。Referring to Figure 4, after the editing instruction for the content block is triggered, the fourth interactive control (such as the template naming menu) can be called. According to the type of the first content block (also called block) of the selected information, the second Online documents are named by default. For example, determine the type of the first content block to be text type (as shown in the "Design Completion Self-Check Checklist" in Figure 3), and name the second online document with the first N text characters in the selected information, that is to say, the online document The document can be named "Design Completion Self-Check Checklist" by default, where N is a positive integer.
在本公开的一些实施例中,当确定第一个内容块的类型为容器类型时,可以以第一个内容块的容器名称命名该在线文档,例如第一个内容块的容器类型为投票内容块,则该局部模板可以被默认命名为“投票”,其中,容器类型还可以包括高亮块、代码块、表格、分栏等种类。可以理解为文本类型的内容块为只能输入文本的内容块;容器类型的内容块包括可交互的功能和控件,部分容器类型的内容块既包括可交互的功能和控件,又可以输入文本。In some embodiments of the present disclosure, when it is determined that the type of the first content block is a container type, the online document may be named with the container name of the first content block, for example, the container type of the first content block is voting content. block, the partial template can be named "Poll" by default. The container type can also include highlight blocks, code blocks, tables, columns, etc. It can be understood that a text type content block is a content block that can only input text; a container type content block includes interactive functions and controls, and some container type content blocks include both interactive functions and controls, and can also input text.
在本公开的一些实施例中,在接收到针对第一在线文档中至少一个内容块的编辑指令之后,可以显示第四交互控件,在第四交互控件中录入至少一个内容块的标识信息,该标识信息可以为该内容块对应的命名名称,也可以为与之关联的关键词。在确定了录入第四交互控件中的内容块的标识信息后,可以将该内容块在云数据库中以第二在线文档的形式保存。第二在线文档的文档名可以为该标识信息。需要说明的是,第二在线文档的名称也可以根据用户需求进行自定义设置。In some embodiments of the present disclosure, after receiving an editing instruction for at least one content block in the first online document, a fourth interactive control may be displayed, and identification information of the at least one content block may be entered in the fourth interactive control. The identification information can be a naming name corresponding to the content block, or a keyword associated with it. After the identification information of the content block entered in the fourth interactive control is determined, the content block can be saved in the cloud database in the form of a second online document. The document name of the second online document may be the identification information. It should be noted that the name of the second online document can also be customized according to user needs.
在本公开的一些实施例中,将至少一个内容块以第二在线文档的形式保存在云数据库中之后,在第一在线文档页面中的预设位置显示第二演示面板,第二演示面板包含用于演示的图片、文字和/或控件。例如,如图5所示,当第二在线文档已经被保存后,在文档页面中的预设位置显示第二演示面板,例如右上角或者右下角,,进而引导用户使用局部模板。第二演示面板中演示的内 容可以包括图像、视频、动图、文字中的一种或多种,该演示面板用于向用户演示保存或使用模板的操作流程;第二演示面板中还可以包括交互控件,例如用于打开关联页面的控件,或者用于关闭演示面板的控件。In some embodiments of the present disclosure, after at least one content block is saved in the cloud database in the form of a second online document, a second presentation panel is displayed at a preset position in the first online document page, and the second presentation panel includes Pictures, text and/or controls used for presentation. For example, as shown in Figure 5, after the second online document has been saved, the second presentation panel is displayed at a preset position in the document page, such as the upper right corner or the lower right corner, thereby guiding the user to use the partial template. The content demonstrated in the second demonstration panel The content may include one or more of images, videos, animations, and text. The demonstration panel is used to demonstrate to the user the operation process of saving or using the template; the second demonstration panel may also include interactive controls, such as for opening A control associated with the page, or a control used to close the presentation panel.
在本公开的一些实施例中,可以通过确定保存模板菜单是否首次被调用,进而确定当前用户是否使用过第二在线文档的保存功能,从而为用户展示并提供不同的演示面板。例如,当确定保存模板菜单首次被调用时,也就是说当前用户首次使用第二在线文档的保存功能,判断该用户大概率不掌握第二在线文档的调用方法,则可以展示模板使用第二演示面板(例如全局演示面板),用户可以通过点击模板使用全局演示面板访问第二在线文档调用教程,如果用户掌握第二在线文档的调用方法,也可以通过点击“我知道了”按键,将模板使用全局演示面板关闭。通过点击“帮助”按键可以再次唤醒模板使用全局演示面板,便于引导用户对局部模板进行调用。In some embodiments of the present disclosure, different presentation panels can be displayed and provided to the user by determining whether the save template menu is called for the first time, and then determining whether the current user has used the save function of the second online document. For example, when it is determined that the save template menu is called for the first time, that is to say, the current user uses the save function of the second online document for the first time, and it is judged that the user most likely does not know the calling method of the second online document, then the second demonstration of using the template can be displayed. Panel (such as the global presentation panel), the user can use the global presentation panel to access the second online document calling tutorial by clicking on the template. If the user masters the calling method of the second online document, the user can also click the "I Got It" button to use the template. The global presentation panel closes. By clicking the "Help" button, the template can be awakened again to use the global presentation panel, which facilitates guiding the user to call local templates.
在本公开的一些实施例中,响应于发送编辑指令的为第一用户,发送调用指令的为第二用户;则在第三在线文档中的指定位置显示至少一个内容块之后,在第一在线文档页面中的预设位置显示第三演示面板,例如右上角或者右下角。即保存模板的第一用户和调用模板的第二用户为不同的用户,当第二用户仅调用过已保存的模板而没有保存过模板时,在第二用户调用模板之后显示第三演示面板,进而引导用户如何保存模板。第三演示面板包含用于演示的图片、文字和/或控件。例如,第三演示面板中演示的内容可以包括图像、视频、动图、文字中的一种或多种。该演示面板用于向用户演示保存或使用模板的操作流程;第三演示面板中还可以包括交互控件,例如用于打开关联页面的控件,或者用于关闭演示面板的控件。In some embodiments of the present disclosure, in response to the first user sending the editing instruction, and the second user sending the calling instruction; then, after at least one content block is displayed at the specified position in the third online document, the first user The third presentation panel is displayed at a preset location in the document page, such as the upper right corner or the lower right corner. That is, the first user who saves the template and the second user who calls the template are different users. When the second user only calls the saved template but does not save the template, the third demonstration panel is displayed after the second user calls the template. Then guide the user how to save the template. The third presentation panel contains pictures, text, and/or controls for the presentation. For example, the content demonstrated in the third presentation panel may include one or more of images, videos, animations, and text. This demonstration panel is used to demonstrate the operation process of saving or using the template to the user; the third demonstration panel may also include interactive controls, such as controls for opening associated pages, or controls for closing the demonstration panel.
参考图6,当将至少一个内容块以第二在线文档的形式保存在云数据库中之后,显示第二演示面板;第二演示面板用于提示用户如何调用已保存的模板。为了既引导用户又不过分打扰用户,可以限定第二演示面板的显示条件,例如当用户首次通过编辑指令保存模板时,或者当用户未通过调用指令调用过模板时。Referring to Figure 6, after at least one content block is saved in the cloud database in the form of a second online document, a second demonstration panel is displayed; the second demonstration panel is used to prompt the user how to call the saved template. In order to guide the user without disturbing the user too much, the display conditions of the second demonstration panel can be limited, for example, when the user saves the template through an editing instruction for the first time, or when the user has not called the template through a calling instruction.
图7示出了根据本申请实施例的一种文档编辑场景的示例性示意图。 FIG. 7 shows an exemplary schematic diagram of a document editing scenario according to an embodiment of the present application.
针对于步骤S104,当接收到调用指令后,可以在当前在线文档中的任意指定位置调用模板库中的任意第二在线文档。需要说明的是,调用指令可以包括:第一调用指令,第一调用指令例如可以通过“+”键触发。参考图7,当接收到第一调用指令后,可以展示模板库中的部分第二在线文档。以第二在线文档为一个局部模板为例,例如检测当前在线文档中的标题等关键词,默认展示与关键词相关度最高的5个局部模板以供使用。或者,也可以通过调用模板库中的查看功能,展示模板库中的全部局部模板,可以选择任意局部模板进行调用。Regarding step S104, after receiving the calling instruction, any second online document in the template library can be called at any specified position in the current online document. It should be noted that the calling instruction may include: a first calling instruction, and the first calling instruction may be triggered by the "+" key, for example. Referring to Figure 7, after receiving the first calling instruction, some second online documents in the template library can be displayed. Taking the second online document as a partial template as an example, for example, the keywords such as the title in the current online document are detected, and the five partial templates with the highest correlation with the keywords are displayed by default for use. Alternatively, you can also display all partial templates in the template library by calling the view function in the template library, and you can select any partial template to call.
在本公开的一些实施例中,可以确定第一调用指令的调用路径,可以在当前在线文档中与调用路径关联的位置显示被选择的第二在线文档。例如,以第二在线文档为一个局部模板为例,调用路径为通过焦点所在的内容块前的预设控件“+”触发并调用局部模板,则将焦点所在内容块的位置确定为与调用路径关联的位置;或者,调用路径可以为在内容块中输入特定的触发字符来触发并调用局部模板,则将输入触发字符的光标的位置确定为与调用路径关联的位置,调用字符可以为“@”或“/”等字符,此处不作具体限定。也可以将展示局部模板的位置确定为指定位置,并在该位置显示局部模板。In some embodiments of the present disclosure, the calling path of the first calling instruction may be determined, and the selected second online document may be displayed at a position associated with the calling path in the current online document. For example, taking the second online document as a partial template, the calling path is to trigger and call the partial template through the preset control "+" in front of the content block where the focus is located, then the position of the content block where the focus is located is determined to be the same as the calling path The associated position; alternatively, the calling path can be to enter a specific trigger character in the content block to trigger and call the local template, then the position of the cursor for inputting the trigger character is determined as the position associated with the calling path, and the calling character can be "@ " or "/" and other characters are not specifically limited here. The location where the partial template is displayed can also be determined as a specified location, and the partial template can be displayed at that location.
图8示出了根据本申请实施例的另一种文档编辑场景的示例性示意图。FIG. 8 shows an exemplary schematic diagram of another document editing scenario according to an embodiment of the present application.
参考图8,在接收到调用指令后,可以展示模板搜索菜单,可以获取在调用指令的位置处录入的至少一个内容块对应的关键词信息,进而根据关键词信息获取至少一个对应的内容块,响应于对至少一个内容块的确定操作,可以在调用指令的位置显示该至少一个内容块。可以利用模板搜索菜单的搜索功能,将关键词信息录入搜索框,搜索任意第二在线文档,获取至少一个第二在线文档,进而确定用户所需要调用的待调用第二在线文档。例如,以第二在线文档为一个局部模板为例,可以通过在模板搜索菜单中的第五交互控件(例如搜索框)中输入用户所需要的局部模板的关键词或名称,以确定待调用局部模板。进一步地,可以确定当前在线文档中光标所在位置,将光标所在位置确定为指定位置,并在指定位置调用确定的待调用局部模板以供用户使用。Referring to Figure 8, after receiving the calling instruction, the template search menu can be displayed, keyword information corresponding to at least one content block entered at the position of the calling instruction can be obtained, and at least one corresponding content block can be obtained based on the keyword information. In response to a determined operation on at least one content block, the at least one content block may be displayed at the location of the calling instruction. You can use the search function of the template search menu to enter keyword information into the search box, search for any second online document, obtain at least one second online document, and then determine the second online document to be called that the user needs to call. For example, taking the second online document as a partial template, the keyword or name of the partial template required by the user can be entered in the fifth interactive control (such as a search box) in the template search menu to determine the partial template to be called. template. Further, the position of the cursor in the current online document can be determined, the position of the cursor is determined as a designated position, and the determined local template to be called is called at the designated position for use by the user.
在一些可选的实施方式中,在当前在线文档的指定位置调用第二在线文档后,可以将被调用的第二在线文档中的内容高亮显示,以便用户对第二在线文 档进行进一步操作,并且可以通过高亮显示区分插入的不同的第二在线文档。In some optional implementations, after calling the second online document at a specified location of the current online document, the content in the called second online document can be highlighted so that the user can view the second online document. The document can be further manipulated, and different inserted second online documents can be distinguished by highlighting.
在一些可选的实施方式中,当第二在线文档调用失败时,可以弹出提示框,例如弹出“模板插入失败”的提示框,提示用户第二在线文档调用失败,用户可以重新调用其他第二在线文档。In some optional implementations, when the second online document fails to be called, a prompt box may pop up, for example, a "template insertion failed" prompt box pops up to prompt the user that the second online document call fails, and the user can call other second online documents again. Online documentation.
在一些可选的实施方式中,选择了至少一个内容块后可以确定该内容块的类型,如果确定该内容块的类型为第一类型,则可以在第一在线文档中将接收编辑指令的入口置为显示状态或者激活状态,表明可以将选择的至少一个内容块以第二在线文档形式保存为第二在线文档。需要说明的是,如果确定该内容块的类型为第二类型,则可以在第一在线文档中将接收编辑指令的入口置为隐藏状态或非激活状态,表明被选择的至少一个内容块不符合保存要求,无法以第二在线文档的形式保存。In some optional implementations, after selecting at least one content block, the type of the content block may be determined. If the type of the content block is determined to be the first type, an entry for receiving the editing instruction may be added to the first online document. Being set to a display state or an activated state indicates that at least one selected content block can be saved as a second online document in the form of a second online document. It should be noted that, if it is determined that the type of the content block is the second type, the entry for receiving editing instructions in the first online document can be set to a hidden state or an inactive state, indicating that at least one selected content block does not comply with Save requirement, cannot save as second online document.
从上面所述可以看出,本申请提供的一种文档编辑方法、装置、电子设备及存储介质,接收到针对第一在线文档中至少一个内容块的编辑指令,将至少一个内容块以第二在线文档的形式保存在云数据库中,可以为用户提供能够作为局部模板的第二在线文档,进而满足用户对局部模板的诉求,增强用户体验。并且,响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块,使得用户可以在文档的局部区域内直接插入保存好的第二在线文档内容,可以自由搭配多个第二在线文档来对整篇文档进行编辑,避免了整篇文档仅能使用一种模板,并且无法在线保存和/或在线插入的问题,提高文档编辑效率和文档编辑自由度。It can be seen from the above that the document editing method, device, electronic device and storage medium provided by this application receive an editing instruction for at least one content block in the first online document, and edit the at least one content block in the second The form of the online document is stored in the cloud database, which can provide users with a second online document that can be used as a partial template, thereby meeting the user's demands for partial templates and enhancing the user experience. And, in response to receiving the calling instruction in the third online document, the at least one content block is displayed at a designated position in the third online document, so that the user can directly insert the saved second content block in the local area of the document. Online document content can be freely combined with multiple second online documents to edit the entire document, which avoids the problem that only one template can be used for the entire document and cannot be saved and/or inserted online, improving document editing efficiency and Document editing freedom.
需要说明的是,本申请实施例的方法可以由单个设备执行,例如一台计算机或服务器等。本实施例的方法也可以应用于分布式场景下,由多台设备相互配合来完成。在这种分布式场景的情况下,这多台设备中的一台设备可以只执行本申请实施例的方法中的某一个或多个步骤,这多台设备相互之间会进行交互以完成所述的方法。It should be noted that the method in the embodiment of the present application can be executed by a single device, such as a computer or server. The method of this embodiment can also be applied in a distributed scenario, and is completed by multiple devices cooperating with each other. In this distributed scenario, one of the multiple devices can only execute one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete all the steps. method described.
需要说明的是,所述对本申请的一些实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于所述实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望 的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。It should be noted that some embodiments of the present application are described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the described embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the specific order shown, or sequential order, to achieve desirable results. the result of. Multitasking and parallel processing are also possible or may be advantageous in certain implementations.
图9示出了本申请实施例所提供的一种文档编辑装置的示例性结构示意图。FIG. 9 shows an exemplary structural schematic diagram of a document editing device provided by an embodiment of the present application.
基于同一发明构思,与上述任意实施例方法相对应的,本申请还提供了一种文档编辑装置。Based on the same inventive concept and corresponding to any of the above embodiment methods, this application also provides a document editing device.
参考图9,所述文档编辑装置,包括:保存模块和调用模块;其中,Referring to Figure 9, the document editing device includes: a saving module and a calling module; wherein,
保存模块,被配置为接收针对第一在线文档中至少一个内容块的编辑指令,将所述至少一个内容块以第二在线文档的形式保存在云数据库中;A saving module configured to receive an editing instruction for at least one content block in the first online document, and save the at least one content block in the cloud database in the form of a second online document;
调用模块,被配置为响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块。The calling module is configured to display the at least one content block at a specified position in the third online document in response to receiving the calling instruction in the third online document.
在一种可能的实现方式中,所述保存模块,进一步被配置为:In a possible implementation, the saving module is further configured as:
响应于对所述至少一个内容块的确定操作,显示第一交互控件;In response to a determined operation on the at least one content block, displaying a first interactive control;
响应于对所述第一交互控件的触发操作,显示至少一个第二交互控件,通过所述第二交互控件接收所述编辑指令。In response to a triggering operation on the first interactive control, at least one second interactive control is displayed, and the editing instruction is received through the second interactive control.
在一种可能的实现方式中,所述保存模块,进一步配置为:In a possible implementation, the saving module is further configured as:
响应于所述至少一个内容块被引用的次数大于预设值,显示第三交互控件,通过所述第三交互控件接收所述编辑指令。In response to the number of times the at least one content block is referenced being greater than the preset value, a third interactive control is displayed, and the editing instruction is received through the third interactive control.
在一种可能的实现方式中,所述装置,还包括:展示模块;In a possible implementation, the device further includes: a display module;
所述展示模块被配置为:The display module is configured as:
响应于焦点位于所述第二交互控件,在所述第二交互控件的关联位置显示第一演示面板,所述第一演示面板包含用于演示的图片和/或文字。In response to the focus being on the second interactive control, a first presentation panel is displayed at an associated position of the second interactive control, and the first presentation panel contains pictures and/or text for presentation.
在一种可能的实现方式中,所述展示模块进一步被配置为:In a possible implementation, the display module is further configured as:
响应于所述第二交互控件首次被显示,在所述第二交互控件的关联位置显示所述第一演示面板。In response to the second interactive control being displayed for the first time, the first presentation panel is displayed at an associated location of the second interactive control.
在一种可能的实现方式中,响应于发送所述编辑指令的为第一用户,发送所述调用指令的为第二用户;In a possible implementation, the first user responds by sending the editing instruction, and the second user sends the calling instruction;
所述展示模块进一步被配置为: The display module is further configured as:
在所述第一在线文档页面中的预设位置显示第三演示面板,所述第三演示面板包含用于演示的图片、文字和/或控件。A third presentation panel is displayed at a preset position in the first online document page, and the third presentation panel includes pictures, text and/or controls for presentation.
在一种可能的实现方式中,所述保存模块进一步被配置为:In a possible implementation, the saving module is further configured to:
显示第四交互控件,在所述第四交互控件中录入所述至少一个内容块的标识信息;Display a fourth interactive control, and enter the identification information of the at least one content block in the fourth interactive control;
则所述将所述至少一个内容块以第二在线文档的形式保存在云数据库中,包括:Then, storing the at least one content block in the cloud database in the form of a second online document includes:
响应于对录入的标识信息的确认操作,将所述至少一个内容块以第二在线文档的形式保存在云数据库中。In response to the confirmation operation on the entered identification information, the at least one content block is saved in the cloud database in the form of a second online document.
在一种可能的实现方式中,所述装置,还包括:命名模块;In a possible implementation, the device further includes: a naming module;
所述命名模块进一步被配置为:The naming module is further configured as:
确定所述至少一个内容块中的第一个内容块的类型;determining a type of a first content block in the at least one content block;
响应于所述第一个内容块的类型为文本类型,将所述第一个内容块中的前N个文本字符作为所述标识信息。In response to the type of the first content block being a text type, the first N text characters in the first content block are used as the identification information.
在一种可能的实现方式中,所述命名模块进一步被配置为:In a possible implementation, the naming module is further configured as:
确定所述至少一个内容块中的第一个内容块的类型;determining a type of a first content block in the at least one content block;
响应于所述第一个内容块的类型为容器类型,将所述第一个内容块的容器名称作为所述标识信息。In response to the type of the first content block being a container type, the container name of the first content block is used as the identification information.
在一种可能的实现方式中,所述调用指令,包括:第一调用指令;In a possible implementation, the calling instruction includes: a first calling instruction;
所述调用模块进一步被配置为:The calling module is further configured as:
响应于在第三在线文档中接收到所述第一调用指令,显示所述云数据库中至少一个内容块;In response to receiving the first calling instruction in the third online document, display at least one content block in the cloud database;
响应于对所述至少一个内容块的选择操作,确定所述第一调用指令的调用路径,并于所述第三在线文档中在所述调用路径的关联位置显示被选择的至少一个内容块。In response to a selection operation on the at least one content block, a calling path of the first calling instruction is determined, and the selected at least one content block is displayed in the third online document at a position associated with the calling path.
在一种可能的实现方式中,所述调用模块进一步被配置为:In a possible implementation, the calling module is further configured as:
响应于在第三在线文档中接收到所述调用指令,获取在所述调用指令的位置处录入的所述至少一个内容块对应的关键词信息; In response to receiving the calling instruction in the third online document, obtaining keyword information corresponding to the at least one content block entered at the position of the calling instruction;
根据所述关键词信息获取所述至少一个内容块,响应于对所述至少一个内容块的确定操作,在所述调用指令的位置显示所述至少一个内容块。The at least one content block is obtained according to the keyword information, and the at least one content block is displayed at the position of the calling instruction in response to a determining operation on the at least one content block.
在一种可能的实现方式中,所述装置,还包括:高亮显示模块;In a possible implementation, the device further includes: a highlighting module;
所述高亮显示模块被配置为:The highlighting module is configured as:
将被显示的所述至少一个内容块高亮显示。The at least one content block to be displayed is highlighted.
在一种可能的实现方式中,所述装置,还包括:控制模块;In a possible implementation, the device further includes: a control module;
所述控制模块被配置为:The control module is configured as:
确定所述至少一个内容块的类型;determining a type of the at least one content block;
响应于所述至少一个内容块的类型为第一类型,接收所述编辑指令的入口为显示状态或激活状态;或者,In response to the type of the at least one content block being the first type, the entry receiving the editing instruction is in a display state or an activated state; or,
响应于所述至少一个内容块的类型为第二类型,接收所述编辑指令的入口为隐藏状态或非激活状态。In response to the type of the at least one content block being the second type, the portal that receives the editing instruction is in a hidden state or an inactive state.
为了描述的方便,描述以上系统时以功能分为各种模块分别描述。当然,在实施本申请时可以把各模块的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, when describing the above system, the functions are divided into various modules and described separately. Of course, when implementing this application, the functions of each module can be implemented in the same or multiple software and/or hardware.
上述实施例的系统用于实现前述任一实施例中相应的文档编辑方法,并且具有相应的方法实施例的有益效果,在此不再赘述。The system of the above embodiments is used to implement the corresponding document editing method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described again here.
图10示出了本申请实施例所提供的一种电子设备的示例性结构示意图。FIG. 10 shows an exemplary structural schematic diagram of an electronic device provided by an embodiment of the present application.
基于同一发明构思,与上述任意实施例方法相对应的,本申请还提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现上述任意一实施例所述的文档编辑方法。图10示出了本实施例所提供的一种更为具体的电子设备硬件结构示意图,该设备可以包括:处理器1010、存储器1020、输入/输出接口1030、通信接口1040和总线1050。其中处理器1010、存储器1020、输入/输出接口1030和通信接口1040通过总线1050实现彼此之间在设备内部的通信连接。Based on the same inventive concept, corresponding to any of the above embodiments, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor When the program is executed, the document editing method described in any of the above embodiments is implemented. Figure 10 shows a more specific hardware structure diagram of an electronic device provided by this embodiment. The device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040 and a bus 1050. The processor 1010, the memory 1020, the input/output interface 1030 and the communication interface 1040 implement communication connections between each other within the device through the bus 1050.
处理器1010可以采用通用的CPU(Central Processing Unit,中央处理器)、微处理器、应用专用集成电路(Application Specific Integrated Circuit,ASIC)、或者一个或多个集成电路等方式实现,用于执行相关程序,以实现本说明书实施例所提供的技术方案。 The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit, central processing unit), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute related tasks. program to implement the technical solutions provided by the embodiments of this specification.
存储器1020可以采用ROM(Read Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、静态存储设备,动态存储设备等形式实现。存储器1020可以存储操作系统和其他应用程序,在通过软件或者固件来实现本说明书实施例所提供的技术方案时,相关的程序代码保存在存储器1020中,并由处理器1010来调用执行。The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store operating systems and other application programs. When implementing the technical solutions provided by the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 1020 and called and executed by the processor 1010 .
输入/输出接口1030用于连接输入/输出模块,以实现信息输入及输出。输入/输出模块可以作为组件配置在设备中(图中未示出),也可以外接于设备以提供相应功能。其中输入设备可以包括键盘、鼠标、触摸屏、麦克风、各类传感器等,输出设备可以包括显示器、扬声器、振动器、指示灯等。The input/output interface 1030 is used to connect the input/output module to realize information input and output. The input/output module can be configured in the device as a component (not shown in the figure), or can be externally connected to the device to provide corresponding functions. Input devices can include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices can include monitors, speakers, vibrators, indicator lights, etc.
通信接口1040用于连接通信模块(图中未示出),以实现本设备与其他设备的通信交互。其中通信模块可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信。The communication interface 1040 is used to connect a communication module (not shown in the figure) to realize communication interaction between this device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
总线1050包括一通路,在设备的各个组件(例如处理器1010、存储器1020、输入/输出接口1030和通信接口1040)之间传输信息。Bus 1050 includes a path that carries information between various components of the device (eg, processor 1010, memory 1020, input/output interface 1030, and communication interface 1040).
需要说明的是,尽管上述设备仅示出了处理器1010、存储器1020、输入/输出接口1030、通信接口1040以及总线1050,但是在具体实施过程中,该设备还可以包括实现正常运行所必需的其他组件。此外,本领域的技术人员可以理解的是,上述设备中也可以仅包含实现本说明书实施例方案所必需的组件,而不必包含图中所示的全部组件。It should be noted that although the above device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, during specific implementation, the device may also include necessary components for normal operation. Other components. In addition, those skilled in the art can understand that the above-mentioned device may only include components necessary to implement the embodiments of this specification, and does not necessarily include all components shown in the drawings.
上述实施例的电子设备用于实现前述任一实施例中相应的文档编辑方法,并且具有相应的方法实施例的有益效果,在此不再赘述。The electronic devices of the above embodiments are used to implement the corresponding document editing methods in any of the foregoing embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be described again here.
基于同一发明构思,与上述任意实施例方法相对应的,本申请还提供了一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行如上任一实施例所述的文档编辑方法。Based on the same inventive concept, corresponding to any of the above embodiment methods, the present application also provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions use To make the computer execute the document editing method as described in any of the above embodiments.
本实施例的计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变 内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。The computer-readable media in this embodiment include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information may be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change Memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic tape cassette, tape magnetic disk storage or other magnetic storage A device or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
上述实施例的存储介质存储的计算机指令用于使所述计算机执行如上任一实施例所述的文档编辑方法,并且具有相应的方法实施例的有益效果,在此不再赘述。The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the document editing method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be described again here.
所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本申请的范围(包括权利要求)被限于这些例子;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。Those of ordinary skill in the art should understand that the discussion of any above embodiments is only illustrative, and is not intended to imply that the scope of the present application (including the claims) is limited to these examples; under the spirit of the present application, the above embodiments or Technical features in different embodiments can also be combined, steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
另外,为简化说明和讨论,并且为了不会使本申请实施例难以理解,在所提供的附图中可以示出或可以不示出与集成电路(IC)芯片和其它部件的公知的电源/接地连接。此外,可以以框图的形式示出装置,以便避免使本申请实施例难以理解,并且这也考虑了以下事实,即关于这些框图装置的实施方式的细节是高度取决于将要实施本申请实施例的平台的(即,这些细节应当完全处于本领域技术人员的理解范围内)。在阐述了具体细节(例如,电路)以描述本申请的示例性实施例的情况下,对本领域技术人员来说显而易见的是,可以在没有这些具体细节的情况下或者这些具体细节有变化的情况下实施本申请实施例。因此,这些描述应被认为是说明性的而不是限制性的。In addition, to simplify illustration and discussion, and so as not to obscure the embodiments of the present application, well-known power supplies/power supplies with integrated circuit (IC) chips and other components may or may not be shown in the provided figures. Ground connection. Furthermore, devices may be shown in block diagram form in order to avoid obscuring the embodiments of the present application, and this also takes into account the fact that details regarding the implementation of these block diagram devices are highly dependent on the implementation of the embodiments of the present application. platform (i.e., these details should be well within the understanding of those skilled in the art). Where specific details (eg, circuits) are set forth to describe exemplary embodiments of the present application, it will be apparent to those skilled in the art that construction may be accomplished without these specific details or with changes in these specific details. The embodiments of this application are implemented below. Accordingly, these descriptions should be considered illustrative rather than restrictive.
尽管已经结合了本申请的具体实施例对本申请进行了描述,但是根据前面的描述,这些实施例的很多替换、修改和变型对本领域普通技术人员来说将是显而易见的。例如,其它存储器架构(例如,动态RAM(DRAM))可以使用所讨论的实施例。Although the present application has been described in conjunction with specific embodiments thereof, many alternatives, modifications and variations of these embodiments will be apparent to those of ordinary skill in the art from the foregoing description. For example, other memory architectures such as dynamic RAM (DRAM) may use the discussed embodiments.
本申请实施例旨在涵盖落入所附权利要求的宽泛范围之内的所有这样的替换、修改和变型。因此,凡在本申请实施例的精神和原则之内,所做的任何 省略、修改、等同替换、改进等,均应包含在本申请的保护范围之内。 The present embodiments are intended to embrace all such alternatives, modifications and variations that fall within the broad scope of the appended claims. Therefore, anything done within the spirit and principles of the embodiments of this application Omissions, modifications, equivalent substitutions, improvements, etc. shall be included in the protection scope of this application.

Claims (18)

  1. 一种文档编辑方法,其特征在于,包括:A document editing method, characterized by including:
    接收针对第一在线文档中至少一个内容块的编辑指令,将所述至少一个内容块以第二在线文档的形式保存在云数据库中;Receive an editing instruction for at least one content block in the first online document, and save the at least one content block in the cloud database in the form of a second online document;
    响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块。In response to receiving the calling instruction in the third online document, the at least one content block is displayed at a designated position in the third online document.
  2. 如权利要求1所述的文档编辑方法,其特征在于,所述接收针对第一在线文档中至少一个内容块的编辑指令,包括:The document editing method of claim 1, wherein receiving an editing instruction for at least one content block in the first online document includes:
    响应于对所述至少一个内容块的确定操作,显示第一交互控件;In response to a determined operation on the at least one content block, displaying a first interactive control;
    响应于对所述第一交互控件的触发操作,显示至少一个第二交互控件,通过所述第二交互控件接收所述编辑指令。In response to a triggering operation on the first interactive control, at least one second interactive control is displayed, and the editing instruction is received through the second interactive control.
  3. 如权利要求1所述的文档编辑方法,其特征在于,所述接收针对第一在线文档中至少一个内容块的编辑指令,包括:The document editing method of claim 1, wherein receiving an editing instruction for at least one content block in the first online document includes:
    响应于所述至少一个内容块被引用的次数大于预设值,显示第三交互控件,通过所述第三交互控件接收所述编辑指令。In response to the number of times the at least one content block is referenced being greater than the preset value, a third interactive control is displayed, and the editing instruction is received through the third interactive control.
  4. 如权利要求2所述的文档编辑方法,其特征在于,所述方法,还包括:The document editing method according to claim 2, characterized in that the method further includes:
    响应于焦点位于所述第二交互控件,在所述第二交互控件的关联位置显示第一演示面板,所述第一演示面板包含用于演示的图片和/或文字。In response to the focus being on the second interactive control, a first presentation panel is displayed at an associated position of the second interactive control, and the first presentation panel contains pictures and/or text for presentation.
  5. 如权利要求4所述的文档编辑方法,其特征在于,所述方法还包括:The document editing method according to claim 4, characterized in that the method further includes:
    响应于所述第二交互控件首次被显示或者焦点首次位于所述第二交互控件,在所述第二交互控件的关联位置显示所述第一演示面板。In response to the second interactive control being displayed for the first time or the focus being on the second interactive control for the first time, the first presentation panel is displayed at an associated position of the second interactive control.
  6. 如权利要求1所述的文档编辑方法,其特征在于,所述将所述至少一个内容块以第二在线文档的形式保存在云数据库中之后,还包括:The document editing method according to claim 1, wherein after saving the at least one content block in the cloud database in the form of a second online document, it further includes:
    在所述第一在线文档页面中的预设位置显示第二演示面板,所述第二演示面板包含用于演示的图片、文字和/或控件。A second presentation panel is displayed at a preset position in the first online document page, and the second presentation panel includes pictures, text and/or controls for presentation.
  7. 如权利要求1所述的文档编辑方法,其特征在于,响应于发送所述编辑指令的为第一用户,发送所述调用指令的为第二用户;The document editing method of claim 1, wherein the first user responds by sending the editing instruction, and the second user sends the calling instruction;
    在所述于所述第三在线文档中的指定位置显示所述至少一个内容块之后,还包括:After the at least one content block is displayed at the designated position in the third online document, the method further includes:
    在所述第一在线文档页面中的预设位置显示第三演示面板,所述第三演示面板包含用于演示的图片、文字和/或控件。A third presentation panel is displayed at a preset position in the first online document page, and the third presentation panel includes pictures, text and/or controls for presentation.
  8. 如权利要求1-3任一项所述的文档编辑方法,其特征在于,在所述接收针对第一在线文档中至少一个内容块的编辑指令之后,所述方法还包括:The document editing method according to any one of claims 1 to 3, characterized in that, after receiving the editing instruction for at least one content block in the first online document, the method further includes:
    显示第四交互控件,在所述第四交互控件中录入所述至少一个内容块的标识信息;Display a fourth interactive control, and enter the identification information of the at least one content block in the fourth interactive control;
    则所述将所述至少一个内容块以第二在线文档的形式保存在云数据库中,包括:Then, storing the at least one content block in the cloud database in the form of a second online document includes:
    响应于对录入的标识信息的确认操作,将所述至少一个内容块以第二在线文档的形式保存在云数据库中。In response to the confirmation operation on the entered identification information, the at least one content block is saved in the cloud database in the form of a second online document.
  9. 如权利要求8所述的文档编辑方法,其特征在于,所述在所述第四交互控件中录入所述至少一个内容块的标识信息,包括:The document editing method according to claim 8, characterized in that, entering the identification information of the at least one content block in the fourth interactive control includes:
    确定所述至少一个内容块中的第一个内容块的类型;determining a type of a first content block in the at least one content block;
    响应于所述第一个内容块的类型为文本类型,将所述第一个内容块中的前N个文本字符作为所述标识信息,所述N为正整数。In response to the type of the first content block being a text type, the first N text characters in the first content block are used as the identification information, and N is a positive integer.
  10. 如权利要求8所述的文档编辑方法,其特征在于,所述在所述第四交互控件中录入所述至少一个内容块的标识信息,包括:The document editing method according to claim 8, characterized in that, entering the identification information of the at least one content block in the fourth interactive control includes:
    确定所述至少一个内容块中的第一个内容块的类型;determining a type of a first content block in the at least one content block;
    响应于所述第一个内容块的类型为容器类型,将所述第一个内容块的容器名称作为所述标识信息。In response to the type of the first content block being a container type, the container name of the first content block is used as the identification information.
  11. 如权利要求1所述的文档编辑方法,其特征在于,所述调用指令,包括:第一调用指令;The document editing method according to claim 1, wherein the calling instruction includes: a first calling instruction;
    所述响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块,包括:In response to receiving a calling instruction in the third online document, displaying the at least one content block at a designated position in the third online document includes:
    响应于在第三在线文档中接收到所述第一调用指令,显示所述云数据库中至少一个内容块;In response to receiving the first calling instruction in the third online document, display at least one content block in the cloud database;
    响应于对所述至少一个内容块的选择操作,确定所述第一调用指令的调用路径,并在所述第三在线文档中与所述调用路径关联的位置显示被选择的至少一个内容块。In response to a selection operation on the at least one content block, a calling path of the first calling instruction is determined, and the selected at least one content block is displayed in the third online document at a position associated with the calling path.
  12. 如权利要求1所述的文档编辑方法,其特征在于,所述响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块,包括:The document editing method of claim 1, wherein in response to receiving a calling instruction in the third online document, displaying the at least one content block at a designated position in the third online document includes: :
    响应于在第三在线文档中接收到所述调用指令,获取在所述调用指令的位置处录入的所述至少一个内容块对应的关键词信息;In response to receiving the calling instruction in the third online document, obtaining keyword information corresponding to the at least one content block entered at the position of the calling instruction;
    根据所述关键词信息获取所述至少一个内容块,响应于对所述至少一个内容块的确定操作,在所述调用指令的位置显示所述至少一个内容块。The at least one content block is obtained according to the keyword information, and the at least one content block is displayed at the position of the calling instruction in response to a determining operation on the at least one content block.
  13. 如权利要求1所述的文档编辑方法,其特征在于,所述于所述第三在线文档中的指定位置显示所述至少一个内容块包括:The document editing method of claim 1, wherein displaying the at least one content block at a designated position in the third online document includes:
    将被显示的所述至少一个内容块高亮显示。The at least one content block to be displayed is highlighted.
  14. 如权利要求1所述的文档编辑方法,其特征在于,在接收针对第一在线文档中至少一个内容块的编辑指令之前,所述方法还包括:The document editing method of claim 1, wherein before receiving an editing instruction for at least one content block in the first online document, the method further includes:
    确定所述至少一个内容块的类型;determining a type of the at least one content block;
    响应于所述至少一个内容块的类型为第一类型,接收所述编辑指令的入口为显示状态或激活状态;或者,In response to the type of the at least one content block being the first type, the entry receiving the editing instruction is in a display state or an activated state; or,
    响应于所述至少一个内容块的类型为第二类型,接收所述编辑指令的入口为隐藏状态或非激活状态。In response to the type of the at least one content block being the second type, the portal that receives the editing instruction is in a hidden state or an inactive state.
  15. 一种文档编辑装置,其特征在于,包括:A document editing device, characterized by including:
    保存模块,被配置为接收针对第一在线文档中至少一个内容块的编辑指令,将所述至少一个内容块以第二在线文档的形式保存在云数据库中;A saving module configured to receive an editing instruction for at least one content block in the first online document, and save the at least one content block in the cloud database in the form of a second online document;
    调用模块,被配置为响应于在第三在线文档中接收到调用指令,于所述第三在线文档中的指定位置显示所述至少一个内容块。The calling module is configured to display the at least one content block at a specified position in the third online document in response to receiving the calling instruction in the third online document.
  16. 一种电子设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求1-14任意一项所述的方法。An electronic device includes a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that when the processor executes the program, it implements the method described in any one of claims 1-14 Methods.
  17. 一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,其特征在于,所述计算机指令用于使所述计算机实现权利要求1-14任一项所述的方法。A non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium stores computer instructions, characterized in that the computer instructions are used to cause the computer to implement any one of claims 1-14 Methods.
  18. [根据细则26改正 11.07.2023]
    一种计算机程序产品,其特征在于,所述计算机程序产品在设备上运行时,使得所述设备执行如权利要求1-14中任一项所述的方法的步骤。
    [Amended 11.07.2023 in accordance with Rule 26]
    A computer program product, characterized in that, when the computer program product is run on a device, it causes the device to perform the steps of the method according to any one of claims 1-14.
PCT/CN2023/102652 2022-06-30 2023-06-27 Document editing method and apparatus, and electronic device and storage medium WO2024002051A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210778991.0 2022-06-30
CN202210778991.0A CN115081423A (en) 2022-06-30 2022-06-30 Document editing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2024002051A1 true WO2024002051A1 (en) 2024-01-04

Family

ID=83256843

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/102652 WO2024002051A1 (en) 2022-06-30 2023-06-27 Document editing method and apparatus, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN115081423A (en)
WO (1) WO2024002051A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115081423A (en) * 2022-06-30 2022-09-20 北京字跳网络技术有限公司 Document editing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173426A1 (en) * 2012-12-19 2014-06-19 Microsoft Corporation Seamlessly incorporating online content into documents
CN109492208A (en) * 2018-10-12 2019-03-19 天津字节跳动科技有限公司 Document edit method and its device, equipment, storage medium
CN114048716A (en) * 2021-11-17 2022-02-15 北京字跳网络技术有限公司 Information processing method, device, terminal and storage medium
CN115081423A (en) * 2022-06-30 2022-09-20 北京字跳网络技术有限公司 Document editing method and device, electronic equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173426A1 (en) * 2012-12-19 2014-06-19 Microsoft Corporation Seamlessly incorporating online content into documents
CN109492208A (en) * 2018-10-12 2019-03-19 天津字节跳动科技有限公司 Document edit method and its device, equipment, storage medium
CN114048716A (en) * 2021-11-17 2022-02-15 北京字跳网络技术有限公司 Information processing method, device, terminal and storage medium
CN115081423A (en) * 2022-06-30 2022-09-20 北京字跳网络技术有限公司 Document editing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115081423A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN112866785B (en) Picture generation method, device, equipment and storage medium
US11003315B2 (en) Terminal device and sharing method thereof
US11853730B2 (en) Mini program data binding method and apparatus, device, and storage medium
KR102249054B1 (en) Quick tasks for on-screen keyboards
EP2835798B1 (en) Interfacing device and method for supporting speech dialogue service
KR20140144104A (en) Electronic apparatus and Method for providing service thereof
JP2008547128A (en) Dynamic user experience with semantic rich objects
WO2024002051A1 (en) Document editing method and apparatus, and electronic device and storage medium
KR20140058945A (en) Display apparatus and method for correcting character thereof
CN112748923A (en) Method and device for creating visual billboard, electronic equipment and storage medium
CN111401323A (en) Character translation method, device, storage medium and electronic equipment
US9372616B2 (en) Smart interactive bookmarks
EP3975010A1 (en) Online collaborative document processing method and device
CN110990006A (en) Form management system and form generation device
CN108021317B (en) Method and device for screen editing
EP2849058A1 (en) Method and device for displaying a message associated with an application
CN107368465B (en) System and method for processing screenshot note of streaming document
Warén Cross-platform mobile software development with React Native
CN112805685A (en) Method, apparatus, and computer-readable medium for propagating rich note data objects over web socket connections in a web collaborative workspace
CN112417832A (en) Format conversion method and device for spreadsheet document and electronic equipment
CN112784542B (en) Document editing method and device
US11573687B2 (en) Screenshot method and apparatus for information interaction interface, computing device and storage medium
KR102000543B1 (en) Apparatus for editing web electric document and operating method thereof
EP4060470A1 (en) Display method and device, and computer readable storage medium
KR101875485B1 (en) Electronic apparatus and Method for providing service thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23830228

Country of ref document: EP

Kind code of ref document: A1