CN112632920B - Link processing method, link processing device, terminal equipment and storage medium - Google Patents

Link processing method, link processing device, terminal equipment and storage medium Download PDF

Info

Publication number
CN112632920B
CN112632920B CN202011281041.4A CN202011281041A CN112632920B CN 112632920 B CN112632920 B CN 112632920B CN 202011281041 A CN202011281041 A CN 202011281041A CN 112632920 B CN112632920 B CN 112632920B
Authority
CN
China
Prior art keywords
document editing
link
editing page
display
target
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.)
Active
Application number
CN202011281041.4A
Other languages
Chinese (zh)
Other versions
CN112632920A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011281041.4A priority Critical patent/CN112632920B/en
Publication of CN112632920A publication Critical patent/CN112632920A/en
Application granted granted Critical
Publication of CN112632920B publication Critical patent/CN112632920B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/134Hyperlinking

Landscapes

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

Abstract

The embodiment of the application discloses a link processing method, a link processing device, a terminal device and a storage medium, wherein the link processing method comprises the following steps: displaying a document editing page, wherein the document editing page comprises a target link, and the target link comprises at least two display forms; displaying the target link in the document editing page according to the first display form; if the display form switching trigger event exists, switching the target link in the document editing page from a first display form to a second display form; wherein the first exhibited morphology is any one of the at least two exhibited morphologies and the second exhibited morphology is any one of the at least two exhibited morphologies other than the first exhibited morphology. By adopting the embodiment of the application, the display form of the link can be flexibly switched in the document editing page, and the link display effect is improved.

Description

Link processing method, link processing device, terminal equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a link processing method, a link processing apparatus, a terminal device, and a computer-readable storage medium.
Background
Links are often involved in the document editing process, such as a user copying a link of a web page and pasting it into the document being edited; or the user inserts a link to a certain video in a document editing page, etc. Currently, the presentation form for links in a document editing page is configured by a document editing application by default, and usually the presentation form for links is fixed, for example, a certain document editing application by default supports presenting links in a plain text form; additional document applications support presenting links in icon plus text form by default. In practical applications, the links are displayed in a default configuration, which is not flexible enough and affects the display effect of the links.
Disclosure of Invention
The embodiment of the application provides a link processing method, a link processing device, a terminal device and a storage medium, which can flexibly switch the display form of a link in a document editing page and improve the link display effect.
In one aspect, an embodiment of the present application provides a link processing method, where the link processing method includes:
displaying a document editing page, wherein the document editing page comprises a target link, and the target link comprises at least two display forms;
displaying the target link in the document editing page according to the first display form;
if the display form switching trigger event exists, switching the target link in the document editing page from a first display form to a second display form;
wherein the first exhibited morphology is any one of the at least two exhibited morphologies and the second exhibited morphology is any one of the at least two exhibited morphologies other than the first exhibited morphology.
In another aspect, an embodiment of the present application provides a link processing apparatus, including:
the display unit is used for displaying a document editing page, the document editing page comprises a target link, and the target link comprises at least two display forms;
the display unit is also used for displaying the target link in the document editing page according to the first presentation form;
the processing unit is used for switching the target link in the document editing page from a first presentation form to a second presentation form if a presentation form switching trigger event exists;
wherein the first exhibited morphology is any one of the at least two exhibited morphologies and the second exhibited morphology is any one of the at least two exhibited morphologies other than the first exhibited morphology.
In one implementation, each of the at least two presentation forms corresponds to one switching option; a display unit further to:
displaying a switching list in a document editing page, wherein the switching list comprises a switching option corresponding to each of at least two display forms;
and when the switching option corresponding to the second display form is selected, generating a display form switching trigger event.
In one implementation, the switch list is disposed in a menu bar, which is hidden in the document editing page by default; a display unit further to: displaying a menu bar in the document editing page when a selection operation is performed on a target link displayed in the document editing page; and the number of the first and second groups,
the switch list is set in a toolbar that is displayed by default in a document editing page at a location associated with the target link.
In one implementation mode, when a target link is displayed in a document editing page according to a first presentation form, a switching option corresponding to the first presentation form is set to be in an unselected state in a switching list, and switching options corresponding to other presentation forms except the first presentation form are set to be in a selectable state;
when the target link in the document editing page is switched from the first presentation form to the second presentation form, the switching option corresponding to the second presentation form is set to be in the non-selectable state in the switching list, and the switching options corresponding to other presentation forms except the second presentation form are set to be in the selectable state.
In one implementation, each of the at least two presentation forms corresponds to a time threshold; a processing unit further to:
when the display duration of the target link displayed in the document editing page according to the first display form reaches a time threshold corresponding to the first display form, generating a display form switching trigger event;
wherein the second display modality refers to any one of at least two display modalities randomly selected from other display modalities except the first display modality; or, if each of the at least two display modalities corresponds to one display priority, the second display modality is one selected from the other display modalities in the order of the display priorities from high to low.
In one implementation, a document editing page is displayed in an interface of a document editing application; a display unit, specifically configured to:
outputting an interface of the document editing application program, wherein a document creating option is arranged in the interface of the document editing application program;
when the document creating option is triggered, displaying a document editing page, wherein the interface of the document editing application program also comprises a document sharing option;
a display unit further to: when the document sharing option is selected, outputting a sharing object list, wherein the sharing object list comprises at least one sharing object, and the sharing object comprises a social application program or a social user in the social application program; and sharing the document editing page to the selected sharing object.
In one implementation, the display unit is specifically configured to:
displaying a session page of the social application program, wherein a target session message is displayed in the session page, and the target session message carries an address of a document editing page;
and when the target session message is triggered, displaying the document editing page according to the address of the document editing page.
In one implementation, the display unit is further configured to: inputting a target link in a document editing page;
the input mode of the target link comprises at least one of the following modes:
writing the text of the target link into a document editing page;
and if the document editing page comprises the plug-in entry, inserting the target link into the document editing page by selecting the plug-in entry.
In one implementation, the document editing page includes a plug-in, the plug-in includes a configuration list, and the configuration list includes at least one domain name that the document editing page supports parsing and an icon resource corresponding to each domain name; a processing unit further to:
analyzing the target link to obtain link data, wherein the link data comprise an original link corresponding to the webpage, or the link data comprise the original link and a title;
if the target domain name corresponding to the original link is the domain name in the configuration list, converting the link data to form a data source of each of at least two display forms;
packaging the data source of each display form into a plug-in;
wherein the exhibited morphology comprises any one of: the form of the character chain, the combination form of the icon and the character chain and the form of the card; the data source of the word chain form comprises a title and an original link; the data source of the combination form of the icon and the character chain comprises a title, an icon resource corresponding to a target domain name and an original link; the data source in the form of a card comprises an embedded link obtained by converting an original link.
In an implementation manner, if the first presentation form is a text chain form, the processing unit is specifically configured to: reading the title and the original link from the plug-in through a rendering engine; rendering the title into a document editing page by a rendering engine; alternatively, the first and second electrodes may be,
if the first presentation form is a combination form of an icon and a text chain, the processing unit is specifically configured to: reading a title and an original link from the plug-in through a rendering engine, and reading an icon resource corresponding to a target domain name from a configuration list; rendering the icon resources corresponding to the title and the target domain name into a document editing page through a rendering engine; alternatively, the first and second electrodes may be,
if the first presentation form is a card form, the processing unit is specifically configured to: reading the embedded link in the plug-in through a rendering engine; and analyzing the embedded link through the embedded frame container, and displaying the link content of the original link corresponding to the embedded link in the document editing page.
In one implementation, the processing unit is specifically configured to:
reading a data source of the second display form from the plug-in through the rendering engine;
rendering the data source of the second display form through a rendering engine to generate a second display form;
and adopting the second display mode to cover the first display mode in the document editing page.
On the other hand, an embodiment of the present application provides a terminal device, where the terminal device includes:
a processor adapted to implement a computer program; and the number of the first and second groups,
a computer-readable storage medium, in which a computer program is stored, the computer program being adapted to be loaded by a processor and to perform the above-mentioned linking processing method.
In another aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is read and executed by a processor of a computer device, the computer program causes the computer device to execute the above-mentioned link processing method.
In another aspect, embodiments of the present application provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the link processing method.
In the embodiment of the present application, for a target link displayed in a first presentation form in a document editing page, if there is a presentation form switching trigger event (for example, a display duration for displaying the target link in the first presentation form reaches a certain time threshold, or a user actively executes an operation for triggering switching of the presentation form based on a requirement, etc.), the presentation form of the target link in the document editing page may be switched from the first presentation form to a second presentation form; by the scheme, flexible switching of the display forms of the target links in the document editing page is achieved, the switching requirements of the link display forms are met, and the link display effect is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 illustrates a schematic diagram of a data sharing system provided by an exemplary embodiment of the present application;
fig. 2 is a block chain structure diagram according to an exemplary embodiment of the present application;
FIG. 3 illustrates a schematic diagram of a link presentation form provided by an exemplary embodiment of the present application;
FIG. 4 is a flowchart illustrating a method of link processing according to an exemplary embodiment of the present application;
FIG. 5 is a diagram illustrating a modality switching process provided by an exemplary embodiment of the present application;
fig. 6 is a diagram illustrating a modality switching procedure according to another exemplary embodiment of the present application;
FIG. 7 is a flowchart illustrating a method of link processing according to another exemplary embodiment of the present application;
FIG. 8 is a diagram illustrating a process of creating a document editing page and a process of sharing the document editing page according to an exemplary embodiment of the present application;
FIG. 9 is a diagram illustrating a triggered display process of a document editing page provided by an exemplary embodiment of the present application;
FIG. 10 is a diagram illustrating a manner of inserting a target link according to an exemplary embodiment of the present application;
FIG. 11 is a diagram illustrating a manner of inserting a target link according to another exemplary embodiment of the present application;
FIG. 12 is a diagram illustrating a manner of inserting a target link according to another exemplary embodiment of the present application;
FIG. 13 is a flowchart illustrating a method of link processing according to another exemplary embodiment of the present application;
FIG. 14 is a flowchart illustrating a method of link processing according to another exemplary embodiment of the present application;
FIG. 15 is a flowchart illustrating a method of link processing according to another exemplary embodiment of the present application;
fig. 16 is a schematic structural diagram illustrating a link processing apparatus according to an exemplary embodiment of the present application;
fig. 17 shows a schematic structural diagram of a terminal device according to an exemplary embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application relates to a Block Chain (Block Chain). The blockchain is a novel application mode of computer technologies such as distributed data storage, Peer-to-Peer (P2P) transmission, consensus mechanism, and encryption algorithm. The blockchain is essentially a decentralized database, which is a string of data blocks associated by using cryptography, each data block contains information of a batch of network transactions, and the information is used for verifying the validity (anti-counterfeiting) of the information and generating the next block. The blockchain cryptographically guarantees that the data is not falsifiable and not falsifiable.
Embodiments of the present application relate to blockchain systems (i.e., data sharing systems). Fig. 1 illustrates a schematic diagram of a data sharing system provided in an exemplary embodiment of the present application, where the data sharing system 10 refers to a system for performing data sharing between nodes, the data sharing system may include a plurality of nodes 101, and the nodes 101 may refer to clients, terminal devices, servers, and the like in the data sharing system. Each node 101 may receive input information while operating normally and maintain shared data within the data sharing system based on the received input information. In order to ensure information intercommunication in the data sharing system, information connection can exist between each node in the data sharing system, and information transmission can be carried out between the nodes through the information connection. For example, when an arbitrary node in the data sharing system receives input information, other nodes in the data sharing system acquire the input information according to a consensus algorithm, and store the input information as data in shared data, so that the data stored on all the nodes in the data sharing system are consistent.
Each node in the data sharing system has a node identifier corresponding thereto, and each node in the data sharing system may store a node identifier of another node in the data sharing system, so that the generated block is broadcast to the other node in the data sharing system according to the node identifier of the other node in the following. Each node may maintain a node identifier list as shown in table 1 below, and store the node name and the node identifier in the node identifier list correspondingly. The node identifier may be an IP (Internet Protocol) address and any other information that can be used to identify the node, and table 1 only illustrates the IP address as an example.
TABLE 1
Node name Node identification
Node 1 117.114.151.174
Node 2 117.116.189.145
Node N 119.123.789.258
Each node in the data sharing system stores one identical blockchain. Fig. 2 shows a schematic structural diagram of a blockchain provided in an exemplary embodiment of the present application, where the blockchain is composed of a plurality of blocks, a starting block includes a block header and a block main body, the block header stores an input information characteristic value, a version number, a timestamp, and a difficulty value, and the block main body stores input information; the next block of the starting block takes the starting block as a parent block, the next block also comprises a block head and a block main body, the block head stores the input information characteristic value of the current block, the block head characteristic value of the parent block, the version number, the timestamp and the difficulty value, and the like, so that the block data stored in each block in the block chain is associated with the block data stored in the parent block, and the safety of the input information in the block is ensured.
The embodiment of the application relates to a document editing page, wherein the document editing page can be an online collaborative editing page in a document editing application program; the document editing application program can be an online document application program supporting user online editing, multi-user collaborative editing and online storage; the online collaborative editing page may refer to a page supporting online editing by a user, multi-user collaborative editing, and online storage, and document contents generated by editing are stored in a server.
In the process of online collaborative editing of a document by using a document editing application, situations that need to insert links in a document editing page are often involved, and the inserted links have uncertainty, such as: the inserted link may present a security risk, or the inserted link may not be properly linked into the web page, etc. Therefore, in order to ensure the security of the online document, the presentation form of the link in the document editing page is configured by the default of the document editing application program and is usually fixed; for example, a document editing application may support links in a text chain format, a fixed card format in a document editing page, and so on by default. However, displaying links in a fixed presentation modality may lack flexibility in online documents, such as: if the document editing application program defaults to support the display of the link in a text chain mode, the key content in the online document cannot be displayed and edited during cooperative office work and editing; the following steps are repeated: if the document editing application program defaults to show the link in a card form, when the online collaborative editing is performed, a collaborative user may consume a large amount of memory resources of the intelligent device when opening or browsing a webpage of the online document, and the waiting time for the user to open the document is prolonged; moreover, the card occupies a large page space, which results in that all contents in the online document cannot be browsed, and is not beneficial to the use of users.
Based on this, the embodiment of the present application provides a link processing scheme, where the link processing scheme may include: the link in the document editing page comprises at least two presentation forms, and when the switching requirement of the link presentation forms exists (for example, the user actively triggers the switching of the link presentation forms, the display duration of the link displayed in any presentation form in the document editing page exceeds a duration threshold value, and the like), the display forms linked in the document editing page can be flexibly switched; for example, the presentation form of the link in the document editing page is a first presentation form, and when the user actively triggers the switching of the link presentation form, the link in the document editing page can be switched from the first presentation form to a second presentation form. The display form of the link is flexibly switched in the document editing page, the switching requirement of the link display form in the document editing page is met, and the link display effect is improved. In addition, the link processing scheme provided in the embodiment of the application can be realized by a plug-in technology, that is, the capability of flexibly switching and processing the display form of the link by the document editing page is packaged into a plug-in, and the link processing function can be provided in the document editing page by loading the plug-in the document editing page; the plug-in can also be applied to other application programs (such as a social conversation program and an audio-video playing application program) so that the other application programs have a link processing function. In addition, by setting the configuration list of the plug-in, when the link inserted into the document editing page belongs to the domain name supported in the configuration list, the inserted link is processed, so that the uncertain link can be filtered, the effectiveness and the safety of link processing are ensured, and the flexibility of the online document is improved on the basis of ensuring the safety of the online document.
The link mentioned in the embodiment of the present application may refer to a web page path or a web page address, that is, a URL (uniform Resource Locator) of a web page; the link may also refer to a resource address of a picture resource, a file (e.g., a form file, a PPT (PowerPoint) file, etc.), a multimedia resource (e.g., an audio resource, a video resource), etc., which is not limited herein in this embodiment of the application. The presentation modality of the link may include, but is not limited to, at least one of: a text chain configuration, a combination of an icon and a text chain configuration, a card configuration, and the like. The following will describe in detail the form of text chain, the form of combination of icon and text chain, and the form of card in conjunction with the embodiment shown in fig. 3, fig. 3 shows a schematic diagram of a link presentation form provided by an exemplary embodiment of the present application, as shown in fig. 3:
(1) a text chain configuration (e.g., text chain configuration 301 in fig. 3). The word chain shape may be a combination of text content (e.g., the text content "first set: seven world stars in Antarctica" in FIG. 3) and links. The text content is displayed in the document editing page, and when a link displayed according to the text chain state in the document editing page is selected (for example, a user clicks the text chain state 301 in fig. 3), the document editing page can jump to a webpage corresponding to the link. The text content in the text chain form supports customization, for example, the text content may be arbitrarily input by a user through a document editing page (for example, a title), the text content may be obtained by analyzing the link (for example, characters carried in the link), and the text content may be a URL itself.
(2) A combination of icons and chains of text (e.g., combination of icons and chains of text 302 in fig. 3). The combined form of the icon and the word chain is added with the icon corresponding to the link on the basis of the form of the word chain, namely the combined form of the icon and the word chain can be a text content (for example, the text content 3022' first set: one star in antarctica seven world in fig. 3), the icon corresponding to the link (for example, the icon 3021 corresponding to the link in fig. 3) and a combination of the link. The text content and the icon corresponding to the link are displayed in the document editing page, and when the link displayed according to the combination form of the icon and the text chain in the document editing page is selected (for example, the user clicks the combination form 302 of the icon and the text chain in fig. 3), the document editing page can jump to the webpage corresponding to the link. The text content and the icon in the combined form of the icon and the word chain can support customization, for example, the text content can be arbitrarily input by a user through a text editing page (such as a title), the text content can be obtained by analyzing the link (such as words carried in the link), and the text content can be a URL (uniform resource locator) per se. For example, the icon may be a preconfigured icon associated with the domain name of the link, or an icon in a web page to which the link is directed, and so on.
(3) A card form (e.g., card form 303 in fig. 3). The card form may refer to an iframe (iframe) container that may be used to parse and render the linked content of the inline link. The embedded link is a link capable of being embedded in a document editing page, and the embedded link is obtained by converting the link contained in the document editing page, that is, the card form is a presentation form which can be used for presenting the link content of the embedded link (i.e., the link), and the card form can be used for embedding a webpage corresponding to the link in the document editing page. When the link content is a multimedia audio/video, the card form may be used to play the multimedia audio/video (for example, the card form 303 in fig. 3 is used to play the multimedia video); when the link content is a picture, the card form can be used for showing the picture; when the link content is text information, the card form can be used for showing the text information. An iframe (iframe) is an HTML (Hyper Text Markup Language) tag through which an iframe container can be created.
The presentation form of the link may include a bookmark form, a picture form, and the like, in addition to a text chain form, a combined form of an icon and a text chain, a card form. The bookmark form is similar to the combination form of the icon and the character chain, and can be a combination of text content, pictures related to the link and the link; however, the bookmark shape is different from the combination of the icon and the text chain in that: the picture related to the link contained in the bookmark form can be any picture in the link content corresponding to the link, for example, when the link content is a multimedia video, the picture can be a video cover, a video screenshot and the like, and the picture related to the link can also be a picture randomly input by a user; and the icon in the combined form of the icon and the word chain may be a pre-configured icon associated with a linked domain name, the icon corresponding to the domain name being relatively fixed. The picture included in the picture shape may be a picture randomly input by the user, or may be a picture related to the link.
The functions implemented by the link processing scheme provided in the embodiment of the present application may be integrated into a toolkit, where the toolkit may be an SDK (Software Development Kit), and the toolkit may also be a plug-in, and the embodiment of the present application is not limited herein. Specifically, the plug-in may be a computer program, and the plug-in is used for implementing a link processing function in the document editing application program through interaction with the document editing application program; after the link is obtained, the document editing application program analyzes and converts the link through the plug-in to obtain plug-in data corresponding to the link, and the plug-in data is packaged into the plug-in to form a unit capable of being displayed in a text editing page of the document editing application program. Wherein the plug-in data may include, but is not limited to, at least one of: text content in the form of the text chain and the combined form of the icon and the text chain, an original link for jumping to a webpage, an embedded link obtained by converting the original link, display form information and the like, wherein the display form information is used for indicating the display form selected by the link in the document editing page. The tool pack can be stored in each node of the blockchain system in a blockchain mode, so that the link processing function can be shared in the blockchain system, and each node in the blockchain system can acquire the tool pack from the blockchain to realize the link processing function; in addition, the blockchain guarantees that the tool kit is not falsifiable and counterfeitable in a cryptographic mode, and safe storage of the tool kit is achieved. The toolkit may also be built into a document editing application in the form of a software element (e.g., an applet of the document editing application) for implementing a link processing function; when a link processing requirement exists, the document editing application may access the link processing function through the corresponding interface of the software cell.
Referring to fig. 4, fig. 4 is a flowchart illustrating a link processing method according to an exemplary embodiment of the present application. The link processing method may be executed by a terminal device, and the terminal device may be a device with a display function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and a smart wearable device, which is not limited herein. The link processing method may include the following steps S401 to S403:
in step S401, a document editing page is displayed.
Common documents may include, but are not limited to: word (an office software), Excel (an office software), WPS (an office software), and the like. The document editing page refers to a page for realizing document content editing, such as a Word page. The document editing page can contain a target link, and the target link can comprise at least two presentation forms, wherein the first presentation form is any one of the at least two presentation forms, and the second presentation form is any one of the at least two presentation forms except the first presentation form.
The target link may be entered in a document editing page. The manner of entering the target link may include writing text of the target link into the document editing page, such as pasting the target link into the document editing page. If the document editing page includes a plug-in entry, the input mode of the target link may further include inserting the target link into the document editing page by selecting the plug-in entry. The target link can also be obtained by loading a plug-in the document editing page in the process of loading the document editing page. The specific input process of the target link in the document editing page can be referred to the description of the embodiment shown in fig. 7.
Step S402, displaying the target link in the document editing page according to the first display form.
The process of executing step S402 in the embodiment of the present application may refer to the detailed description of step S1302 in the embodiment shown in fig. 13.
In step S403, if there is a display form switching trigger event, the target link in the document editing page is switched from the first display form to the second display form.
The presentation of the modality switching trigger event may specifically include the following cases:
(1) the presentation form switching trigger event may be an event that a switching option corresponding to a second presentation form in the switching list is selected. Specifically, each of the at least two display forms corresponds to a switching option, the switching option corresponding to each of the at least two display forms is set in the switching list, and when the switching option corresponding to the second display form is selected (for example, the user clicks the switching option corresponding to the second display form with a finger, clicks the switching option corresponding to the second display form with a mouse, or double clicks the switching option corresponding to the second display form with a mouse, or the like), a display form switching trigger event is generated. In one implementation, the switching list may be provided in a menu bar that is hidden by default (i.e., hidden by default) in the document editing page, the menu bar being displayed in the document editing page when a selection operation is performed on a target link displayed in the document editing page; when a switching list option included in the menu bar is selected, a switching list is displayed in the document editing page. The switching list may also be provided in a toolbar that is displayed by default (default display) at a position in the document editing page that is associated with the target link, the switching list being displayed in the document editing page when a switching list option included in the toolbar is selected; the position related to the target link may be an upper position, a lower position, a left position, a right position, or the like of a display position of the presentation form of the target link in the document editing page. When the target link is displayed in the document editing page according to the first display form, setting the switching option corresponding to the first display form in a switching list to be in an unselected state, and setting the switching options corresponding to other display forms except the first display form to be in a selectable state; when the target link in the document editing page is switched from the first presentation form to the second presentation form, the switching option corresponding to the second presentation form is set to be in the non-selectable state in the switching list, and the switching options corresponding to other presentation forms except the second presentation form are set to be in the selectable state.
As shown in FIG. 4, the target link is displayed in the document editing page 30 in a text chain form 301, and a toolbar 401 is displayed by default at a position above the target link in the text chain form 301; when the switch list option 4011 in the toolbar 401 is selected, the switch list 402 is displayed in the document editing page 30; when the switching option 4021 corresponding to the card form in the switching list 402 is selected, the target link in the document editing page 30 is switched from the text chain form 301 to the card form 303. When the target link is displayed in the document editing page 30 according to the character chain form 301, the switching option 4022 corresponding to the character chain form is set to be in an unselected state in the switching list 402, and the switching options corresponding to other display forms except the character chain form 301 are set to be in a selectable state; for example, when the target link is displayed in the document editing page 30 according to the text chain form 301, the switching option 4022 corresponding to the text chain form includes a "hook" pattern indicating that the switching option 4022 corresponding to the text chain form is set to the unselected state, the switching option 4021 corresponding to the card form does not include a "hook" pattern, and the switching option 4021 corresponding to the card form does not include a "hook" pattern indicating that the switching option 4021 corresponding to the card form is set to the selectable state; alternatively, when the target link is displayed in the document editing page 30 according to the text chain form 301, the switching option 4022 corresponding to the text chain form is displayed in a first color (for example, gray), the switching option 4022 corresponding to the text chain form is displayed in the first color to indicate that the switching option 4022 corresponding to the text chain form is set in the unselected state, the switching option 4021 corresponding to the card form is displayed in a second color (for example, black), and the switching option 4021 corresponding to the card form is displayed in the second color to indicate that the switching option 4021 corresponding to the card form is set in the selectable state.
Fig. 5 is a schematic diagram illustrating a modality switching procedure according to an exemplary embodiment of the present application. As shown in FIG. 5, the target link is presented in the document editing page 30 in a text chain state 301, and the menu bar 502 is hidden at the target position 501 of the document editing page 30 by default; when a selection operation is performed on a target link displayed in the document editing page 30, a menu bar 502 is displayed at a target position 501 in the document editing page 30; when the switch list option 4011 included in the menu bar 502 is selected, the switch list 402 is displayed in the document editing page 30; when the switching option 4021 corresponding to the card form in the switching list 402 is selected, the target link in the document editing page 30 is switched from the text chain form 301 to the card form 303.
(2) The display form switching trigger event may also be an event in which a switching option corresponding to the second display form included in the tool bar or the menu bar is selected. Specifically, each of the at least two display modes corresponds to one switching option, and the switching option corresponding to each of the at least two display modes is disposed in the tool bar or the menu bar. In one implementation, the switching option corresponding to the second presentation form may be set in a menu bar, the menu bar is hidden by default (i.e., hidden by default) in the document editing page, and when a selection operation is performed on a target link displayed in the document editing page, the menu bar is displayed in the document editing page; and when the switching option corresponding to the second presentation form contained in the menu bar is selected, generating a presentation form switching trigger event. In another implementation, the switching option corresponding to the second presentation form may be set in a toolbar, the toolbar is displayed by default (default display) at a position in the document editing page related to the target link, and when the switching option corresponding to the second presentation form included in the toolbar is selected, a presentation form switching trigger event is generated.
(3) The presentation modality switching trigger event may also refer to an event of detecting an input of content related to the second presentation modality in the dialog box. The dialog box may be triggered to be displayed in the document editing page by setting a shortcut key on an input device (e.g., an external keyboard of the terminal device, a virtual keyboard built in the terminal device, etc.). When the input of the content related to the second presentation form (for example, the name of the second presentation form) in the dialog box is detected, a presentation form switching trigger event is generated.
Fig. 6 shows a schematic diagram of a presentation modality switching process according to another exemplary embodiment of the present application. As shown in fig. 6, the target link is presented in the document editing page 30 in a text chain state 301, and when the user inputs a shortcut key (e.g., "Ctrl + F") through the virtual keyboard, a dialog 601 is triggered to be displayed in the document editing page 30; when the name of the card form 302 (the "card form" shown in fig. 6) input in the dialog box is detected, a presentation form switching trigger event is generated.
(4) The presentation form switching trigger event may also refer to an event that a display duration when the target link is displayed in the document editing page in the first presentation form exceeds a duration threshold. In one implementation manner, each of the at least two presentation forms may respectively correspond to a time threshold, and when a display duration for displaying the target link according to the first presentation form in the document editing page reaches the time threshold corresponding to the first presentation form, a presentation form switching trigger event is generated; wherein the second display modality may refer to any one of at least two display modalities randomly selected from other display modalities other than the first display modality; alternatively, if each of the at least two display modalities corresponds to a display priority, the second display modality may also refer to one selected from other display modalities according to the display priorities from high to low. The display priority can be used for representing the display order of the display forms, and the higher the display priority is, the more the display forms are displayed. In another implementation manner, each of the at least two presentation forms may correspond to the same time threshold, and when a display duration for displaying the target link according to the first presentation form in the document editing page reaches the time threshold, a presentation form switching trigger event is generated.
For example, each of three display forms, namely a text chain form, a combination form of an icon and a text chain, and a card form, corresponds to a duration threshold, each display form corresponds to a display priority, the display priority of the card form is higher than the display priority of the combination form of the icon and the text chain, and the display priority of the combination form of the icon and the text chain is higher than the display priority of the text chain form. The target link is displayed in the document editing page in a character chain state, and when the display duration of the target link displayed in the document editing page according to the character chain state reaches a time threshold corresponding to the character chain state, a display state switching trigger event is generated; selecting a card form with higher display priority from the combination form of the icons and the character chains and the two display forms of the card forms according to the display priority from high to low.
In the embodiment of the present application, the display form switching trigger event may refer to an event that a switching option corresponding to a second display form in a switching list is selected, may also refer to an event that a switching option corresponding to a second display form included in a toolbar or a menu bar is selected, may also refer to an event that a content related to the second display form is detected to be input in a dialog box, and may also refer to an event that a display duration of a target link is displayed in a document editing page according to the first display form exceeds a duration threshold. When the display form switching trigger event exists, the display form of the target link in the document editing page can be flexibly and freely switched. When the display form of the target link in the document editing page is converted from the card form into the text chain form and the combined form of the icon and the text chain, a large amount of page space can be saved, the user can be facilitated to carry out overall browsing on the document editing page, and all contents in the document editing page can be browsed; and the text chain form, the combined form of the icon and the text chain do not need to load the link content in the webpage corresponding to the link, compared with the card form, the speed of loading the document editing page by the user is higher, the page loading time can be saved, when the configuration of the terminal equipment used by the user is poorer, the difference of the loading speed is more obvious, and the combined form of the text chain form, the icon and the text chain has great speed advantage in the scene of collaborative editing. The display forms of the target links in the document editing page are flexibly and freely switched, so that key points can be highlighted during collaborative editing, interference is removed, and if a user displays all the links in the document editing page in a card form, the occupied page space is very large, the loading time is long, and the content needing to be edited is not easy to find in the document editing page. When the document editing page needs to be displayed, the link needing to be displayed can be displayed in a card form, and other links can be displayed in a text chain form or a combined form of an icon and a text chain, so that the key point of display can be highlighted in the display process of the document editing page.
Referring to fig. 7, fig. 7 is a flowchart illustrating a link processing method according to another exemplary embodiment of the present application. The link processing method may be executed by a terminal device, and the terminal device may be a device with a display function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and a smart wearable device, which is not limited herein. The link processing method may include the following steps S701 to S704:
step S701, outputting an interface of the document editing application, where a document creation option is set in the interface of the document editing application.
In step S702, when the document creation option is triggered, a document editing page is displayed.
The document editing page may be created in a document editing application. And a document creating option is arranged in an interface of the document editing application program, and when the document creating option is triggered, a document editing page is displayed. The document editing page supports sharing, the interface of the document editing application program further comprises a document sharing option, when the document sharing option is selected, a sharing object list is output, the sharing object list comprises at least one sharing object, and the sharing object can comprise a social application program or a social user in the social application program; the document editing page may be shared to the selected sharing object.
Fig. 8 is a schematic diagram illustrating a process of creating a document editing page and a process of sharing the document editing page according to an exemplary embodiment of the present application, as shown in fig. 8, a document creating option 801 is provided in an interface 80 of a document editing application, and when the document creating option 801 is triggered, the document editing page 30 is displayed. The interface 80 of the document editing application further includes a document sharing option 802, and when the document sharing option 802 is selected, a sharing object list 803 is output, where the sharing object list includes at least one sharing object (for example, the first social application 8031 or the second social application 8032) and the document editing page 30 can be shared with the selected sharing object (for example, the selected sharing object is the first social application 8031).
The document editing page may also be triggered for display by a session page of a social application. Displaying a session page of the social application program, wherein a target session message is displayed in the session page, and the target session message carries an address of a document editing page; and when the target session message is triggered, starting the document editing application program according to the address of the document editing page, and displaying the document editing page in the document editing application program. Fig. 9 is a schematic diagram illustrating a triggered display process of a document editing page according to an exemplary embodiment of the present application, as shown in fig. 9, a target session message 901 is displayed in a session page 90 of a social application, the target session message 901 carries an address of a document editing page 30, and the address of the document editing page 30 is displayed in the session page 90 in the form of a document message (i.e., the target session message 901); when the target session message 901 is triggered, the document editing application is started according to the address of the document editing page 30, and the document editing page 30 is displayed in the interface 80 of the document editing application.
The document editing page comprises a target link, the target link in the document editing page can be obtained by loading plug-ins contained in the document editing page in the process of loading the document editing page, the document editing page carries the plug-ins corresponding to the target link, the plug-ins comprise data sources of each of at least two display forms of the target link, and when the document editing page is loaded, the plug-ins corresponding to the target link are loaded, so that various display forms of the target link can be displayed in the document editing page. The target link in the document editing page can be inserted into the document editing page; the target link may include an original link corresponding to the web page, and the web page corresponding to the original link may be accessed through the original link, that is, the original link is the target link, and inserting the target link in the document editing page may refer to inserting the original link in the document editing page; alternatively, the target link includes an original link and a title, and inserting the target link in the document editing page may refer to inserting the original link and the title in the document editing page. The insertion modes of the target link contained in the document editing page comprise the following modes:
(1) and inputting the target link into the document editing page by selecting the plug-in entry. The document editing page comprises at least one type of plug-in entry, and when the plug-in entry of the target type is selected, an input window is displayed in the document editing page; the input window may include a link input box for inputting a target link corresponding to a plug-in entry of a target type and a confirmation option, the target link being displayed in the document editing page when the confirmation option is selected. The input window may further include a title input box, and the title input box may be used to input a title of the target link, and the title of the target link may be text content in a form of a text chain or a combination form of an icon and the text chain. The display mode of the target link inserted in this way may be set as a card mode by default, and the title of the target link may be displayed in the card mode.
FIG. 10 is a diagram illustrating a manner of inserting a target link according to an exemplary embodiment of the present application, and as shown in FIG. 10, the document editing page 30 includes at least one type of plug-in entry, for example, a first type of plug-in entry 1001, a second type of plug-in entry 1002, and a third type of plug-in entry 1003; displaying an input window 1004 in the document editing page 30 when the first type of add-in entry 1001 is selected, the input window 1004 may include a link input box 1005, a title input box 1006, and a confirmation option 1007, the link input box 1005 being for inputting an original link of the first type, the title input box 1006 being for inputting a title of a target link; when the confirmation option 1007 is selected, the target link is displayed in the document editing page in the card form 303, and the title 1008 of the target link input in the title input box 1006 may be included in the card form 303 or may not be included in the title 1008.
(2) And writing the text of the target link into the document editing page through the link insertion inlet. The document editing page comprises a link insertion inlet, and when the link insertion inlet is selected, an input window is displayed in the document editing page; the input window may include a link input box for inputting a target link and a confirmation option, the target link being displayed in the document editing page when the confirmation option is selected. The input window may further include a title input box, and the title input box may be used to input a title of the target link, and the title of the target link may be text content in a form of a text chain or a combination form of an icon and the text chain. The presentation style of the target link inserted in this manner may be set as a text chain style by default.
FIG. 11 is a schematic diagram illustrating a target link insertion method according to another exemplary embodiment of the present application, where as shown in FIG. 11, a link insertion entry 1101 is included in a document editing page 30, and when the link insertion entry 1101 is selected, an input window 1004 is displayed in the document editing page 30; the input window 1004 may include a link input box 1005, a title input box 1006, and a confirmation option 1007, the link input box 1005 being used to input the original link, and the title input box 1006 being used to input the title of the target link; when the confirmation option 1007 is selected, a target link is displayed in the document editing page in the text chain form 301, and the text content in the text chain form 301 is the title of the target link input in the title input box 1006.
(3) And directly pasting the text of the target link into the document editing page. In one implementation, when the text of the target link is pasted into the document editing page, the text of the target link may be displayed in the document editing page, and an input window including a title input box for inputting a title of the target link may be displayed in the document editing page. In this implementation manner, the presentation form of the target link may be set as a text chain form by default, and the text content in the text chain form is the title of the target link input in the title input box. In another implementation, when the text of the target link is pasted into the document editing page, displaying the text of the target link in the document editing page, and displaying a toolbar at a position related to the target link, wherein the toolbar is provided with a switching list; when a switching option corresponding to a first presentation form in a switching list is selected, displaying an input window in a document editing page, wherein the input window comprises a title input box and a confirmation option, and the title input box is used for inputting a title of a target link; and when the confirmation option is selected, displaying the target link in the document editing page according to the first display form. In this implementation, if the text content of the target link is pasted into the document editing page, the presentation form of the target link may be randomly selected.
FIG. 12 is a diagram illustrating a target link insertion method according to another exemplary embodiment of the present application, where as shown in FIG. 12, when the text 1201 of the target link is pasted into the document editing page 30, the text 1201 of the target link is displayed in the document editing page 30, and a toolbar 401 is displayed at a position related to the target link; when the switch list option 4011 in the toolbar 401 is selected, the switch list 402 is displayed in the document editing page 30; when a switching option 4022 corresponding to the text chain state in the switching list 402 is selected, displaying an input window 1004 in the document editing page 30, wherein the input window 1004 comprises a title input box 1006 and a confirmation option 1007, and the title input box 1006 is used for inputting a title of a target link; when the confirmation option 1007 is selected, a target link is displayed in the document editing page 30 in the text chain form 301, and the text content in the text chain form 301 is the title of the target link entered in the title input box 1006.
Step S703 is to display the target link in the document editing page according to the first presentation form.
The process of executing step S703 in the embodiment of the present application may refer to the detailed description of step S1302 in the embodiment shown in fig. 13.
In step S704, if there is a display form switching trigger event, the target link in the document editing page is switched from the first display form to the second display form.
In the embodiment of the present application, the execution process of step S704 is the same as the execution process of step S403 in the embodiment shown in fig. 4, and specific reference may be made to the description of the embodiment shown in fig. 4, which is not repeated herein.
In the embodiment of the application, the document editing page in the document editing application program supports sharing, the document editing page can be shared in the social application program, the document editing page in the document editing application program can be triggered and displayed through target session information of an address of the document editing page carried in the session page of the social application program, and through interaction between the document editing application program and the social application program, an application scene of a link processing function in the document editing page is effectively expanded, so that the link processing requirements of a user in the social session scene, the social session requirements in the link processing scene and the sharing requirements of the document editing page are met. In addition, the embodiment of the application provides multiple modes for inserting the target link into the document editing page, specifically, the target link can be input into the document editing page by selecting the plug-in entry, the text of the target link can be written into the document editing page by the link insertion entry, the text of the target link can be directly pasted into the document editing page, the insertion mode of the target link is more diversified, a user can select different link insertion modes according to own will, and the user experience is further improved.
Referring to fig. 13, fig. 13 is a flowchart illustrating a link processing method according to another exemplary embodiment of the present application. The link processing method may be executed by a terminal device, and the terminal device may be a device with a display function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and a smart wearable device, which is not limited herein. The link processing method may include the following steps S1301 to S1304:
step S1301, displaying a document editing page, where the document editing page includes a plug-in.
The document editing page comprises plug-ins, each plug-in may comprise a configuration list, and the configuration list comprises at least one domain name (that is, at least one domain name for showing modality switching supported by the document editing page) that the document editing page supports parsing and an icon resource corresponding to each domain name; the links inserted in the document editing page are not all safe links, the analysis capability of the plug-in analysis module for the links is limited, and the plug-in analysis module cannot analyze all the links in the document editing page, so that a configuration list needs to be set to standardize the links in the document editing page, and the safety and the resolvability of the links inserted in the document editing page are ensured. One example of a configuration list can be seen in the following code:
"domains":[
{"domain":"v.qq.com","icon":"toolbar_add_tool_tencentvideo.svg"},
{"domain":"*.bilibili.com","icon":"toolbar_add_tool_bilibili.svg"},
{"domain":"*.processon.com","icon":"toolbar_add_tool_processon.svg"}
]
the code above shows 3 domain names that the document editing page supports parsing and icon resources corresponding to each domain name, namely icon resources "toolbar _ add _ tool _ tencentvideo.sv g" corresponding to the domain name "v.qq.com", icon resources "toolbar _ add _ tool _ bili.svc" corresponding to the domain name ". bilili.com", and icon resources "toolbar _ add _ tool _ processson.svc" corresponding to the domain name ". processson.com".
The target link can be inserted into the document editing page through a plug-in entry, a link insertion option, paste and the like, and the target link is analyzed through a plug-in analysis module in the plug-in to obtain link data, wherein the link data comprises an original link corresponding to a webpage, or the link data comprises the original link and a title input in the document editing page; if the target domain name corresponding to the original link is the domain name in the configuration list, converting the link data to form a data source of each of at least two display forms contained in the target link, and packaging the data source of each display form into a plug-in, so that the input target link and the title can be packaged into the plug-in which can be analyzed in the document editing page through a plug-in analysis module, wherein the plug-in contains the data source of each of at least two display forms of the target link. Wherein, the presentation modality may include, but is not limited to, any of the following: the form of the character chain, the combination form of the icon and the character chain and the form of the card; the data source in the form of a text chain may include a title (i.e., text content) and an original link, or the data source in the form of a text chain may include a title; the data source of the combined form of the icon and the word chain can comprise an icon resource and an original link corresponding to a title and a target domain name, or the data source of the combined form of the icon and the word chain can comprise an icon resource corresponding to a title and a target domain name; the data source in the form of a card may include embedded links that are converted from the original links.
The target link can also be obtained by loading a document editing page, the document editing page comprises a plug-in, and the plug-in can contain a data source of each of at least two display forms of the target link; therefore, in the loading process of the document editing page, the plug-in data (namely the data source of each of the at least two display forms contained in the target link) can be directly read from the plug-in, and the selected data source of the display form is rendered into the document editing page; the selected presentation form may be the presentation form presented last time in the document editing page by the target link before the document editing page is saved, or the selected presentation form may be the presentation form set by default in the document editing page.
Step S1302, reading the data source in the first presentation form from the plug-in, and rendering the data source in the first presentation form to the document editing page.
After the target link is packaged into a plug-in capable of being analyzed in the document editing page, a rendering engine in the rendering module can be used for selecting a corresponding data source showing the form from the plug-in, and the rendering engine is used for rendering the selected data source showing the form into the document editing page, so that document model data can be created. Rendering may be a process of composing and arranging Markup-based content (e.g., HTML, XM L (Extensible Markup Language)), Style-organized files (e.g., csss (Cascading Style Sheets) files, XSL (Extensible Style Language) files), and the like, and then outputting and displaying the composed content on a document editing page by a rendering engine. Specifically, after the data source in the first presentation form is read from the plug-in through the rendering engine, the data source in the first presentation form can be typeset and sorted, and the typeset and sorted data source in the first presentation form is rendered into the document editing page. In one implementation, the first presentation form may be a text chain form, and the data source of the text chain form may include a title (i.e., text content) or an original link; the title and original link may be read from the plug-in by the rendering engine and rendered into the document editing page. In another implementation, the first presentation form may be a combined form of an icon and a word chain, and the data source of the combined form of the icon and the word chain may include an icon corresponding to a title, an original link, or a target domain name; reading a title and an original link from the plug-in through a rendering engine, and reading an icon resource corresponding to a target domain name from a configuration list; and rendering the icon resources corresponding to the title and the target domain name into the document editing page through a rendering engine. In another implementation, the first presentation form may be a card form, and the data source of the card form may include an embedded link; the embedded link can be read in the plug-in through the rendering engine; and analyzing the embedded link through the embedded frame container, and displaying the link content of the original link corresponding to the embedded link in the document editing page.
Step S1303, when there is a display modality switching trigger event, a data source of a second display modality is read from the plug-in.
Step S1304, rendering the data source of the second presentation form, generating the second presentation form, and overlaying the first presentation form with the second presentation form in the document editing page.
In steps S1303 to S1304, when there is a display form switching trigger event, the data source of the second display form may be read from the plug-in by the rendering engine, the data source of the second display form is rendered, the second display form is generated, and the second display form is adopted in the document editing page to cover the first display form, so that the display form of the target link in the document editing page is switched from the first display form to the second display form without deleting the target link displayed according to the first display form.
In the embodiment of the application, data such as a target link and a title input in a document editing page are packaged into a plug-in which can be analyzed in the document editing page through a plug-in technology, and the plug-in comprises a data source of each of at least two display forms of the target link. Aiming at a target link displayed in a first display form in a document editing page, when a display form switching trigger event exists, a data source of a second display form can be read from a plug-in, the second display form obtained by rendering the data source of the second display form is adopted to cover the first display form in the document editing page, and the flexible switching of the display form of the target link in the document editing page is realized by the plug-in technology and the support of the document editing page on the plug-in technology, so that the switching requirement of the link display form is met, and the link display effect is improved.
Referring to fig. 14, fig. 14 is a flowchart illustrating a link processing method provided in another exemplary embodiment of the present application, where the link processing method is implemented by a document presentation layer, a plug-in parsing module, and a document storage layer in a terminal device, where the terminal device may be a device with a display function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and a smart wearable device, and the embodiment of the present application is not limited herein. The link processing method may include the following steps S1401 to S1408:
in step S1401, a target link is inserted in the document editing page.
The target link may be inserted in a manner including, but not limited to, at least one of: the target link is inserted into the document editing page through the plug-in entry, the target link is inserted into the document editing page through the link insertion entry, the target link is directly pasted into the document editing page, and the like, which can be specifically referred to the description of the embodiment shown in fig. 7.
Step S1402, determine whether the configuration list includes a domain name corresponding to the target link.
The configuration list comprises at least one domain name which is supported and analyzed by the document editing page and an icon resource corresponding to each domain name; whether the configuration list contains the domain name corresponding to the target link or not can be judged through the plug-in analysis module, and if the configuration list contains the domain name corresponding to the target link, the document editing page supports analysis of the target link.
Step S1403, it is determined that a domain name corresponding to the target link exists in the configuration list.
If the domain name corresponding to the target link exists in the configuration list, converting the link data obtained by analyzing the target link to generate a data source of each of two display forms of the target link, and encapsulating the data source of each of the two display forms into the plug-in.
In step S1404, the switching list is displayed in the document editing page.
The switching list comprises switching options of each of at least two display forms; for example, the switching list may include a switching option corresponding to a text chain form, a switching option corresponding to a combination form of an icon and a text chain, a switching option corresponding to a card form, and the like.
In steps S1405 to S1406, when the switching option corresponding to the first presentation form in the switching list is selected, the data source of the first presentation form is read from the plug-in, and the data source of the first presentation form is stored in the document storage layer.
In steps S1407 to S1408, after the document presentation layer receives the data source of the first presentation form, the target link is displayed in the document editing page according to the first presentation form.
And after receiving the data source of the first display form, the document display layer renders the data source of the first display form through a rendering engine to generate the first display form, and displays the target link in the document editing page according to the first display form. For example, if the first presentation form is a text chain form, rendering a data source (such as an original link and a title) of the text chain form by a rendering engine to generate a text chain form, and displaying a target link in the document editing page according to the text chain form; if the first display form is the combined form of the icon and the character chain, rendering a data source (such as an icon corresponding to a domain name of an original link, a title and a target link) of the combined form of the icon and the character chain through a rendering engine to generate the combined form of the icon and the character chain, and displaying the target link in a document editing page according to the combined form of the icon and the character chain; if the first presentation form is a card form, rendering a data source (for example, an embedded link obtained by converting an original link) of the card form by using a rendering engine to generate the card form, and displaying the target link in the document editing page according to the card form.
In the embodiment of the application, the link processing function of the document editing page is further expanded, and the document editing page is combined with the plug-in technology. After the target link is inserted into the document editing page, the target link can be analyzed and converted through a plug-in analysis module of the plug-in, and a data source of each of at least two display forms of the target link is generated, so that the target link can be displayed according to the display form selected in the document editing page, and the link display capability of the document editing page is enriched. The display form can comprise a character chain form, a combination form of an icon and a character chain, a card form and the like, and the link display requirement of the document editing page is fully met.
Referring to fig. 15, fig. 15 is a flowchart illustrating a link processing method provided in another exemplary embodiment of the present application, where the link processing method is implemented by a document presentation layer and a document storage layer in a terminal device, and the terminal device may be a device with a display function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, and a smart wearable device, which is not limited herein. The link processing method may include the following steps S1501 to S1506:
in steps S1501 to S1502, when the target link displayed in the first presentation form is selected, the switching list is displayed in the document editing page.
And aiming at the target link displayed in the document editing page according to the first display form, when the target link displayed in the first display form is selected, displaying a switching list in the document editing page. The switching list comprises switching options of each of at least two display forms of the target link; for example, the switching list may include a switching option corresponding to a text chain form, a switching option corresponding to a combination form of an icon and a text chain, a switching option corresponding to a card form, and the like.
Step S1503 to step S1504, when the switching option corresponding to the second presentation form in the switching list is selected, reading the data source of the second presentation form from the plug-in.
The plug-in comprises a data source of each of at least two display forms of the target link, and when a switching option corresponding to a second display form in the switching list is selected, the data source of the second display form is read from the plug-in.
In step S1505, the data source in the first display form stored in the document storage layer is deleted, and the data source in the second display form is stored.
In step S1506, the target link in the document editing page is switched from the first presentation form to the second presentation form.
And after receiving the data source of the second display form, the document display layer renders the data source of the second display form to generate the second display form, and the document editing page adopts the second display form to cover the first display form.
In the embodiment of the application, for a target link displayed in a first presentation form in a document editing page, if a presentation form switching trigger event exists (for example, when a switching option corresponding to a second presentation form in a switching list is selected), a data source of the second presentation form can be read from a plug-in, and the first presentation form is covered by the second presentation form obtained by rendering the data source of the second presentation form, so that the target link can be displayed in the document editing page according to the second presentation form; by combining the document editing page with the plug-in technology, the flexible switching of the display forms of the target links in the document editing page is realized, the switching requirements of the link display forms are met, and the link display effect is improved.
Referring to fig. 16, fig. 16 is a schematic structural diagram of a link processing apparatus according to an exemplary embodiment of the present application, where the link processing apparatus 160 may be configured to execute corresponding steps in the link processing methods shown in fig. 4, fig. 7, fig. 13, fig. 14, or fig. 15, and the link processing apparatus 160 includes the following units:
the display unit 1601 is used for displaying a document editing page, wherein the document editing page comprises a target link, and the target link comprises at least two display forms;
the display unit 1601 is further configured to display the target link in a first presentation form in the document editing page;
a processing unit 1602, configured to switch a target link in a document editing page from a first presentation form to a second presentation form if a presentation form switching trigger event exists;
wherein the first exhibited morphology is any one of the at least two exhibited morphologies and the second exhibited morphology is any one of the at least two exhibited morphologies other than the first exhibited morphology.
In one implementation, each of the at least two presentation forms corresponds to one switching option; the display unit 1601 is further configured to:
displaying a switching list in a document editing page, wherein the switching list comprises a switching option corresponding to each of at least two display forms;
and when the switching option corresponding to the second display form is selected, generating a display form switching trigger event.
In one implementation, the switch list is disposed in a menu bar, which is hidden in the document editing page by default; the display unit 1601 is further configured to: displaying a menu bar in the document editing page when a selection operation is performed on a target link displayed in the document editing page; and the number of the first and second groups,
the switch list is set in a toolbar that is displayed by default in a document editing page at a location associated with the target link.
In one implementation mode, when a target link is displayed in a document editing page according to a first presentation form, a switching option corresponding to the first presentation form is set to be in an unselected state in a switching list, and switching options corresponding to other presentation forms except the first presentation form are set to be in a selectable state;
when the target link in the document editing page is switched from the first presentation form to the second presentation form, the switching option corresponding to the second presentation form is set to be in the non-selectable state in the switching list, and the switching options corresponding to other presentation forms except the second presentation form are set to be in the selectable state.
In one implementation, each of the at least two presentation forms corresponds to a time threshold; a processing unit 1602, further configured to:
when the display duration of the target link displayed in the document editing page according to the first display form reaches a time threshold corresponding to the first display form, generating a display form switching trigger event;
wherein the second display modality refers to any one of at least two display modalities randomly selected from other display modalities except the first display modality; or, if each of the at least two display modalities corresponds to one display priority, the second display modality is one selected from the other display modalities in the order of the display priorities from high to low.
In one implementation, a document editing page is displayed in an interface of a document editing application; the display unit 1601 is specifically configured to:
outputting an interface of the document editing application program, wherein a document creating option is arranged in the interface of the document editing application program;
when the document creating option is triggered, displaying a document editing page, wherein the interface of the document editing application program also comprises a document sharing option;
the display unit 1601 is further configured to: when the document sharing option is selected, outputting a sharing object list, wherein the sharing object list comprises at least one sharing object, and the sharing object comprises a social application program or a social user in the social application program; and sharing the document editing page to the selected sharing object.
In one implementation, the display unit 1601 is specifically configured to:
displaying a session page of the social application program, wherein a target session message is displayed in the session page, and the target session message carries an address of a document editing page;
and when the target session message is triggered, displaying the document editing page according to the address of the document editing page.
In one implementation, the display unit 1601 is further configured to: inputting a target link in a document editing page;
the input mode of the target link comprises at least one of the following modes:
writing the text of the target link into a document editing page;
and if the document editing page comprises the plug-in entry, inserting the target link into the document editing page by selecting the plug-in entry.
In one implementation, the document editing page includes a plug-in, the plug-in includes a configuration list, and the configuration list includes at least one domain name that the document editing page supports parsing and an icon resource corresponding to each domain name; a processing unit 1602, further configured to:
analyzing the target link to obtain link data, wherein the link data comprise an original link corresponding to the webpage, or the link data comprise the original link and a title;
if the target domain name corresponding to the original link is the domain name in the configuration list, converting the link data to form a data source of each of at least two display forms;
packaging the data source of each display form into a plug-in;
wherein the exhibited morphology comprises any one of: the form of the character chain, the combination form of the icon and the character chain and the form of the card; the data source of the word chain form comprises a title and an original link; the data source of the combination form of the icon and the character chain comprises a title, an icon resource corresponding to a target domain name and an original link; the data source in the form of a card comprises an embedded link obtained by converting an original link.
In one implementation, if the first presentation form is a text chain form, the processing unit 1602 is specifically configured to: reading the title and the original link from the plug-in through a rendering engine; rendering the title into a document editing page by a rendering engine; alternatively, the first and second electrodes may be,
if the first display mode is a combination of icons and word chains, the processing unit 1602 is specifically configured to: reading a title and an original link from the plug-in through a rendering engine, and reading an icon resource corresponding to a target domain name from a configuration list; rendering the icon resources corresponding to the title and the target domain name into a document editing page through a rendering engine; alternatively, the first and second electrodes may be,
if the first display mode is the card mode, the processing unit 1602 is specifically configured to: reading the embedded link in the plug-in through a rendering engine; and analyzing the embedded link through the embedded frame container, and displaying the link content of the original link corresponding to the embedded link in the document editing page.
In one implementation, the processing unit 1602 is specifically configured to:
reading a data source of the second display form from the plug-in through the rendering engine;
rendering the data source of the second display form through a rendering engine to generate a second display form;
and adopting the second display mode to cover the first display mode in the document editing page.
According to an embodiment of the present application, the units in the link processing apparatus 160 shown in fig. 16 may be respectively or entirely combined into one or several other units to form one or several other units, or some unit(s) thereof may be further split into multiple functionally smaller units to form one or more other units, which may achieve the same operation without affecting the achievement of the technical effect of the embodiment of the present application. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present application, the link processing device 160 may also include other units, and in practical applications, these functions may also be implemented by being assisted by other units, and may be implemented by cooperation of multiple units. According to another embodiment of the present application, the link processing apparatus 160 as shown in fig. 16 may be configured by running a computer program (including program codes) capable of executing the steps involved in the respective methods as shown in fig. 4, fig. 7, fig. 13, fig. 14, or fig. 15 on a general-purpose computing device including a general-purpose computer such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read-only storage medium (ROM), or the like, and a storage element, and the link processing method of the embodiment of the present application may be implemented. The computer program may be, for example, embodied on a computer-readable storage medium, and loaded into and executed in the terminal device via the computer-readable storage medium.
In the embodiment of the present application, for a target link displayed in a first presentation form in a document editing page, if there is a presentation form switching trigger event (for example, a display duration for displaying the target link in the first presentation form reaches a certain time threshold, or a user actively executes an operation for triggering switching of the presentation form based on a requirement, etc.), the presentation form of the target link in the document editing page may be switched from the first presentation form to a second presentation form; by the scheme, flexible switching of the display forms of the target links in the document editing page is achieved, the switching requirements of the link display forms are met, and the link display effect is improved.
Referring to fig. 17, fig. 17 is a schematic diagram illustrating a structure of a terminal device according to an exemplary embodiment of the present application, where the terminal device 170 includes at least a processor 1701 and a computer-readable storage medium 1702. The processor 1701 and the computer-readable storage medium 1702 may be connected by a bus or other means. A computer-readable storage medium 1702 may be stored in the memory, the computer-readable storage medium 1702 being configured to store a computer program comprising computer instructions for execution by the processor 1701. The processor 1701 (or CPU) is a computing core and a control core of the terminal device 170, and is adapted to implement one or more computer instructions, and specifically, adapted to load and execute one or more computer instructions so as to implement corresponding method flows or corresponding functions.
An embodiment of the present application further provides a computer-readable storage medium (Memory), which is a Memory device in the terminal device 170 and is used for storing programs and data. It is understood that the computer readable storage medium 1702 herein may include both a built-in storage medium in the terminal device 170 and, of course, an extended storage medium supported by the terminal device 170. The computer-readable storage medium provides a storage space that stores an operating system of the terminal device 170. Also stored in the memory space are one or more computer instructions, which may be one or more computer programs (including program code), suitable for loading and execution by the processor 1701. It should be noted that the computer-readable storage medium 1702 may be a high-speed RAM Memory, or may be a Non-Volatile Memory (Non-Volatile Memory), such as at least one disk Memory; and optionally at least one computer-readable storage medium located remotely from the processor 1701.
The computer-readable storage medium 1702 has stored therein a computer program comprising one or more computer instructions; one or more computer instructions are loaded and executed by the processor 1701 to implement the corresponding steps in the method embodiments shown in FIG. 4, FIG. 7, FIG. 13, FIG. 14, or FIG. 15; in particular implementations, computer instructions in the computer-readable storage medium 1702 are loaded and executed by the processor 1701 to perform the steps of:
displaying a document editing page, wherein the document editing page comprises a target link, and the target link comprises at least two display forms;
displaying the target link in the document editing page according to the first display form;
if the display form switching trigger event exists, switching the target link in the document editing page from a first display form to a second display form;
wherein the first exhibited morphology is any one of the at least two exhibited morphologies and the second exhibited morphology is any one of the at least two exhibited morphologies other than the first exhibited morphology.
In one implementation, each of the at least two presentation forms corresponds to one switching option; the computer instructions in the computer-readable storage medium 1702, when loaded by the processor 1701, are further operable to perform the steps of:
displaying a switching list in a document editing page, wherein the switching list comprises a switching option corresponding to each of at least two display forms;
and when the switching option corresponding to the second display form is selected, generating a display form switching trigger event.
In one implementation, the switch list is disposed in a menu bar, which is hidden in the document editing page by default; the computer instructions in the computer-readable storage medium 1702, when loaded by the processor 1701, are further operable to perform the steps of: displaying a menu bar in the document editing page when a selection operation is performed on a target link displayed in the document editing page; and the number of the first and second groups,
the switch list is set in a toolbar that is displayed by default in a document editing page at a location associated with the target link.
In one implementation mode, when a target link is displayed in a document editing page according to a first presentation form, a switching option corresponding to the first presentation form is set to be in an unselected state in a switching list, and switching options corresponding to other presentation forms except the first presentation form are set to be in a selectable state;
when the target link in the document editing page is switched from the first presentation form to the second presentation form, the switching option corresponding to the second presentation form is set to be in the non-selectable state in the switching list, and the switching options corresponding to other presentation forms except the second presentation form are set to be in the selectable state.
In one implementation, each of the at least two presentation forms corresponds to a time threshold; the computer instructions in the computer-readable storage medium 1702, when loaded by the processor 1701, are further operable to perform the steps of:
when the display duration of the target link displayed in the document editing page according to the first display form reaches a time threshold corresponding to the first display form, generating a display form switching trigger event;
wherein the second display modality refers to any one of at least two display modalities randomly selected from other display modalities except the first display modality; or, if each of the at least two display modalities corresponds to one display priority, the second display modality is one selected from the other display modalities in the order of the display priorities from high to low.
In one implementation, a document editing page is displayed in an interface of a document editing application; the computer instructions in the computer-readable storage medium 1702, when loaded by the processor 1701, are particularly adapted to perform the steps of:
outputting an interface of the document editing application program, wherein a document creating option is arranged in the interface of the document editing application program;
when the document creating option is triggered, displaying a document editing page, wherein the interface of the document editing application program also comprises a document sharing option;
the computer instructions in the computer-readable storage medium 1702, when loaded by the processor 1701, are further operable to perform the steps of: when the document sharing option is selected, outputting a sharing object list, wherein the sharing object list comprises at least one sharing object, and the sharing object comprises a social application program or a social user in the social application program; and sharing the document editing page to the selected sharing object.
In one implementation, the computer instructions in the computer-readable storage medium 1702, when loaded by the processor 1701, are specifically configured to perform the steps of:
displaying a session page of the social application program, wherein a target session message is displayed in the session page, and the target session message carries an address of a document editing page;
and when the target session message is triggered, displaying the document editing page according to the address of the document editing page.
In one implementation, the computer instructions in the computer-readable storage medium 1702, when loaded by the processor 1701, are further configured to perform the steps of: inputting a target link in a document editing page;
the input mode of the target link comprises at least one of the following modes:
writing the text of the target link into a document editing page;
and if the document editing page comprises the plug-in entry, inserting the target link into the document editing page by selecting the plug-in entry.
In one implementation, the document editing page includes a plug-in, the plug-in includes a configuration list, and the configuration list includes at least one domain name that the document editing page supports parsing and an icon resource corresponding to each domain name; the computer instructions in the computer-readable storage medium 1702, when loaded by the processor 1701, are further operable to perform the steps of:
analyzing the target link to obtain link data, wherein the link data comprise an original link corresponding to the webpage, or the link data comprise the original link and a title;
if the target domain name corresponding to the original link is the domain name in the configuration list, converting the link data to form a data source of each of at least two display forms;
packaging the data source of each display form into a plug-in;
wherein the exhibited morphology comprises any one of: the form of the character chain, the combination form of the icon and the character chain and the form of the card; the data source of the word chain form comprises a title and an original link; the data source of the combination form of the icon and the character chain comprises a title, an icon resource corresponding to a target domain name and an original link; the data source in the form of a card comprises an embedded link obtained by converting an original link.
In one implementation, if the first presentation modality is a word chain modality, then the computer instructions in the computer readable storage medium 1702, when loaded by the processor 1701, are specifically adapted to perform the following steps: reading the title and the original link from the plug-in through a rendering engine; rendering the title into a document editing page by a rendering engine; alternatively, the first and second electrodes may be,
if the first presentation modality is a combination modality of icons and word chains, the computer instructions in the computer readable storage medium 1702, when loaded by the processor 1701, are specifically adapted to perform the following steps: reading a title and an original link from the plug-in through a rendering engine, and reading an icon resource corresponding to a target domain name from a configuration list; rendering the icon resources corresponding to the title and the target domain name into a document editing page through a rendering engine; alternatively, the first and second electrodes may be,
if the first presentation modality is the card modality, the computer instructions in the computer readable storage medium 1702, when loaded by the processor 1701, are specifically adapted to perform the following steps: reading the embedded link in the plug-in through a rendering engine; and analyzing the embedded link through the embedded frame container, and displaying the link content of the original link corresponding to the embedded link in the document editing page.
In one implementation, the computer instructions in the computer-readable storage medium 1702, when loaded by the processor 1701, are specifically configured to perform the steps of:
reading a data source of the second display form from the plug-in through the rendering engine;
rendering the data source of the second display form through a rendering engine to generate a second display form;
and adopting the second display mode to cover the first display mode in the document editing page.
In the embodiment of the present application, for a target link displayed in a first presentation form in a document editing page, if there is a presentation form switching trigger event (for example, a display duration for displaying the target link in the first presentation form reaches a certain time threshold, or a user actively executes an operation for triggering switching of the presentation form based on a requirement, etc.), the presentation form of the target link in the document editing page may be switched from the first presentation form to a second presentation form; by the scheme, flexible switching of the display forms of the target links in the document editing page is achieved, the switching requirements of the link display forms are met, and the link display effect is improved.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the link processing method provided in the above-described various alternatives.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (13)

1. A method of link processing, the method comprising:
displaying a document editing page, wherein the document editing page comprises a plug-in, and the plug-in is packaged with link processing capacity; the document editing page comprises a target link, and the target link comprises at least two display forms;
loading the plug-in the document editing page; the plug-in comprises a configuration list, wherein the configuration list comprises at least one domain name which is supported and resolved by the document editing page; the document editing page has link processing capacity after the plug-in is loaded, and the document editing page supports sharing, so that a sharing object loads the plug-in contained in the document editing page in the process of loading the document editing page;
analyzing the target link to obtain link data, wherein the link data comprises an original link corresponding to a webpage, or the link data comprises the original link and a title;
if the target domain name corresponding to the original link is the domain name in the configuration list, converting the link data to form a data source of each of the at least two display forms;
packaging the data source of each display form into the plug-in;
displaying the target link in the document editing page according to a first display form;
if the display form switching trigger event exists, reading a data source of a second display form from the plug-in through a rendering engine; rendering the data source of the second presentation form through the rendering engine to generate the second presentation form; covering the first display form with the second display form in the document editing page;
wherein the first exhibited morphology is any one of the at least two exhibited morphologies and the second exhibited morphology is any one of the at least two exhibited morphologies other than the first exhibited morphology.
2. The method of claim 1, wherein each of the at least two presentation modalities corresponds to a respective one of the switching options; the method further comprises the following steps:
displaying a switching list in the document editing page, wherein the switching list comprises switching options corresponding to each of the at least two display forms;
and when the switching option corresponding to the second presentation form is selected, generating the presentation form switching trigger event.
3. The method of claim 2, wherein the switching list is arranged in a manner that includes at least one of:
the switching list is arranged in a menu bar, and the menu bar is hidden in the document editing page by default; displaying the menu bar in the document editing page when a selection operation is performed on the target link displayed in the document editing page; and the number of the first and second groups,
the switch list is provided in a toolbar that is displayed by default in the document editing page at a location associated with the target link.
4. The method of claim 2, wherein the method further comprises:
when the target link is displayed in the document editing page according to the first presentation form, setting a switching option corresponding to the first presentation form in the switching list to be in an unselected state, and setting switching options corresponding to other presentation forms except the first presentation form to be in a selectable state;
when the target link in the document editing page is switched from the first presentation form to the second presentation form, setting the switching option corresponding to the second presentation form as the non-selectable state in the switching list, and setting the switching option corresponding to the other presentation forms except the second presentation form as the selectable state.
5. The method of claim 1, wherein each of the at least two exhibited morphologies corresponds to a time threshold; the method further comprises the following steps:
when the display duration of the target link displayed in the document editing page according to the first display form reaches a time threshold corresponding to the first display form, generating a display form switching trigger event;
wherein the second exhibited morphology refers to any one of the exhibited morphologies randomly selected from the other exhibited morphologies other than the first exhibited morphology; or, if each of the at least two presentation forms corresponds to a presentation priority, the second presentation form is one presentation form selected from the other presentation forms according to the presentation priorities from high to low.
6. The method of claim 1, wherein the document editing page is displayed in an interface of a document editing application; the display document editing page includes:
outputting an interface of the document editing application program, wherein a document creating option is arranged in the interface of the document editing application program;
when the document creating option is triggered, displaying the document editing page, wherein the interface of the document editing application program further comprises a document sharing option;
the method further comprises the following steps:
when the document sharing option is selected, outputting a sharing object list, wherein the sharing object list comprises at least one sharing object, and the sharing object comprises a social application program or a social user in the social application program; and sharing the document editing page to the selected sharing object.
7. The method of claim 1, wherein the displaying the document editing page comprises:
displaying a session page of a social application program, wherein a target session message is displayed in the session page, and the target session message carries an address of the document editing page;
and when the target session message is triggered, displaying the document editing page according to the address of the document editing page.
8. The method of claim 1, wherein the method further comprises: inputting the target link in the document editing page;
the input mode of the target link comprises at least one of the following modes:
writing the text of the target link into the document editing page;
and if the document editing page comprises a plug-in inlet, inserting the target link into the document editing page by selecting the plug-in inlet.
9. The method of claim 1, wherein the configuration list further comprises an icon resource corresponding to each domain name; the method further comprises the following steps:
wherein the exhibited morphology comprises any one of: the form of the character chain, the combination form of the icon and the character chain and the form of the card; the data source of the word chain form comprises the title and the original link; the data source of the combined form of the icon and the character chain comprises the title, the icon resource corresponding to the target domain name and the original link; the data source in the form of the card comprises an embedded link obtained by converting the original link.
10. The method of claim 9, wherein displaying the target link in the document editing page in the first presentation form if the first presentation form is the text chain form comprises: reading, by a rendering engine, the title and the original link from the plug-in; rendering, by the rendering engine, the title into the document editing page; alternatively, the first and second electrodes may be,
if the first presentation form is a combination form of the icon and the text chain, the displaying the target link in the document editing page according to the first presentation form includes: reading the title and the original link from the plug-in through the rendering engine, and reading the icon resource corresponding to the target domain name from the configuration list; rendering the icon resources corresponding to the title and the target domain name into the document editing page through the rendering engine; alternatively, the first and second electrodes may be,
if the first presentation form is the card form, displaying the target link in the document editing page according to the first presentation form, including: reading, by the rendering engine, the embedded link in the plug-in; and analyzing the embedded link through an embedded frame container, and displaying the link content of the original link corresponding to the embedded link in the document editing page.
11. A link processing apparatus characterized by comprising:
a display unit for displaying a document editing page, the document editing page including a plug-in, the plug-in being packaged with a link processing capability; the document editing page comprises a target link, and the target link comprises at least two display forms;
the processing unit is used for loading the plug-in the document editing page; the plug-in comprises a configuration list, wherein the configuration list comprises at least one domain name which is supported and resolved by the document editing page; the document editing page has link processing capacity after the plug-in is loaded, and the document editing page supports sharing, so that a sharing object loads the plug-in contained in the document editing page in the process of loading the document editing page; analyzing the target link to obtain link data, wherein the link data comprises an original link corresponding to a webpage, or the link data comprises the original link and a title; if the target domain name corresponding to the original link is the domain name in the configuration list, converting the link data to form a data source of each of the at least two display forms; packaging the data source of each display form into the plug-in;
the display unit is further used for displaying the target link in the document editing page according to a first display form;
the processing unit is further configured to read a data source of a second presentation form from the plug-in through the rendering engine if a presentation form switching trigger event exists; rendering the data source of the second presentation form through the rendering engine to generate the second presentation form; covering the first display form with the second display form in the document editing page;
wherein the first exhibited morphology is any one of the at least two exhibited morphologies and the second exhibited morphology is any one of the at least two exhibited morphologies other than the first exhibited morphology.
12. A terminal device, characterized in that the terminal device comprises:
a processor adapted to implement a computer program; and the number of the first and second groups,
computer readable storage medium, storing a computer program adapted to be loaded by said processor and to execute the link processing method according to any of claims 1 to 10.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a computer program adapted to be loaded by a processor and to perform the link processing method according to any one of claims 1 to 10.
CN202011281041.4A 2020-11-16 2020-11-16 Link processing method, link processing device, terminal equipment and storage medium Active CN112632920B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011281041.4A CN112632920B (en) 2020-11-16 2020-11-16 Link processing method, link processing device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011281041.4A CN112632920B (en) 2020-11-16 2020-11-16 Link processing method, link processing device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112632920A CN112632920A (en) 2021-04-09
CN112632920B true CN112632920B (en) 2021-11-23

Family

ID=75303237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011281041.4A Active CN112632920B (en) 2020-11-16 2020-11-16 Link processing method, link processing device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112632920B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113011120A (en) * 2021-03-04 2021-06-22 北京润尼尔网络科技有限公司 Electronic circuit simulation system, method and machine-readable storage medium
CN113282863B (en) * 2021-06-11 2023-04-21 上海哔哩哔哩科技有限公司 Service page generation method and device
CN113946253A (en) * 2021-10-25 2022-01-18 杭州网易竹书信息技术有限公司 Rich media display method, medium, device and computing equipment
CN114036114A (en) * 2021-11-25 2022-02-11 北京达佳互联信息技术有限公司 Method and device for displaying attachment in online document, electronic equipment and storage medium
CN114185465B (en) * 2021-12-14 2024-02-23 北京字跳网络技术有限公司 Information processing method, information processing device, storage medium and electronic equipment
CN114564267B (en) * 2022-02-28 2024-03-26 北京字跳网络技术有限公司 Information processing method, apparatus, electronic device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750479A (en) * 2015-02-28 2015-07-01 小米科技有限责任公司 Interface displaying method and device
CN104798072A (en) * 2012-09-25 2015-07-22 欧普拉软件公司 Information management and display in web browsers
CN105745649A (en) * 2013-11-18 2016-07-06 微软技术许可有限责任公司 Link insertion and link preview features
CN107665075A (en) * 2016-07-29 2018-02-06 上海签成国际贸易有限公司 A kind of convenient choosing method of combobox and can convenient selection combobox
CN109976617A (en) * 2019-04-03 2019-07-05 腾讯科技(深圳)有限公司 Document display method and apparatus
CN110472199A (en) * 2018-05-11 2019-11-19 成都野望数码科技有限公司 A kind of method and device of regulating object pattern
CN111459363A (en) * 2020-03-31 2020-07-28 腾讯科技(深圳)有限公司 Information display method, device, equipment and storage medium
CN111914517A (en) * 2020-06-20 2020-11-10 北京海金格医药科技股份有限公司 Document hyperlink creating method and device, electronic equipment and readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002544597A (en) * 1999-05-07 2002-12-24 アーゴウ インターラクティブ リミテッド Display text correction for linked data items
JP2001084247A (en) * 1999-09-13 2001-03-30 Toshiba Corp System for managing link information
US20020069223A1 (en) * 2000-11-17 2002-06-06 Goodisman Aaron A. Methods and systems to link data
CN105095348B (en) * 2015-06-09 2019-03-26 北京织星科技有限公司 A method of passing through XML dynamic configuration website
US9852480B1 (en) * 2016-06-10 2017-12-26 Understory, LLC Data processing system for managing activities linked to multimedia content
CN109446459B (en) * 2018-10-11 2021-08-27 北京三快在线科技有限公司 Page switching method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104798072A (en) * 2012-09-25 2015-07-22 欧普拉软件公司 Information management and display in web browsers
CN105745649A (en) * 2013-11-18 2016-07-06 微软技术许可有限责任公司 Link insertion and link preview features
CN104750479A (en) * 2015-02-28 2015-07-01 小米科技有限责任公司 Interface displaying method and device
CN107665075A (en) * 2016-07-29 2018-02-06 上海签成国际贸易有限公司 A kind of convenient choosing method of combobox and can convenient selection combobox
CN110472199A (en) * 2018-05-11 2019-11-19 成都野望数码科技有限公司 A kind of method and device of regulating object pattern
CN109976617A (en) * 2019-04-03 2019-07-05 腾讯科技(深圳)有限公司 Document display method and apparatus
CN111459363A (en) * 2020-03-31 2020-07-28 腾讯科技(深圳)有限公司 Information display method, device, equipment and storage medium
CN111914517A (en) * 2020-06-20 2020-11-10 北京海金格医药科技股份有限公司 Document hyperlink creating method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN112632920A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN112632920B (en) Link processing method, link processing device, terminal equipment and storage medium
EP3518124A1 (en) Webpage rendering method and related device
CN109408752B (en) Online document display method and device and electronic equipment
WO2018187063A1 (en) Smarter copy/paste
WO2012055787A1 (en) Method for displaying a data set
JP2022533203A (en) How and equipment to insert information into online documents
CN102929912A (en) Method and system for generating microblog pictures
CN110941500A (en) Interface display method and device
CN102770840A (en) Data structure mapping and navigation
CN111325004B (en) File commenting and viewing method
CN113377373A (en) Page loading method and device based on analysis engine, computer equipment and medium
CN110990345A (en) Method and device for online preview of Excel file
US10628526B2 (en) Providing suggested diagrammatic representations of user entered textual information
CN116820635A (en) Document block sharing method, device, system and storage medium
CN105989126A (en) Webpage displaying method and device
CN110333853A (en) Application method, device, equipment and the readable storage medium storing program for executing of active card
CN102314468A (en) Synchronous browse method
CN115065945B (en) Short message link generation method and device, electronic equipment and storage medium
CN111914193A (en) Method, device and equipment for processing media information and computer readable storage medium
US11586661B2 (en) Systems and methods for documentation through gleaning content with an intuitive user experience
JP5695781B1 (en) Program, system, and method for introducing digital content
CN112199090A (en) Information flow processing method, device and computer readable storage medium
CN111625740A (en) Image display method, image display device and electronic equipment
CN117422052A (en) Document processing method, document processing device, computer, readable storage medium, and program product
CN116501417A (en) Information processing method, device, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40042443

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant