Content editing method and apparatus, and device and storage medium

By introducing material controls into the content editor of the investment and financial management platform, users are allowed to add materials in the text input area, which solves the problem of the platform being unable to support adding materials and improves the richness and user experience of content editing.

WO2024221877A1PCT designated stage expired Publication Date: 2024-10-31FUTU NETWORK TECH (SHENZHEN) CO LTD

Patent Information

Application Number
PCT/CN2023/133351
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-25
Filing Date
2023-11-22
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

The investment and financial management platform cannot support users to add various materials to the edited text content, resulting in the user's edited content being too single, resulting in a poor user content editing experience.

Method used

A content editing method and device are provided. By introducing material controls in the content editor, users are allowed to input target text and add target materials in the text input area, thereby enhancing the richness and personalization of content editing.

Benefits of technology

It improves the user's content editing experience, makes the edited content richer and more diverse, and supports users to add various materials to the text content to meet user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023133351_31102024_PF_FP_ABST
    Figure CN2023133351_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a content editing method and apparatus, and a device and a storage medium. The method comprises: calling a content editor according to a content editing instruction, wherein the content editor comprises a text input region and a material control; inputting target text into the text input region; adding target material to the text input region according to the material control; and performing content editing according to the target text and the target material. In the present application, the requirement of a user to add material to text content can be met, such that the edited content is richer and more diversified, thereby improving the content editing experience of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Content editing method, device, equipment and storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application number 202310470962.2, filed on April 25, 2023, entitled “Content Editing Method, Apparatus, Equipment and Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The embodiments of the present application relate to the field of computer technology, and in particular to a content editing method, apparatus, device, and storage medium. Background Art

[0004] With the advancement of network technology, most platforms now support user-editable content. For example, users can edit and share their investment and financial management insights on investment and financial management platforms. When editing content, users often need to use various resources, such as adding market charts, portfolio snapshots, or video links. However, current investment and financial management platforms do not support the addition of these resources to edited text, resulting in an overly limited user experience and a poor editing experience.

[0005] Summary of the Invention

[0006] The present application provides a content editing method, apparatus, device and storage medium, which can meet the needs of users to add materials to text content, making the edited content richer and more diverse, thereby improving the user's content editing experience.

[0007] In a first aspect, an embodiment of the present application provides a content editing method, comprising:

[0008] According to the content editing instruction, calling the content editor, the content editor includes: a text input area and a material control;

[0009] Enter target text in the text input area;

[0010] According to the material control, add the target material in the text input area;

[0011] Content editing is performed according to the target text and the target material.

[0012] In a second aspect, an embodiment of the present application provides a content editing device, comprising:

[0013] A calling module, configured to call a content editor according to a content editing instruction, wherein the content editor includes a text input area and a material control;

[0014] An input module, configured to input a target text into the text input area;

[0015] An adding module, configured to add a target material in the text input area according to the material control;

[0016] An editing module is used to edit content according to the target text and the target material.

[0017] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0018] A processor and a memory, the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the content editing method as described in the embodiment of the first aspect.

[0019] The technical solutions disclosed in the embodiments of this application have at least the following beneficial effects:

[0020] By calling up the content editor according to the content editing instruction, the target text is entered in the text input area, and the target material is added in the text input area according to the material control in the content editor, and then the content is edited according to the target text and target material in the text input area. This application adds a material control to the content editor on the platform, allowing users to add various materials to the edited text content, thereby meeting the user's needs to add materials to the text content, making the edited content more rich and diverse, and thus improving the user's content editing experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0022] FIG1 is a flow chart of a content editing method provided in an embodiment of the present application;

[0023] FIG2a is a schematic diagram of a content editing control displayed on an investment and financial management APP provided by an embodiment of the present application;

[0024] FIG2 b is a schematic diagram of entering a content editor provided by an embodiment of the present application;

[0025] FIG3a is a schematic diagram of a content type display panel provided by an embodiment of the present application;

[0026] FIG3 b is a schematic diagram of a content editing style of dynamic content provided by an embodiment of the present application;

[0027] FIG3c is a schematic diagram of a content editing style of a note content provided by an embodiment of the present application;

[0028] FIG4 is a flow chart of another content editing method provided in an embodiment of the present application;

[0029] FIG5 is a schematic diagram of publishing content to be published according to an embodiment of the present application;

[0030] FIG6 is a flowchart of another content editing method provided in an embodiment of the present application;

[0031] FIG7 is a schematic diagram of a UML class diagram of a content editor provided in an embodiment of the present application;

[0032] FIG8 is a schematic diagram of integrating a third-party open source library IGList with a content editor according to an embodiment of the present application;

[0033] FIG9 is a schematic block diagram of a content editing device provided in an embodiment of the present application;

[0034] FIG10 is a schematic block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0036] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0037] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or solution described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0038] In response to the problem that current investment and financial management platforms cannot support users to add various materials to the text content they edit, making the content edited by users too monotonous and resulting in a poor user content editing experience, this application designs a content editing solution that can meet the needs of users to add various materials to the text content they edit, thereby improving the user's content editing experience.

[0039] The following describes in detail a content editing method, apparatus, device, and storage medium provided by an embodiment of the present application with reference to the accompanying drawings.

[0040] FIG1 is a flow chart of a content editing method provided by an embodiment of the present application. The embodiment of the present application is applicable to scenarios in which various investment and financial management related content is edited on an investment and financial management platform, such as users editing their own investment insights, etc. The content editing method can be executed by a content editing device. The content editing device can be composed of hardware and / or software and can be integrated into an electronic device. Optionally, the electronic device of the present application can be any hardware device that has an investment and financial management application (Application, abbreviated as APP) installed. For example, the electronic device can be selected from but not limited to: a smart phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (PDA), etc. The present application does not specifically limit the type of electronic device.

[0041] As shown in FIG1 , the method may include the following steps:

[0042] S101: Invoke a content editor according to a content editing instruction. The content editor includes a text input area and a material control.

[0043] Typically, when users use investment and financial management apps, they will have the need to share their investment insights or review their investment operations. Therefore, in order to meet the needs of users to edit content on investment and financial management apps, this application sets up a content editor on investment and financial management apps, so that users can edit and publish content on investment and financial management apps through the content editor.

[0044] Compared with web page content editors, native content editors have fast rendering speed, can support a large number of graphics and animations, and have fast response speed and good fluency. Therefore, the preferred content editor of this application is the native content editor.

[0045] Optionally, when a user needs to edit their investment insights or other content while using an investment and financial management app, they can click and select the content editing control on the investment and financial management app. The electronic device then detects the content editing control selection instruction and determines that the user needs to edit the content. At this point, based on the content editing instruction, the content editor is awakened from its hidden state, i.e., the content editor is activated and the user enters the content editor.

[0046] For example, as shown in Figure 2a, it is assumed that the investment and financial management APP interface displays the financial management content edited by user A, the financial management content edited by user B, the financial management content edited by user C, and the content editing controls. Then, when user W wants to edit his own financial management experience, he can click on the content editing control displayed on the investment and financial management APP interface to send a content editing instruction to call up the hidden content editor and enter the content editor, see Figure 2b. Among them, in addition to the text input area and material controls, the content editor can also include a system navigation bar, permission controls, topic controls, and other types of controls, such as emoticon controls and font editing controls. In this way, users can trigger different controls according to content editing needs and process the edited content, such as adjusting the font size or font color of the edited text content, thereby meeting the user's needs for personalized processing of the edited content.

[0047] It should be understood that the types of content that can be edited by the user may include, but are not limited to: dynamic content, column content, and note content.

[0048] Therefore, when a content editing instruction sent by a user is detected, the application can first display the content types that can be selected by the user. Then, based on the target content type selected by the user, the content editing style corresponding to the target content type selected by the user is displayed in the invoked content editor. In this way, based on different content editing styles, the user's needs for editing different types of content can be met, allowing the user to have a better editing experience.

[0049] Exemplarily, when user W clicks on the content editing control, the electronic device first displays the content type panel in the display interface, as shown in FIG3a. Among them, the optional content types displayed in the content type panel are: dynamic content, column content, note content and other content types. Then, when user W clicks to select dynamic content, the content editor is called up, and the content editing style corresponding to the dynamic content is displayed in the content editor. The content editing style may include at least the following: navigation area, title input area, text input area, permission control, topic control, material control and other controls, as shown in FIG3b. When user W clicks to select note content, the content editor is called up, and the content editing style corresponding to the note content is displayed in the content editor. The content editing style may include at least the following areas: text input area, permission control, material control and other controls, as shown in FIG3c.

[0050] It should be understood that the text input area of ​​the content editor in this application can be an integral text input area, or it can be an area composed of a title input area and a text input area. It can be flexibly adjusted according to the type of content being edited, and no specific restrictions are made here.

[0051] S102: Input target text in the text input area.

[0052] It should be understood that the target text may include but is not limited to: Chinese, English, and Chinese and English punctuation.

[0053] Alternatively, the user can trigger the text input area of ​​the content editor to wake up the hidden text input control, and then enter target text in the text input area through the text input control.

[0054] The text input control may be a keyboard or the like, and there is no specific restriction on the type of the text input control.

[0055] Optionally, when entering target text in the text input area, this application will detect the input status of the text input control in real time to identify the target text being entered by the user. At the same time, the identified target text will be updated and displayed in the text input area in real time for the user to view and edit. The editing process can include style changes such as bolding and italics.

[0056] S103: Add target material in the text input area according to the material control.

[0057] Considering that when users are writing investment and financial management content, they may need to insert some materials such as charts (such as market charts), stock codes, market snapshots, portfolio snapshots, or video links in the text input area. Therefore, the user can click to select the material control in the content editor, so that the electronic device responds according to the selection instruction of the material control.

[0058] Optionally, the electronic device displays a material panel including two or more candidate materials according to the selection instruction of the material control. Then, the user can select a target material from the material panel to insert the target material into the text input area.

[0059] The two or more candidate materials displayed in the material panel may be different types of candidate materials obtained from the investment and financial management database. For example, if the candidate material is a market snapshot, the latest market data may be obtained from the market database.

[0060] It should be understood that the two or more candidate material types displayed in the material panel may be but are not limited to: stock codes, market snapshots, market icons, portfolio snapshots, votes, links, and video links, etc., which can be flexibly adjusted according to the investment and financial management functions that the investment and financial management APP can support. There are no restrictions on them here.

[0061] In some implementations, the user can select at least one target material in the material panel and insert the at least one target material into the text input area, wherein at least one can be understood as one or more than one.

[0062] Considering that materials come in different types, this application can display various material types in the material panel. Furthermore, the user can select a target material type from the displayed material types. Then, based on the user's selected target material type, the electronic device retrieves the latest candidate materials of that type, or all candidate materials of that type, from the corresponding database. This allows the user to more purposefully insert the desired target material into the text input area.

[0063] In addition, after inserting at least one target material into the text input area, the user can also adjust the display position of the at least one target material to adjust the display position of the target material to meet the user's personalized content editing needs. In other words, the present application can also adjust the display position of the target material in response to the target material position adjustment instruction.

[0064] For example, suppose there is only one target material inserted into the text input area, and the target material is inserted after the target text. If the user needs to adjust the display position of the target material to be before the target text, they can click to select the target material and drag it before the target text to complete the target material display position adjustment operation.

[0065] Considering that after adding at least one target material to the text input area, there may be some unnecessary target materials. At this time, the user can delete these unnecessary target materials to simplify the content of the edit.

[0066] Optionally, to delete unnecessary target assets, click to select them. A trash can icon will appear, and you can drag the unnecessary assets to the trash can icon to complete the deletion. Alternatively, you can click the trash can icon to delete the unnecessary assets. There are no restrictions on how to delete the target assets.

[0067] It should be noted that the execution order of the above steps S102 and S103 in this application can be to execute S102 first and then execute S103; or, to execute S103 first and then execute S102, and there is no specific limitation on this.

[0068] S104: Edit the content according to the target text and target material.

[0069] Since the purpose of editing content is to publish the edited content, the content editor of this application also includes a publish control. Then, when the user needs to publish the edited content, they can click and select the publish control to publish the edited content so that other users can browse and view the user's published content. Of course, in addition to viewing, you can also comment or forward it.

[0070] The edited content specifically refers to the content composed of the target text and target material in the text input area. In other words, this application publishes the target text and target material as the content to be published.

[0071] This application provides a content editing method, which involves calling up a content editor according to a content editing instruction, then entering target text in a text input area, adding target material in the text input area according to a material control in the content editor, and then performing content editing based on the target text and target material in the text input area. This application adds a material control to the content editor on the platform, allowing users to add various materials to the edited text content, thereby meeting the user's need to add materials to the text content, making the edited content richer and more diverse, and thus improving the user's content editing experience.

[0072] In an optional implementation scenario of the present application, it is taken into account that the target text and / or target material in the text input area of ​​the content editor may contain errors, inconsistent formats or other abnormalities. Therefore, in order to avoid the need to delete the content for re-editing due to errors, inconsistent formats or other abnormalities in the edited content. The present application can also set a preview control in the content editor, so that before the user publishes the edited content, the user can first enter the preview mode through the preview control, and view in detail the effect diagram of the edited content after it is actually published in the preview mode. When it is determined based on the preview effect diagram that the edited content needs to be modified or adjusted, the content can be modified or adjusted so that the content finally published meets the user's expectations for publication. In conjunction with Figure 4, the preview control in the content editor in the embodiment of the present application is used to preview the content to be published.

[0073] As shown in FIG4 , the method may include the following steps:

[0074] S201: Invoke a content editor according to a content editing instruction. The content editor includes a text input area, a material control, a preview control, and a publish control.

[0075] S202: Input target text in the text input area.

[0076] S203: Add target material in the text input area according to the material control.

[0077] S204: Entering a content preview mode in response to a selection instruction of the preview control.

[0078] S205 : Displaying the target text and target material in the content preview mode.

[0079] S206 , in response to the selection instruction of the publish control, publishing the target text and target material as content to be published.

[0080] Optionally, after editing the content to be published in the text input area, the user can click and select the preview control in the content editor to enter the content preview mode. Then, the content to be published is displayed in the content preview mode, allowing the user to intuitively see the effect of the content after it is published.

[0081] If you determine that some of the content to be published contains errors or inconsistent formatting, you can modify the incorrect or inconsistent text. Afterwards, you can click the Publish control to publish the modified content to be published.

[0082] In this application, before publishing the modified content to be published, the user can optionally click and select the preview control again to view the actual effect of the modified content to be published after it is actually published in the content preview mode to ensure that the modified content to be published does not have errors, inconsistent formats or other abnormalities.

[0083] Among them, the modification operation for the erroneous part or the text with inconsistent format can be optionally performed directly in the preview mode, or can be performed by returning to the content editing mode to modify it. There is no specific restriction on this.

[0084] When it is determined that there are no errors or other abnormalities in the content to be published, the user can click to select the publish control to publish the content to be published, as shown in Figure 5.

[0085] In some optional implementations, it is taken into account that when a user is using a content editor to edit content, an abnormality may suddenly occur. For example, insufficient power of an electronic device may cause the device to automatically shut down, insufficient memory may cause the device to freeze, etc., thereby causing the content edited by the user in the text input area to be lost. Therefore, after calling up the content editor according to the content editing instruction, this application optionally also includes: saving the input content in the text input area, where the input content is the target text and / or target material.

[0086] It should be understood that the target text and / or target material can be the target text; or can be the target material; or can be the target text and the target material, and no limitation is imposed on them herein.

[0087] Optionally, saving the input content in the text input area may include the following methods:

[0088] Method 1

[0089] The input content in the text input area is saved according to the preset time interval.

[0090] The preset time interval can be flexibly set according to the content storage requirements. Optionally, when the input content storage performance requirements are high, the preset time interval can be set to a smaller value, such as 1 second or 2 seconds; when the input content storage performance requirements are low, the preset time interval can be set to a larger value, such as 3 minutes or 5 minutes.

[0091] Optionally, when a user is editing content using a content editor, the electronic device may automatically save the content entered in the text input area at preset time intervals to prevent sudden abnormal situations from causing the loss of content data entered by the user, thereby reducing the probability of loss of content entered by the user.

[0092] Method 2

[0093] When an exit instruction of the content editor is detected, the input content in the text input area is saved.

[0094] Considering that after the user enters content in the text input area, they may not execute the content publishing operation but exit the content editor. In this case, when the application detects the user-triggered exit instruction of the content editor, it can automatically save the input content in the text input area to avoid the loss of the content entered by the user in the text input area.

[0095] It should be noted that the above two methods can be implemented independently in real time or in combination, and this application does not impose any specific restrictions on this.

[0096] That is to say, after calling up the content editor, this application will automatically save the content entered in the text input area to avoid the loss of content data entered by the user due to sudden abnormal situations or the user exiting the content editor, thereby reducing the probability of loss of content entered by the user and providing favorable conditions for users to publish content efficiently.

[0097] The present application provides a content editing method, which calls up the content editor according to the content editing instruction, and then enters the target text in the text input area, and adds the target material in the text input area according to the material control in the content editor, and then performs content editing according to the target text and target material in the text input area. The present application adds a material control to the content editor on the platform, so that the user can add various materials to the edited text content, thereby meeting the user's needs to add materials to the text content, making the edited content more rich and diverse, and thus improving the user's content editing experience. In addition, by setting a preview control on the content editor, the user can view the actual visual effect of the content to be published in the content preview mode associated with the preview control, so as to make timely modifications or adjustments to the errors or other abnormalities in the content to be published, so that the final published content meets the user's publishing expectations.

[0098] In an optional implementation scenario of the present application, it is considered that when a user edits content, the edited content may fail to be published due to a poor network environment. Therefore, after the edited content is published, the present application also detects whether the edited content is successfully published. When the edited content fails to be published, a prompt message indicating that the content has failed to be published is output to the user, allowing the user to re-publish the saved edited content so that the user's edited content can be successfully published. The content editing method provided in the embodiment of the present application is further explained below in conjunction with Figure 6.

[0099] As shown in FIG6 , the method may include the following steps:

[0100] S301: Invoke a content editor according to a content editing instruction. The content editor includes a text input area and a material control.

[0101] S302: Input target text in the text input area.

[0102] S303: Add target material in the text input area according to the material control.

[0103] S304: Edit the content according to the target text and target material.

[0104] S305 , determining whether the content to be published consisting of the target text and the target material is published successfully, if yes, executing S306 , otherwise, executing S307 .

[0105] Optionally, the present application may search in the published content database to see whether there is content published by the user. If so, it is determined that the content has been published successfully. If not, it is determined that the content has failed to be published. Alternatively, a response message of the editing content application programming interface (Application Programming Interface, referred to as API interface) may be obtained to determine whether the key parameter value in the response message is a preset value. If it is a preset value, it is determined that the content has been published successfully. If it is not a preset value, it is determined that the content has failed to be published. The preset value may be 1 or true, and there is no restriction on it here. Of course, in addition to the above determination method, other methods may also be used, and the present application does not impose any specific restrictions on this.

[0106] S306: If it is determined that the content is published successfully, output a prompt message indicating that the content is published successfully.

[0107] For example, a prompt message "Published successfully" is displayed in the user's current browsing interface.

[0108] S307: If it is determined that the content has failed to be published, output a publication failure prompt message.

[0109] S308 : Republish the content to be published in response to the selection instruction of the resend control in the publication failure prompt message.

[0110] The content to be published is composed of the target text and target material in the text input area.

[0111] Optionally, when it is determined that the content has failed to be published, a prompt message such as "Publishing failed, please republish" may be displayed on the user's current browsing interface. The failed publishing prompt message may also include a resend control, so that the user can click and select the resend control at any time to republish the pending content.

[0112] Since the content to be published edited by the user will be automatically saved by the electronic device in the text input area of ​​the content editor, in particular, in response to the user clicking and selecting the publish control, the electronic device preferably automatically saves the content to be published before publishing the content edited by the user as the content to be published, so that if the content to be published fails, the user can quickly retrieve or restore the failed content anytime and anywhere, thereby avoiding the problem of data loss due to the failure of publishing the content to be published, which requires the user to perform content editing operations again.

[0113] Therefore, after receiving the failed publication prompt, the user can click and select the content editing control again to call up the content editor and enter the content editor. After entering the content editor, the most recently saved content information will be displayed in the text input area of ​​the content editor. In this application, the most recently saved content information should be understood as the content that failed to be published, that is, the content to be published. In addition, the content that failed to be published includes the target material and target text in the text input area.

[0114] Specifically, in this embodiment, the most recently saved content information is retrieved. In order to display the most accurate most recent content information to the user, the historical content to be published saved in the background can be optionally detected through text detection, storage time or other dimensions to improve accuracy, and recommendations for the content to be published can be displayed based on the detection results.

[0115] In some optional implementations, this application recommends and displays the most accurate content to be published in the text input area of ​​the content editor by using text detection, storage time, or other dimensions to improve accuracy, including but not limited to the following:

[0116] Case 1

[0117] Since the electronic device can determine whether the content to be published is published successfully, and can also extract at least one first content keyword from the content to be published that failed to be published. Therefore, when displaying the most recently saved content information in the text input area of ​​the content editor, the electronic device can obtain at least one first content word vector by vectorizing at least one first content keyword extracted from the content to be published that failed to be published. In addition, at least one second content keyword can also be extracted from all historical content to be published saved in the background, and the second content word vector corresponding to each second content keyword can be determined. Afterwards, the target second content word vector that is most similar to each first content word vector is screened from the at least one second content word vector. Then, based on the target second content word vector, the most accurate content to be published is determined from all historical content to be published saved in the background, and the most accurate content to be published is displayed in the text input area as the most recently saved content.

[0118] The method of selecting the target second content word vector that is most similar to each first content word vector from the at least one second content word vector may include but is not limited to the following methods:

[0119] The first method uses the following formula (1) to calculate the cosine similarity between each first content word vector and each second content word vector, and determines the second content word vector corresponding to the minimum similarity value as the target second content word vector.

[0120] Specifically, the cosine similarity calculation formula is as follows (1):

[0121] Among them, similarity and cosθ represent the cosine similarity between each first content word vector and each second content word vector, D1 j represents the jth first content word vector, D2 i represents the i-th second content word vector, |D1 j | represents the jth first content word vector D1 j The modulus length, |D2 i | represents the i-th second content word vector D2 i The modulus of , where i and j are both integers greater than or equal to 1.

[0122] The second method is to calculate the similarity between each first content word vector and each second content word vector using the following formula (2), and determine the second content word vector corresponding to the minimum similarity value as the target second content word vector.

[0123] Among them, similarity represents the similarity between each first content word vector and each second content word vector, D1 j represents the jth first content word vector, D2 i represents the i-th second content word vector, where i and j are both integers greater than or equal to 1.

[0124] It can be understood that the smaller the similarity between two content word vectors, the more similar the two content word vectors are.

[0125] Furthermore, after determining the target second content word vector that is most similar to each first content word vector, the present application can determine the historical to-be-published content with the most target second content word vectors as the most accurate to-be-published content.

[0126] Case 2

[0127] Since the closer the save time is to the current time (i.e., the newer it is), the closer the historical content to be published corresponding to the save time is to the content to be published when the user performs the content publishing operation. Therefore, the application can optionally obtain the save time of each historical content to be published in the background. Then, the latest save time is selected from all save times. After that, the historical content to be published corresponding to the latest save time is determined as the most accurate content to be published.

[0128] It should be noted that the above two situations can be implemented separately or in combination, and there is no specific limitation on them here.

[0129] In some possible implementations, the present application preferably combines the above two situations to obtain the most accurate and closest historical content to be published when the user published the content, and displays the historical content to be published through the text input area so that the user can quickly obtain the accurate content when the publication fails.

[0130] Furthermore, the user can view the pending content displayed in the text input area that failed to be published and determine whether the pending content needs to be modified. If no modification is required, the user can click and select the publish control in the content editor to send a publish instruction for the pending content to the electronic device, so that the electronic device responds to the publish instruction and republishes the pending content stored in the text input area.

[0131] In some possible implementations, after receiving a prompt message indicating that the publication has failed, the user may want to make appropriate adjustments to the content that has not been successfully published. At this time, the user can click to select the content editing control again to call up the content editor and enter the content editor. Adjust the target text and / or target material saved in the text input area of ​​the content editor to obtain the adjusted content to be published. Then, click to select the publish control in the content editor to send a publish instruction for the content to be published to the electronic device, so that the electronic device publishes the adjusted content to be published in response to the publish instruction. Among them, adjusting the target text and / or target material in the text input area of ​​the content editor may include but is not limited to: modifying, deleting, adding and adjusting the display position.

[0132] In some possible implementations, after the user publishes the edited content (i.e., the content to be published), the user may exit the investment and financial management APP corresponding to the content editor. Then, when the user uses the investment and financial management APP again, if the content fails to be published, a publication failure prompt message will be displayed on the current interface of the investment and financial management APP, so that the user can click and select the resend control in the publication failure prompt message based on the publication failure prompt message, and republish the failed content to be published to successfully publish the content to be published; or, based on the publication failure prompt message, enter the content editor, and based on the failed content to be published displayed in the text input area of ​​the content editor, click and select the publish control in the content editor, and publish the failed content to be published again to publish the content to be published. Among them, the above two republishing operations for the content to be published can refer to the aforementioned implementation process of clicking the resend control and clicking the publish control in the content editor, which will not be described in detail here.

[0133] Furthermore, after republishing the content to be published, or publishing the adjusted content to be published, the present application continues to determine whether the republished content to be published is published successfully, and selectively executes step S306 or steps S307 and S308 according to the determination result.

[0134] The present application provides a content editing method, which calls up a content editor according to a content editing instruction, then enters a target text in a text input area, and adds a target material in the text input area according to a material control in the content editor, and then performs content editing based on the target text and target material in the text input area. The present application adds a material control to the content editor on the platform, so that the user can add various materials to the edited text content, thereby meeting the user's need to add materials to the text content, making the edited content more rich and diverse, and thus improving the user's content editing experience. In addition, when the content editing fails to be published, by outputting a prompt message indicating that the content has failed to be published to the user, the user can obtain the saved content to be published and re-publish the content to be published, so that the content edited by the content editor can be published successfully, and there will be no problem of the user needing to re-edit the content to be published due to the loss of the content to be published, thereby improving the user's content editing experience.

[0135] The following describes the content editor in an embodiment of the present application with reference to Figure 7. Figure 7 is a schematic diagram of a Unified Modeling Language (UML) class diagram of a content editor provided in an embodiment of the present application. As shown in Figure 7, the content editor UML class diagram includes nine classes (interfaces): Content Editor View Controller, Material View Controller, Material Module Generator, Material Module Data, Material Module Card View, Preview View Controller, Publish Manager, Backstage, and Draft Manager.

[0136] The content editor view controller is associated with the draft manager and preview view controller. The content editor view controller holds the asset view controller and the asset module card view. The asset view controller holds the asset module generator, which is associated with asset module data. The asset module card view holds asset module data, and the draft manager also holds asset module data. The preview view controller is associated with the publication manager, which is associated with the backend.

[0137] In this application, the draft manager will periodically save the content entered by the user to prevent content loss. In other words, when the user enters content in the text input area but does not publish it, the content editor view controller will use the draft manager to periodically save the content entered by the user.

[0138] Based on FIG7 , the content editing process is described in detail below using an example, including the following steps:

[0139] S401: The user clicks a content editing control to launch a content editor.

[0140] S402 : The user clicks on the text input area (text view) to call out the text input control, so that the user inputs target text in the text view based on the text input control.

[0141] S403: The text view recognizes the target text being input by the user, and updates the text content displayed in the text view in real time according to the input target text.

[0142] S404: When a new target text input operation or a target text modification operation is detected, the text view notifies the content editor view controller, and the content editor view controller saves the latest text data to the content, where the content refers to the content currently being edited.

[0143] S405 , the user clicks on the material view controller. The material view controller recognizes the user's click operation and can call the material module generator to generate a material module and material module data.

[0144] S406: The material module generates a material module card view according to the material module data. When the user selects any material module card view, the content editor view controller saves the material module card view selected by the user in the content.

[0145] S407, when the user clicks the preview control in the content editor, the preview view controller is entered.

[0146] S408 : The content editor view controller passes the content data edited by the user to the preview view controller.

[0147] S409: After receiving the content data, the preview view controller updates its own view.

[0148] S410: When the user clicks the publish control in the content editor, the preview view controller encapsulates the content data and sends it to the backend via the network.

[0149] S411: After receiving the content editing request, the background performs the content editing operation and returns the editing result to the user.

[0150] Considering that the content editor in this application can be a list composed of various card views, such as text card view, market snapshot card view, other material card view, etc. Moreover, each of the above card views has its own display and interaction logic. The complex page layout IGListkit framework structure, that is, the third-party open source library IGList is a list library, which can separate the logic of multiple views to avoid the logical interaction between views. In addition, the third-party open source library IGList will also cache the view when the view disappears. When the user scrolls to this type of view again, the previously cached view can be reused directly, thereby avoiding multiple calls to the view generation logic to achieve high performance of the content editor.

[0151] Based on the above reasons, this application can integrate the content editor with the third-party open source library IGList to achieve logical separation of card views on the content editor, achieving the development concept of "high cohesion, low coupling". At the same time, high performance can also be achieved by caching views. The following is combined with Figure 8 to illustrate the integration process of the content editor and the third-party open source library IGList.

[0152] Optionally, the integration process between the content editor and the third-party open source library IGList may include the following steps:

[0153] In the first step, the content editor calls the module generator to generate the content module and content module data based on the content entered in the text input area of ​​the content editor. In addition, the content module data is saved to lay the foundation for the subsequent generation of the content module management class.

[0154] Considering that the content input in the text input area may include text and material, the content module may include a text module and a material module, and the corresponding content module data may include text module data and material module data.

[0155] The second step is to generate the content module management class based on the complex page layout IGList framework structure and content module data.

[0156] Consider that different content modules may have different processing logic. For example, for a text module, it is necessary to constantly monitor keyboard input and change the text style such as bolding, italics, etc. according to the user's editing operations.

[0157] Therefore, the content editor of this application can generate a content module management class based on the content module data by calling the customized complex page layout IGList framework structure. Among them, the complex page layout IGList framework structure can be used to generate a content module management class based on the content module data. The content module management class code contained in the code of the complex page layout IGList framework structure customized by the content editor can be used to generate a content module management class based on the content module data.

[0158] Since the number of content modules is one or more, when the number of content modules is more than one, in order to achieve low coupling, this application optionally stores the management class of each content module in the management class of the corresponding content module after generating the management class of the content module, instead of storing the management classes of all content modules in the same management class.

[0159] The third step is to use the management class of the content module to generate the card view corresponding to the content module based on the content module.

[0160] Among them, when the number of content modules is more than one, this application uses the management class of each content module to generate a card view corresponding to each content module according to the corresponding content module.

[0161] In addition, the management class of the content module is also responsible for caching the card views corresponding to the content module. In other words, after generating the card view corresponding to the content module, this application also caches the card view corresponding to the content module in the management class of the content module. Thus, when the user slides the screen, some content module card views will disappear outside the screen. In this case, the management class of the content module will automatically cache the content module card view. If the same type of content module card view appears on the screen later, this application can quickly reuse the view style previously cached in the content module management class to ensure the good performance of the content editor.

[0162] A content editing device according to an embodiment of the present application will be described below with reference to Figure 9. Figure 9 is a schematic block diagram of a content editing device according to an embodiment of the present application.

[0163] As shown in FIG. 9 , the content editing apparatus 500 includes a calling module 510 , an input module 520 , an adding module 530 and an editing module 540 .

[0164] The calling module 510 is used to call the content editor according to the content editing instruction, and the content editor includes: a text input area and a material control;

[0165] An input module 520, configured to input a target text into the text input area;

[0166] An adding module 530 is configured to add a target material in the text input area according to the material control;

[0167] The editing module 540 is configured to edit content according to the target text and the target material.

[0168] In an optional implementation of the embodiment of the present application, a module 530 is added, specifically configured to:

[0169] In response to a selection instruction of the material control, displaying a material panel, wherein the material panel includes two or more candidate materials;

[0170] In response to an instruction to select any target material, the target material is added to the text input area, where the target material is one or more of the candidate materials.

[0171] In an optional implementation of the embodiment of the present application, the content editor includes: a preview control;

[0172] Accordingly, the apparatus 500 further includes:

[0173] A first response module, configured to enter a content preview mode in response to a selection instruction of the preview control;

[0174] The first display module is configured to display the target text and the target material in the content preview mode.

[0175] In an optional implementation of the embodiment of the present application, the apparatus 500 further includes:

[0176] A saving module is used to save the input content in the text input area according to a preset time interval; and / or, when an exit instruction of the content editor is detected, save the input content in the text input area; wherein the input content is the target text and / or the target material.

[0177] In an optional implementation of the embodiment of the present application, the apparatus 500 further includes:

[0178] The information output module is used to output a prompt message indicating that the content editing and publishing has failed if it is determined that the content editing and publishing has failed.

[0179] In an optional implementation of the embodiment of the present application, the apparatus 500 further includes:

[0180] a second response module, configured to republish the pending content in response to a selection instruction of a resend control in the publication failure prompt message; or to enter a content editor and republish the pending content in response to a selection instruction of a publish control in the content editor;

[0181] The content to be published is composed of the target text and target material in the text input area.

[0182] In an optional implementation of the embodiment of the present application, the apparatus 500 further includes:

[0183] The second display module is configured to display content that failed to be published in the text input area of ​​the content editor, where the content that failed to be published is the target material and target text in the text input area.

[0184] In an optional implementation of the embodiment of the present application, the page framework structure corresponding to the content editor is a complex page layout framework structure.

[0185] In an optional implementation of the embodiment of the present application, the input module 520 and the adding module 530 include:

[0186] a first generating unit, configured to generate a content module and content module data according to the content input in the text input area;

[0187] A second generating unit is configured to generate a management class of the content module according to the complex page layout framework structure and the content module data;

[0188] A third generating unit is configured to generate a card view corresponding to the content module according to the content module by using the management class of the content module;

[0189] The content input in the text input area includes text and material, the content module includes a text module and a material module, and the content module data includes text module data and material module data.

[0190] In an optional implementation of the embodiment of the present application, the input module 520 and the adding module 530 further include:

[0191] The storage unit is configured to store the management class of each content module into the management class in the corresponding content module when there is more than one content module.

[0192] In an optional implementation of the embodiment of the present application, the input module 520 and the adding module 530 further include:

[0193] The cache unit is used to cache the card view corresponding to the content module into the management class of the content module.

[0194] The present application provides a content editing device that, by calling up a content editor according to a content editing instruction, inputs a target text into a text input area, and adds a target material into the text input area according to a material control in the content editor, and then performs content editing based on the target text and target material in the text input area. The present application adds a material control to the content editor on the platform, allowing users to add various materials to the edited text content, thereby meeting the user's need to add materials to the text content, making the edited content richer and more diverse, and thus improving the user's content editing experience.

[0195] It should be understood that the device embodiments and method embodiments may correspond to each other, and similar descriptions may refer to the method embodiments. To avoid repetition, they will not be described in detail here. Specifically, the device 500 shown in FIG9 can execute the method embodiment corresponding to FIG1, and the aforementioned and other operations and / or functions of each module in the device 500 are respectively for implementing the corresponding processes in each method in FIG1. ​​For the sake of brevity, they will not be described in detail here.

[0196] The above description of the device 500 of the embodiment of the present application is based on the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware, can be implemented by instructions in software, or can be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. Optionally, the software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above method embodiment in conjunction with its hardware.

[0197] FIG10 is a schematic block diagram of an electronic device provided in an embodiment of the present application.

[0198] As shown in FIG10 , the electronic device 600 may include:

[0199] The memory 610 and the processor 620 are configured to store computer programs and transmit the program code to the processor 620. In other words, the processor 620 can call and run the computer program from the memory 610 to implement the method in the embodiment of the present application.

[0200] For example, the processor 620 may be configured to execute the above method embodiments according to instructions in the computer program.

[0201] In some embodiments of the present application, the processor 620 may include but is not limited to:

[0202] General-purpose processor, Digital Signal Processor (DSP), Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.

[0203] In some embodiments of the present application, the memory 610 includes but is not limited to:

[0204] Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).

[0205] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 610 and executed by the processor 620 to implement the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of implementing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.

[0206] As shown in FIG10 , the electronic device may further include:

[0207] The transceiver 630 may be connected to the processor 620 or the memory 610 .

[0208] The processor 620 may control the transceiver 630 to communicate with other devices. Specifically, the processor 620 may send information or data to other devices or receive information or data sent by other devices. The transceiver 630 may include a transmitter and a receiver. The transceiver 630 may further include one or more antennas.

[0209] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.

[0210] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computer, the computer is enabled to perform the method of the above method embodiment.

[0211] An embodiment of the present application further provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the method of the above method embodiment.

[0212] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (DVD)), or a semiconductor medium (e.g., a solid state drive (SSD)).

[0213] Those skilled in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0214] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0215] Modules described as separate components may or may not be physically separate, and components displayed as modules may or may not be physical modules, i.e., they may be located in one place or distributed across multiple network elements. Some or all of the modules may be selected based on actual needs to achieve the purpose of the present embodiment. For example, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module.

[0216] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

[0217] It is understandable that in the specific implementation of this application, when it comes to relevant data used for content editing, when the above embodiments of this application are applied to specific products or technologies, user permission, consent or authorization must be obtained, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

Claims

1. A content editing method, characterized in that: include: According to the content editing instruction, calling up the content editor, the content editor comprising: a text input area and a material control; Enter the target text in the text input area; According to the material control, add the target material in the text input area; Content editing is performed according to the target text and the target material.

2. The method according to claim 1, characterized in that Adding a target material in the text input area according to the material control includes: In response to a selection instruction of the material control, displaying a material panel, the material panel including two or more candidate materials; In response to a selection instruction for any target material, the target material is added to the text input area, and the target material is one or more of the candidate materials.

3. The method according to claim 1, characterized in that After calling up the content editor, it also includes: Saving the input content in the text input area according to a preset time interval; and / or, When an exit instruction of the content editor is detected, saving the input content in the text input area; The input content is target text and / or target material.

4. The method according to any one of claims 1 to 3, characterized in that: After the target text and the target material are edited and published, the method further includes: If it is determined that the content editing and publishing has failed, a prompt message indicating that the publishing has failed is output.

5. The method according to claim 4, characterized in that The method further comprises: Republishing the content to be published in response to a selection instruction of a resend control in the publication failure prompt information; or, Entering the content editor, and in response to a selection instruction of a publish control in the content editor, republishing the content to be published; The content to be published is composed of the target text and target material in the text input area.

6. The method according to claim 5, characterized in that After entering the content editor, it also includes: In the text input area of ​​the content editor, content that failed to be published is displayed, and the content that failed to be published is the target material and the target text in the text input area.

7. The method according to any one of claims 1 to 3, characterized in that: The page frame structure corresponding to the content editor is a complex page layout frame structure.

8. The method according to claim 7, characterized in that Enter the target text in the text input area and add target materials, including: Generate a content module and content module data according to the content input in the text input area; Generate a management class of the content module according to the complex page layout framework structure and the content module data; Using the management class of the content module, generating a card view corresponding to the content module according to the content module; The content input in the text input area includes text and material, the content module includes a text module and a material module, and the content module data includes text module data and material module data.

9. The method according to claim 8, characterized in that After generating the management class of the content module according to the complex page layout framework structure and the content module data, the method further includes: When the number of the content modules is more than one, the management class of each content module is stored in the management class in the corresponding content module.

10. The method according to claim 8, characterized in that After generating a card view corresponding to the content module according to the content module by using the management class of the content module, the method further includes: The card view corresponding to the content module is cached in the management class of the content module.

11. A content editing device, characterized in that: include: A calling module, used to call a content editor according to a content editing instruction, wherein the content editor includes: a text input area and a material control; An input module, used for inputting target text in the text input area; An adding module, used for adding a target material in the text input area according to the material control; An editing module is used to edit content according to the target text and the target material.

12. An electronic device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to execute the content editing method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program enables a computer to execute the content editing method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Method and device for mixed graphic and text layout in instant communication, instant communication device

    CN106294874A

  • A method and system for edit articles

    CN109299441A

  • Material editing method, device and storage medium

    CN111966272A

  • Interactive content generation method and device, storage medium and electronic equipment

    CN113190314A

  • Content editing method and device, equipment and storage medium

    CN116485947A

Cited By

  • Editing method and device for common knowledge based on free text and electronic equipment

    CN119150816A