Instant messaging software content input method, device, equipment and medium

The switching control between small and large input boxes in instant messaging software addresses the challenge of editing large content, providing enhanced user convenience and editing capabilities.

JP7732096B2Active Publication Date: 2025-09-01BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2024525027
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-11-12
Filing Date
2022-11-08
Publication Date
2025-09-01
Estimated Expiration
2042-11-08

Smart Images

  • Figure 0007732096000001
    Figure 0007732096000001
  • Figure 0007732096000002
    Figure 0007732096000002
  • Figure 0007732096000003
    Figure 0007732096000003
Patent Text Reader

Abstract

The present disclosure relates to a content input method, device, equipment, and medium for instant messaging software, the instant messaging software including a first input box and a second input box, the first input box and the second input box being switched by a switching control, the first input box and the second input box being different in size, receiving a target input content to be input in the first input box, displaying the target input content in the first input box, and displaying the target input content in the second input box in response to a trigger on the switching control.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application is based on and claims priority from Chinese Patent Application No. 202111341329.0, filed on November 12, 2021. The disclosure of the aforementioned Chinese patent application is incorporated herein by reference in its entirety.

[0002] [Technical field] The present disclosure relates to the technical field of the Internet, and in particular to a content input method, device, equipment and medium for instant messaging software. [Background technology]

[0003] With the rapid development of computer communication technology, the application of instant messaging (IM) software is becoming increasingly widespread. Instant messaging software allows users to transmit text, pictures, files, and facial expressions, bringing great convenience to their lives and work.

[0004] In the related art, a user can input content through an input box, and after completing the input, the input content in the input box can be sent to a designated recipient, thereby completing the sending of a message. Summary of the Invention [Means for solving the problem]

[0005] According to a first aspect, the present disclosure provides a content input method for instant messaging software, the instant messaging software including a first input box and a second input box, the first input box and the second input box being switched by a switching control, and the size of the first input box and the size of the second input box being different; receiving a target input content to be input into the first input box and displaying the target input content in the first input box; In response to a trigger on the switching control, the target input content is displayed in the second input box.

[0006] According to a second aspect, the present disclosure provides a content input device for instant messaging software, the instant messaging software including a first input box and a second input box, the first input box and the second input box being switched by a switching control, and the first input box and the second input box being different in size; The device comprises: a first display module for receiving a target input content to be input into the first input box and displaying the target input content in the first input box; and a second display module for displaying the target input content in the second input box in response to a trigger on the switching control.

[0007] According to a third aspect, the present disclosure provides an electronic device, the electronic device including a processor, the processor being adapted to execute a computer program stored in a memory, the processor implementing any one of the methods according to the first aspect when executing the computer program.

[0008] According to a fourth aspect, the present disclosure provides a computer-readable storage medium having stored thereon a computer program, the computer-readable storage medium being characterized in that the computer program, when executed by a processor, implements any one of the methods according to the first aspect.

[0009] According to a fifth aspect, the present disclosure provides a computer program product, which, when run on a computer, causes the computer to perform any one of the methods according to the first aspect.

[0010] According to a sixth aspect, the present disclosure provides a computer program, the computer program including instructions, which when executed by a processor, cause the processor to perform the content input method according to any one of the embodiments. [Brief explanation of the drawings]

[0011] The drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification serve to explain the principles of the present disclosure.

[0012] In order to more clearly describe the technical solutions in the embodiments or prior art of the present disclosure, the following briefly introduces drawings that need to be used in the description of the embodiments or prior art, and it is obvious that those skilled in the art can also derive other drawings based on these drawings without exerting any creative effort. [Figure 1A] 1A-1C are schematic diagrams of some examples of input boxes according to the present disclosure. [Figure 1B] FIG. 10 is a schematic diagram of another input box according to the present disclosure. [Figure 2] 1 is a flowchart of some example content entry methods for instant messaging software according to the present disclosure. [Figure 3] 10 is a flowchart of some example content entry methods for another instant messaging software according to the present disclosure. [Figure 4A] 1A-1C are schematic diagrams of several example display screens of instant messaging software according to the present disclosure. [Figure 4B] 10A-10C are schematic diagrams of several example display screens of another instant messaging software according to the present disclosure. [Figure 5A]10A-10C are schematic diagrams of several example display screens of yet another instant messaging software according to the present disclosure. [Figure 5B] 10A-10C are schematic diagrams of several example display screens of yet another instant messaging software according to the present disclosure. [Figure 6] 10 is a flowchart of some example embodiments of another instant messaging software content entry method according to the present disclosure. [Figure 7A] 10A-10C are schematic diagrams of several example display screens of yet another instant messaging software according to the present disclosure. [Figure 7B] 10A-10C are schematic diagrams of several example display screens of yet another instant messaging software according to the present disclosure. [Figure 8] 10 is a flowchart of some example embodiments of another instant messaging software content entry method according to the present disclosure. [Figure 9A] 10A-10C are schematic diagrams of several example display screens of another instant messaging software according to the present disclosure. [Figure 9B] 10A-10C are schematic diagrams of several example display screens of yet another instant messaging software according to the present disclosure. [Figure 10] 10 is a flowchart of some example embodiments of another instant messaging software content entry method according to the present disclosure. [Figure 11] 10 is a flowchart of some example embodiments of another instant messaging software content entry method according to the present disclosure. [Figure 12A] 10A-10C are schematic diagrams of several example display screens of yet another instant messaging software according to the present disclosure. [Figure 12B] 10A-10C are schematic diagrams of several example display screens of yet another instant messaging software according to the present disclosure. [Figure 12C] 10A-10C are schematic diagrams of several example display screens of yet another instant messaging software according to the present disclosure. [Figure 12D] 10A-10C are schematic diagrams of several example display screens of yet another instant messaging software according to the present disclosure. [Figure 13] 10 is a flowchart of some example embodiments of another instant messaging software content entry method according to the present disclosure. [Figure 14] 1A and 1B are structural schematic diagrams of some embodiments of a content input device for instant messaging software according to the present disclosure; DETAILED DESCRIPTION OF THE INVENTION

[0013] In order to make the above-mentioned objects, features and advantages of the present disclosure more clearly understood, the present disclosure will be further described below. It should be noted that, unless contradictory, the embodiments and features in the embodiments of the present disclosure may be combined with each other.

[0014] In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure; however, the present disclosure may be practiced in ways not described herein. Obviously, the examples in the specification are only some examples of the present disclosure, but not all examples.

[0015] The technical solution of the present disclosure can be applied to a terminal device, where the terminal device may be a computer, a tablet, a mobile phone, or other smart electronic device. The terminal device has a display screen, where the display screen may be a touch screen or a non-touch screen. For a terminal device with a touch screen, a user can realize an interaction operation with the terminal device by gestures, fingers, or a touch tool (e.g., a touch pen). For a terminal device without a touch screen, a user can realize an interaction operation with the terminal device by an external device (e.g., a mouse or a keyboard).

[0016] As mentioned above, the content that can be presented in the input box of IM software is limited, making it inconvenient for users to edit the content they input.

[0017] In view of the above technical problems, the present disclosure provides a content input method, device, equipment and medium for instant messaging software, so that users can conveniently edit the content they input.

[0018] 1A is a schematic diagram of some embodiments of an input box according to the present disclosure, and FIG. 1B is a schematic diagram of some embodiments of another input box according to the present disclosure. A user can select a message recipient in an IM client and establish a session with the recipient. As shown in FIG. 1A, an input box is displayed in the session display interface of the IM software. The user can enter content into the input box of the session interface and, after completing the content entry, trigger a message sending operation to send the input content in the input box of the session interface to the recipient, thereby realizing message sending. As shown in FIG. 1A, the input box of the session display interface can be set small to avoid obscuring the content of the received message, but when a user enters a large amount of content, it is inconvenient to check and edit the input content in the input box of the session interface.

[0019] To solve this problem, a switch control can be set in the input box of the session interface, and by triggering the switch control, the rich text input box can be switched to a rich text input box. The rich text input box can be set large enough to cover the session display interface, as shown in Figure 1B. In this way, when a user inputs a large amount of content, the rich text input box is convenient for checking and editing the input content. As shown in Figure 1B, a switch control can also be set in the rich text input box, and by triggering the switch control, the rich text input box can be switched back to the input box of the session interface shown in Figure 1A.

[0020] To sum up, by triggering the switching control, the input box of the session interface can be switched to a rich text input box, and the rich text input box can also be switched to an input box of the session interface. The size of the rich text input box and the size of the input box of the session interface are different, for example, the size of the rich text input box is relatively large and the size of the input box of the session interface is relatively small, so that switching between a large input box and a small input box can be realized. In this way, user needs for input boxes of different sizes in different scenarios can be met.

[0021] In the technical solution of the present disclosure, the first input box is an input box of a session interface, and the corresponding second input box is a rich text input box, or the first input box is a rich text input box, and the corresponding second input box is an input box of a session interface.

[0022] 1, 4, 5, 7, 9, and 12 in this disclosure are merely schematic diagrams of some examples of input boxes in an interface, and are not intended to limit the location of the input boxes in the interface or their proportion to the overall interface.

[0023] In the technical solution disclosed herein, the instant messaging software includes a first input box and a second input box, and the first input box and the second input box are switched between by a switching control. The sizes of the first input box and the second input box are different, thereby realizing switching between a large input box and a small input box. By receiving a target input content to be input into the first input box, the target input content is displayed in the first input box. In response to a trigger on the switching control, the software switches to the second input box and displays the target input content in the second input box. By synchronizing the input content displayed in the large input box and the input content displayed in the small input box, the content to be input into the small input box can be displayed in the large input box, which is convenient for the user to edit the content to be input.

[0024] The technical solutions of the present disclosure will be described below in examples.

[0025] FIG. 2 is a flowchart of several embodiments of a content input method for instant messaging software according to the present disclosure, as shown in FIG. 2, specifically including:

[0026] S101: receiving a target input content to be input into the first input box, and displaying the target input content in the first input box;

[0027] The IM software includes a first input box and a second input box, which are switched by a switching control, and the first input box and the second input box have different sizes.

[0028] Illustratively, the first input box is an input box in the session interface shown in FIG. 1A, and the corresponding second input box is a rich text input box shown in FIG. 1B, or the first input box is a rich text input box shown in FIG. 1B, and the corresponding second input box is an input box in the session interface shown in FIG. 1A. When the first input box is an input box in the session interface shown in FIG. 1A, by triggering a switch control in the first input box, the first input box can be switched to the rich text input box, i.e., the second input box, shown in FIG. 1B, and the small input box can be switched to the large input box. When the first input box is a rich text input box shown in FIG. 1B, by triggering a switch control in the first input box, the first input box can be switched to the input box in the session interface shown in FIG. 1A, i.e., the second input box, and the large input box can be switched to the small input box.

[0029] For example, as shown in Fig. 1A, when the first input box is a session interface input box and the target input content input by the user into the first input box is "I am Chinese", "I am Chinese" is displayed in the first input box as shown in Fig. 1A. Also, for example, as shown in Fig. 1B, when the first input box is a rich text input box and the target input content input by the user into the first input box is "I am Chinese", "I am Chinese" is displayed in the first input box.

[0030] S103, in response to a trigger on the switching control, displaying the target input content in the second input box.

[0031] For example, the first input box is the input box of the session interface shown in FIG. 1A. As shown in FIG. 1A, the first input box displays "I am Chinese." When it is necessary to switch to the second input box, the user selects to trigger the switching control in the first input box. In response to the triggering of the switching control, the user switches to the second input box. As shown in FIG. 1B, the second input box also displays the target input content of "I am Chinese." The target input content in the small input box can be synchronously displayed in the large input box.

[0032] For example, the first input box is a rich text input box as shown in FIG. 1B, and as shown in FIG. 1B, the first input box displays "I am Chinese". When it is necessary to switch to the second input box, the user selects to trigger the switching control in the first input box, and in response to the triggering of the switching control, the user switches to the second input box, and as shown in FIG. 1A, the second input box also displays the target input content "I am Chinese". The target input content in the larger input box can be synchronously displayed in the smaller input box.

[0033] In this embodiment, the instant messaging software includes a first input box and a second input box, and the first input box and the second input box are switched by a switching control. The first input box and the second input box have different sizes, so that switching between a large input box and a small input box can be realized. When a target input content to be input into the first input box is received, the target input content is displayed in the first input box. In response to a trigger on the switching control, the software switches to the second input box and displays the target input content in the second input box. This synchronizes the input content displayed in the large input box and the input content displayed in the small input box, so that the content to be input into the small input box is displayed in the large input box, which is convenient for the user to edit the content to be input.

[0034] FIG. 3 is a flowchart of several embodiments of another instant messaging software content input method according to the present disclosure, which, based on the embodiment shown in FIG. 2, further includes:

[0035] S105, in response to a trigger for a target edit control, process the target input content in the first input box or the second input box according to a target edit method corresponding to the target edit control.

[0036] The target edit control may be one of a bold edit control, an underline edit control, a strikethrough edit control, an italic edit control, a hyperlink edit control, an ordered list edit control, an unordered list edit control, and a quote edit control, and accordingly, the target edit manner may be one of bold, add underline, add strikethrough, italic, add hyperlink, arrange in the manner of an ordered list, arrange in the manner of an unordered list, and quote. In other embodiments, the target edit control may be another edit control such as a font color edit control or a font type edit control, and this embodiment is not specifically limited thereto.

[0037] In actual applications, a user can select one from multiple content editing controls presented in an IM client according to his or her actual needs, and the content editing control selected by the user is the target editing control. For example, as shown in FIG. 4A, when a user needs to present the target input content in an underline presentation style, the underline editing control can be selected and triggered as the target editing control.

[0038] After the user receives a trigger for the target edit control, in response to the trigger operation, for example, as shown in FIG. 4B, the target edit control is an underline edit control, and in response to the trigger for the underline edit control, an underline is added to the target input content in the target input box, thereby presenting the target input content in an underline presentation style.

[0039] In other embodiments, when the target edit control is a bold edit control, the target edit manner is bold, and a bold processing is performed on the target input content to present the target input content in a bold presentation style; when the target edit control is a strikethrough edit control, the target edit manner is add strikethrough, and a strikethrough is performed on the target input content to present the target input content in a strikethrough presentation style; when the target edit control is an italic edit control, the target edit manner is slant, and a slant processing is performed on the target input content to present the target input content in a slant presentation style; or when the target edit control is an italic edit control, the target edit manner is slant, and a slant processing is performed on the target input content to present the target input content in a slant presentation style. is a hyperlink edit control, the target edit method is link setting, whereby a related link is set for the target input content, thereby presenting the target input content in a hyperlink presentation style; or, when the target edit control is an ordered list edit control, the target edit method is number arranging, whereby the target input content is ordered and arranged, thereby presenting the target input content in an ordered list presentation style; or, when the target edit control is an unordered list edit control, the target edit method is random arrangement, whereby the target input content is arranged without an order number, thereby presenting the target input content in an unordered list presentation style.

[0040] It should be noted that FIG. 4 only illustrates an input box in the session interface as an example, and other embodiments may process target input content in a rich text input box.

[0041] In some embodiments, the target input content is all the input content in the first input box. For example, as shown in FIG. 4A, before a user inputs content into the first input box, the user triggers the underline edit control. As shown in FIG. 4B, after triggering the underline edit control, the user inputs content into the first input box, and all the input content is presented in an underline presentation style. Obviously, all the input content in the first input box is the target input content.

[0042] In some embodiments, the target input content is a portion of the input content in the first input box. For example, as shown in Figure 5A, a user inputs content into the first input box, selects a portion of the input content, and then triggers the underline edit control. As shown in Figure 5B, after triggering the underline edit control, the selected input content is presented in an underline presentation style. Obviously, the portion of the input content in the first input box is the target input content.

[0043] In this embodiment, in response to a trigger for the target editing control, the target input content in the first input box or the second input box can be processed based on the target editing method corresponding to the target editing control to change the presentation style of the target input content, so that the target input content can be presented to the user in different presentation styles, thereby increasing the diversification of content editing capabilities and thereby meeting the user's demand for diversification of content editing capabilities.

[0044] Based on the above embodiment, the second input box may be obtained based on changing the size of the first input box.

[0045] Illustratively, if the first input box is an input box of the session interface shown in Figure 1A, the size of the first input box is enlarged to obtain a second input box in response to the trigger of the switching control. If the first input box is a rich text input box shown in Figure 1B, the size of the first input box is reduced to obtain a second input box in response to the trigger of the switching control.

[0046] FIG. 6 is a flowchart of some embodiments of a content input method for instant messaging software according to the present disclosure. Based on the embodiment shown in FIG. 3, FIG. 6 provides a detailed description of an implementation manner for triggering the display of at least one content editing control before executing S105, as follows:

[0047] S104, displaying at least one content editing control in response to a trigger on a first button displayed in the first input box or the second input box.

[0048] The at least one content edit control includes the target edit control.

[0049] 7A is a schematic diagram of some exemplary display screens of instant messaging software according to the present disclosure. Illustratively, as shown in FIG. 7A, a first button is displayed in an input box of a session interface, and a user can click the first button to trigger the first button. For example, the first button may be an "Aa" style button. As shown in FIG. 7B, at least one content editing control is displayed in response to the trigger operation of the first button.

[0050] In some embodiments, these content editing controls may include at least one of a bold edit control, an underline edit control, a strikethrough edit control, an italic edit control, a hyperlink edit control, an ordered list edit control, an unordered list edit control, and a quote edit control, and may include at least one of other content editing controls such as a font color edit control and a font type edit control, and this embodiment is not specifically limited to content editing controls.

[0051] Based on at least one content editing control displayed, the user selects and triggers one of these content editing controls according to his / her own needs, and the content editing control selected by the user is the target editing control.

[0052] It should be noted that FIG. 7 only illustrates an example of an input box in the session interface, which may be a rich text input box in other embodiments.

[0053] In this embodiment, in response to a trigger on a first button displayed in the first input box or the second input box, at least one content editing control is displayed, and the at least one content editing control includes a target editing control. When there is no need to edit the input content, the content editing control is hidden, which can make the display screen of the IM software relatively simple and improve the user experience. In addition, the first button is displayed in the first input box, making it convenient for the user to operate.

[0054] FIG. 8 is a flowchart of some embodiments of another content input method for instant messaging software according to the present disclosure. Based on the embodiment shown in FIG. 3, FIG. 8 provides a detailed description of another implementation manner for triggering the display of at least one content editing control before executing S103, as follows:

[0055] S104' displays at least one content editing control in response to a trigger for the target input content displayed in the first input box or the second input box.

[0056] The at least one content edit control includes the target edit control.

[0057] FIG. 9A is a schematic diagram of several exemplary display screens of another instant messaging software according to the present disclosure. Illustratively, an input content to be edited can be selected from the input box of the session interface shown in FIG. 9A , i.e., a target input content can be selected. In response to the selection operation of the target input content, a floating toolbar can be displayed near the position where the target input content is located, and at least one content editing control is displayed on the floating toolbar.

[0058] In some embodiments, these content editing controls may include at least one of a bold editing control, an underline editing control, a strikethrough editing control, an italic editing control, a hyperlink editing control, an ordered list editing control, an unordered list editing control, and a quote editing control, and may include at least one of other content editing controls such as a font color editing control and a font type editing control, and this embodiment is not specifically limited to content editing controls.

[0059] Based on at least one content editing control displayed in the floating toolbar, a user selects and triggers one of these content editing controls according to his / her own needs, and the content editing control selected by the user is the target editing control.

[0060] In this embodiment, at least one content editing control is displayed in response to a trigger for the target input content displayed in the first input box or the second input box, and the at least one content editing control includes a target editing control. When there is no need to edit the input content, the content editing control is hidden, which makes the display screen relatively simple and improves the user experience. In addition, a single button can be set to trigger the display of the content editing control, further improving the simplicity of the display screen.

[0061] In some embodiments, based on the above embodiments, the display position of at least one content editing control and the position of the target input content are related.

[0062] Illustratively, as shown in FIG. 9A , the floating toolbar is located near the area where the target input content is located, making it convenient for the user to trigger operations on the content editing controls. For example, the floating toolbar may be located 8 pt above the area where the target input content is located. In some embodiments, when the target input content is located near the edge of the input box, the corresponding floating toolbar is located within the display box and close to the display box edge, as shown in FIG. 9A , to ensure that all content editing controls are fully displayed. For example, the floating toolbar is located within the display box and 8 pt from the display box edge. In some embodiments, when the target input content is located close to the middle of the input box, the corresponding floating toolbar may be distributed symmetrically on both sides of the target input content, as shown in FIG. 9B , thereby maintaining the aesthetics of the display screen.

[0063] In this embodiment, the display position of at least one content editing control is associated with the position of the target input content, which is convenient for users to operate and ensures the aesthetics of the display screen and the integrity of the content editing control.

[0064] FIG. 10 is a flowchart of some embodiments of another instant messaging software content input method disclosed herein. Based on the embodiment shown in FIG. 2, FIG. 10 provides a detailed description of one possible implementation manner for performing S101, as follows:

[0065] S101': displaying the target input content in the first input box, and saving the target input content in a draft box;

[0066] The user inputs the target input content into the first input box, and after receiving the target input content input by the user, the target input content is saved in the draft box and the target input content is displayed in the first input box.

[0067] As a specific example of one possible implementation of S103, as shown in FIG. 10, S103', in response to a trigger on the switching control, obtain the target input content from the draft box and display it in the second input box.

[0068] The first input box and the second input box share one draft box, and in response to the trigger of the switching control, the second input box can retrieve the previously saved target input content displayed in the first input box from the draft box and display the target input content in the second input box.

[0069] In this embodiment, the first input box and the second input box share a draft box, the target input content is displayed in the first input box, and the target input content is saved in the draft box. In response to the trigger of the switching control, the target input content is retrieved from the draft box and displayed in the second input box. There is no data transmission between the first input box and the second input box, and the synchronization efficiency of the target input content can be improved.

[0070] FIG. 11 is a flowchart of some embodiments of another instant messaging software content input method disclosed herein. Based on the embodiment shown in FIG. 10, FIG. 11 provides a detailed description of one possible implementation manner for executing S103', as follows:

[0071] S201, in response to a trigger on the switching control, obtain a first target input content of the first title region and a second target input content of the first body region from the draft box.

[0072] The size of the first input box is larger than the size of the second input box, for example, the first input box is the rich text input box shown in FIG. 1B, and the second input box is the input box of the session interface shown in FIG. 1A.

[0073] The first input box includes a first title area and a first body area, where the first title area can display a first target input content and the first body area can display a second target input content. Here, the first target input content may not be empty. For example, as shown in FIG. 12A, the first target input content displayed in the first title area is "China" and the second target input content displayed in the first body area is "I am Chinese." The first target input content may be empty. As shown in FIG. 12C, the first title area does not display any content and the second target input content displayed in the first body area is "I am Chinese."

[0074] Based on the above embodiment, a first target input content of a first title area and a second target input content of a first body area are stored in the draft box, and a user triggers a switching control in the first input box, and in response to the triggering of the switching control, the first target input content of the first title area and the second target input content of the first body area are obtained from the draft box.

[0075] S202, determining whether the first target input content is empty.

[0076] If so, execute S203; if not, execute S204.

[0077] S203: Displaying the second target input content in the text area of ​​a second input box including only the text area.

[0078] When the first target input content is empty, the second target input content stored in the draft box is retrieved, and the second target input content is displayed in the body text area of ​​the second input box. The displayed second input box only includes the body text area, and there is no need to leave a title text area for the first target input content, so that the screen displayed in the second input box is relatively more aesthetically pleasing. For example, as shown in Figure 12C, no content is displayed in the first title text area, and the second target input content displayed in the first body text area is "I am Chinese." As shown in Figure 12D, in response to the trigger of the switching control, there is no need to set a title text area above the body text area of ​​the second input box, and the body text area is placed on top, and the second target input content "I am Chinese" is displayed in the body text area.

[0079] S204: Displaying the first target input content in a second title area of ​​a second input box including a second title area and a second body area, and displaying the second target input content in the second body area.

[0080] When the first target input content is not empty, the first target input content and the second target input content stored in the draft box are retrieved, and the first target input content is displayed in the second title area of ​​the second input box and the second target input content is displayed in the second body area, without affecting the presentation style of the first target input content and the second target input content. For example, as shown in FIG. 12A , the first target input content “China” is displayed in the first title area and the second target input content “I am Chinese” is displayed in the first body area. In response to the trigger of the switching control, the second input box displays the second title area and the second body area, and as shown in FIG. 12B , the first target input content “China” is displayed in the second title area and the second target input content “I am Chinese” is displayed in the second body area.

[0081] FIG. 13 is a flowchart of some embodiments of another content input method for instant messaging software according to the present disclosure. Based on the embodiment shown in FIG. 10, FIG. 13 provides a detailed description of another possible implementation manner for executing S103′, as follows:

[0082] S301: When the first input box includes a first title area and a first body area, in response to a trigger on the switching control, obtain a first target input content of the first title area and a second target input content of the first body area from the draft box, and display the first target input content in the second title area of ​​the second input box and the second target input content in the second body area.

[0083] The size of the first input box is smaller than the size of the second input box, for example, the first input box is the input box of the session interface shown in FIG. 1A, and the second input box is the rich text input box shown in FIG. 1B.

[0084] 12B , the first input box includes a first title area and a first body area, where a first target input content is displayed in the first title area and a second target input content is displayed in the first body area, and the first target input content and the second target input content are stored in the draft box. In response to a user's trigger on the switching control, the first target input content and the second target input content are obtained from the draft box, and the first target input content is displayed in the second title area of ​​the second input box, and the second target input content is displayed in the second body area of ​​the second input box.

[0085] For example, as shown in Figure 12B, a first input box displays a first title area and a first body area, where a first target input content "China" is displayed in the first title area and a second target input content "I am Chinese" is displayed in the first body area. In response to triggering the toggle control, a second input box displays a second title area and a second body area, where a first target input content "China" is displayed in the second title area and a second target input content "I am Chinese" is displayed in the second body area, as shown in Figure 12A.

[0086] S301': when the first input box includes a body text area, in response to a trigger on the switching control, obtain a target input content of the body text area from the draft box, and display the target input content in a second body text area of ​​a second input box.

[0087] The size of the first input box is smaller than the size of the second input box, for example, the first input box is the input box of the session interface shown in FIG. 1A, and the second input box is the rich text input box shown in FIG. 1B.

[0088] Illustratively, the first input box includes only a body region, and the target input content is displayed in the body region, as shown in FIG. 12D, while only the target input content is stored in the draft box. In response to a user's trigger on the switching control, the target input content is retrieved from the draft box, and the target input content is displayed in the second body region of the second input box.

[0089] For example, as shown in Figure 12D, a first input box displays only a body region and displays a target input content "I am Chinese" in the body region. In response to triggering the toggle control, a second input box displays a second title region and a second body region, where the target input content "China" is displayed in the second body region but not in the second title region, as shown in Figure 12C.

[0090] The present disclosure further provides a content input device for instant messaging software. FIG. 14 is a structural schematic diagram of several embodiments of the content input device for instant messaging software according to the present disclosure. As shown in FIG. 14, the content input device for instant messaging software includes: a first display module 110 for receiving a target input content to be input into the first input box and displaying the target input content in the first input box; and a second display module 120 for displaying the target input content in the second input box in response to a trigger on the switching control.

[0091] In some embodiments, The device further includes a processing module for processing target input content in the first input box or the second input box based on a target editing strategy corresponding to the target editing control in response to a trigger for the target editing control.

[0092] In some embodiments, The device further includes a transformation module for resizing the first input box to obtain the second input box in response to a trigger on the switching control.

[0093] In some embodiments, the first display module 110 is further adapted to display at least one content edit control in response to a trigger on a first button displayed in the first input box, the at least one content edit control including the target edit control.

[0094] The second display module 120 is further used to display at least one content edit control in response to a trigger on a first button displayed in the second input box, the at least one content edit control including the target edit control.

[0095] In some embodiments, the first display module 110 is further adapted to display at least one content edit control in response to a trigger for a target input content displayed in the first input box, the at least one content edit control including the target edit control.

[0096] The second display module 120 is further used to display at least one content edit control in response to a trigger for a target input content displayed in the second input box, the at least one content edit control including the target edit control.

[0097] In some embodiments, the first input box and the second input box share a single draft box.

[0098] The first display module 110 is further used for displaying the target input content in the first input box and saving the target input content in a draft box.

[0099] The second display module 120 is further used to retrieve the target input content from the draft box and display it in the second input box in response to a trigger on the switching control.

[0100] In some embodiments, the display position of the at least one content editing control and the position of the target input content are related.

[0101] In some embodiments, the size of the first input box is larger than the size of the second input box, and the first input box includes a first title area and a first body area.

[0102] The second display module 120 is further used to, in response to a trigger on the switching control, retrieve a first target input content of the first title area and a second target input content of the first body area from the draft box, and, if the first target input content is empty, display the second target input content in a body area in a second input box including only a body area, and, if the first target input content is not empty, display the first target input content in a second title area of ​​a second input box including a second title area and a second body area, and display the second target input content in the second body area.

[0103] In some embodiments, the size of the first input box is smaller than the size of the second input box, and the first input box includes a body text area, or the first input box includes a first title area and a first body text area, and the second input box includes a second title area and a second body text area.

[0104] The second display module 120 is further used to, when the first input box includes a first title area and a first body area, retrieve a first target input content of the first title area and a second target input content of the first body area from the draft box in response to a trigger on the switching control, and display the first target input content in the second title area of ​​the second input box and the second target input content in the second body area, and, when the first input box includes a body area, retrieve the target input content of the body area from the draft box in response to a trigger on the switching control, and display the target input content in the second body area of ​​the second input box.

[0105] In some embodiments, the at least one content editing control comprises: The text may include at least one of bold, underline, strikethrough, italics, hyperlink, ordered list, unordered list, and citation.

[0106] The apparatus according to the embodiments of the present disclosure may be used to implement the technical solutions of the above method embodiments, and the realization principles and technical effects thereof are similar, and will not be further described here.

[0107] An embodiment of the present disclosure further provides an electronic device, the electronic device including a processor, the processor being used to execute a computer program stored in a memory, the processor implementing the steps of the above method embodiment when executing the computer program.

[0108] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above method embodiments.

[0109] An embodiment of the present disclosure further provides a computer program product, which, when run on a computer, causes the computer to perform the steps of the method embodiments of the present disclosure.

[0110] According to a first aspect, the present disclosure provides a content input method for instant messaging software, the instant messaging software including a first input box and a second input box, the first input box and the second input box being switched by a switching control, and the size of the first input box and the size of the second input box being different; receiving a target input content to be input into the first input box and displaying the target input content in the first input box; In response to a trigger on the switching control, the target input content is displayed in the second input box.

[0111] In some embodiments, the method further comprises: The method further includes, in response to a trigger for a target edit control, processing target input content in the first input box or the second input box based on a target edit strategy corresponding to the target edit control.

[0112] In some embodiments, the method further comprises: The method further includes, in response to a trigger on the switching control, resizing the first input box to obtain the second input box.

[0113] In some embodiments, the method further comprises: displaying at least one content edit control in response to a trigger on a first button displayed in the first input box or the second input box, wherein the at least one content edit control includes the target edit control; Or, The method further includes displaying at least one content edit control in response to a trigger for target input content displayed in the first input box or the second input box, wherein the at least one content edit control includes the target edit control.

[0114] In some embodiments, the first input box and the second input box share a single draft box; receiving a target input content to be input into the first input box and displaying the target input content in the first input box includes: displaying the target input in the first input box and saving the target input in a draft box; displaying the target input content in the second input box in response to a trigger on the switching control includes: In response to a trigger on the switching control, the target input content is retrieved from the draft box and displayed in the second input box.

[0115] In some embodiments, the display position of the at least one content editing control and the position of the target input content are related.

[0116] In some embodiments, a size of the first input box is larger than a size of the second input box, and the first input box includes a first title area and a first body area; retrieving the target input content from the draft box and displaying it in the second input box in response to a trigger on the switching control, retrieving a first target input content for the first title region and a second target input content for the first body region from the draft box in response to a trigger on the switching control; If the first target input is empty, displaying the second target input in a body region within a second input box including only a body region; When the first target input content is not empty, displaying the first target input content in a second title area of ​​a second input box including a second title area and a second body area, and displaying the second target input content in the second body area.

[0117] In some embodiments, the size of the first input box is smaller than the size of the second input box, and the first input box includes a body region, or the first input box includes a first title region and a first body region, and the second input box includes a second title region and a second body region; retrieving the target input content from the draft box and displaying it in the second input box in response to a trigger on the switching control, When the first input box includes a first title area and a first body area, in response to a trigger on the switching control, acquiring a first target input content of the first title area and a second target input content of the first body area from the draft box, and displaying the first target input content in the second title area of ​​a second input box and the second target input content in the second body area; When the first input box includes a body text area, in response to a trigger on the switching control, obtaining the target input content of the body text area from the draft box and displaying the target input content in a second body text area of ​​a second input box.

[0118] In some embodiments, the at least one content editing control comprises: The text may include at least one of bold, underline, strikethrough, italics, hyperlink, ordered list, unordered list, and citation.

[0119] According to a second aspect, the present disclosure provides a content input device for instant messaging software, the instant messaging software including a first input box and a second input box, the first input box and the second input box being switched by a switching control, and the first input box and the second input box being different in size; The device comprises: a first display module for receiving a target input content to be input into the first input box and displaying the target input content in the first input box; and a second display module for displaying the target input content in the second input box in response to a trigger on the switching control.

[0120] In some embodiments, The device further includes a processing module for processing target input content in the first input box or the second input box based on a target editing strategy corresponding to the target editing control in response to a trigger for the target editing control.

[0121] In some embodiments, The device further includes a transformation module for resizing the first input box to obtain the second input box in response to a trigger on the switching control.

[0122] In some embodiments, the first display module is further adapted to display at least one content edit control in response to a trigger on a first button displayed in the first input box, the at least one content edit control including the target edit control.

[0123] The second display module is further used to display at least one content edit control in response to a trigger on a first button displayed in the second input box, the at least one content edit control including the target edit control.

[0124] In some embodiments, the first display module is further adapted to display at least one content edit control in response to a trigger for a target input content displayed in the first input box, the at least one content edit control including the target edit control.

[0125] The second display module is further adapted to display at least one content edit control in response to a trigger for a target input content displayed in the second input box, the at least one content edit control including the target edit control.

[0126] In some embodiments, the first input box and the second input box share a single draft box.

[0127] The first display module is further used for displaying the target input content in the first input box and saving the target input content in a draft box.

[0128] A second display module is further used to retrieve the target input content from the draft box and display it in the second input box in response to a trigger on the switching control.

[0129] In some embodiments, the display position of the at least one content editing control and the position of the target input content are related.

[0130] In some embodiments, the size of the first input box is larger than the size of the second input box, and the first input box includes a first title area and a first body area.

[0131] The second display module is further used to, in response to a trigger on the switching control, retrieve a first target input content of the first title area and a second target input content of the first body area from the draft box, and, if the first target input content is empty, display the second target input content in a body area in a second input box including only a body area, and, if the first target input content is not empty, display the first target input content in a second title area of ​​a second input box including a second title area and a second body area, and display the second target input content in the second body area.

[0132] In some embodiments, the size of the first input box is smaller than the size of the second input box, and the first input box includes a body text area, or the first input box includes a first title area and a first body text area, and the second input box includes a second title area and a second body text area.

[0133] The second display module is further used to, when the first input box includes a first title area and a first body area, retrieve a first target input content of the first title area and a second target input content of the first body area from the draft box in response to a trigger on the switching control, and display the first target input content in the second title area of ​​the second input box and the second target input content in the second body area, and, when the first input box includes a body area, retrieve the target input content of the body area from the draft box in response to a trigger on the switching control, and display the target input content in the second body area of ​​the second input box.

[0134] In some embodiments, the at least one content editing control comprises: The text may include at least one of bold, underline, strikethrough, italics, hyperlink, ordered list, unordered list, and citation.

[0135] According to a third aspect, the present disclosure provides an electronic device, the electronic device including a processor, the processor being adapted to execute a computer program stored in a memory, the processor implementing any one of the methods according to the first aspect when executing the computer program.

[0136] According to a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, the computer-readable storage medium being characterized in that the computer program, when executed by a processor, implements any one of the methods according to the first aspect.

[0137] According to a fifth aspect, the present disclosure provides a computer program product, which, when run on a computer, causes the computer to perform any one of the methods according to the first aspect.

[0138] According to a sixth aspect, the present disclosure provides a computer program product, comprising instructions, which, when executed by a processor, cause the processor to perform the content input method according to any one of the embodiments.

[0139] It should be explained that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another and do not necessarily require or imply the existence of any such actual relationship or order between those entities or operations. Furthermore, the terms "comprise," "include," or any other variant thereof are intended to cover a non-exclusive "comprise," whereby a process, method, article, or device comprising a set of elements not only includes those elements, but also other elements not expressly listed, or further elements inherent in such process, method, article, or device. Absent further limitations, an element qualified by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, article, or device that includes said element.

[0140] The foregoing are merely specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications of these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A content input method for instant messaging software, comprising: receiving a target input content to be input into a first input box and displaying the target input content in the first input box, wherein the instant messaging software includes the first input box and a second input box, the first input box and the second input box are switched by a switching control, and the size of the first input box and the size of the second input box are different; displaying the target input content in the second input box in response to a trigger on the switching control; the first input box and the second input box share one draft box; receiving a target input content to be input into the first input box and displaying the target input content in the first input box includes: displaying the target input in the first input box and saving the target input in the draft box; displaying the target input content in the second input box in response to a trigger on the switching control includes: The method includes, in response to a trigger on the switching control, obtaining the target input content from the draft box and displaying it in the second input box.

2. 2. The content input method of claim 1, further comprising: in response to a trigger for a target edit control, processing target input content in the first input box or the second input box based on a target edit strategy corresponding to the target edit control.

3. The method of claim 1 , further comprising: in response to a trigger on the switching control, resizing the first input box to obtain the second input box.

4. 3. The content input method of claim 2, further comprising displaying at least one content editing control in response to a trigger on a first button displayed in the first input box or the second input box, wherein the at least one content editing control includes the target editing control.

5. 3. The content input method of claim 2, further comprising displaying at least one content edit control in response to a trigger for target input content displayed in the first input box or the second input box, wherein the at least one content edit control includes the target edit control.

6. The content input method according to claim 4 , wherein a display position of the at least one content editing control and a position of the target input content are related to each other.

7. The size of the first input box is larger than the size of the second input box, and the first input box includes a first title area and a first body area; retrieving the target input content from the draft box and displaying it in the second input box in response to a trigger on the switching control, 2. The content input method of claim 1, further comprising: acquiring a first target input content for the first title region and a second target input content for the first body region from the draft box in response to a trigger on the switching control.

8. retrieving the target input content from the draft box and displaying it in the second input box in response to a trigger on the switching control, If the first target input is empty, displaying the second target input in a body region within a second input box including only a body region; 8. The content input method of claim 7, further comprising: when the first target input content is not empty, displaying the first target input content in a second title area of ​​a second input box including a second title area and a second body area, and displaying the second target input content in the second body area.

9. the size of the first input box is smaller than the size of the second input box; the first input box includes a body region, or the first input box includes a first title region and a first body region, and the second input box includes a second title region and a second body region; retrieving the target input content from the draft box and displaying it in the second input box in response to a trigger on the switching control, When the first input box includes a first title area and a first body area, in response to a trigger on the switching control, acquiring a first target input content of the first title area and a second target input content of the first body area from the draft box, and displaying the first target input content in the second title area of ​​a second input box and the second target input content in the second body area; 2. The content input method of claim 1, further comprising: in response to a trigger on the switching control, when the first input box includes a body text area, acquiring the target input content of the body text area from the draft box and displaying the target input content in a second body text area of ​​a second input box.

10. The at least one content editing control includes:

5. The method of claim 4, wherein the content includes at least one of bold, underline, strikethrough, italics, hyperlink, ordered list, unordered list, or citation.

11. A content input device for instant messaging software, comprising: a first display module for receiving a target input content to be input into a first input box and displaying the target input content in the first input box, wherein the instant messaging software includes the first input box and a second input box, the first input box and the second input box are switched by a switching control, and the first input box and the second input box have different sizes; a second display module for displaying the target input content in the second input box in response to a trigger on the switching control; the first input box and the second input box share one draft box; the first display module displays the target input content in the first input box and saves the target input content in the draft box; The second display module retrieves the target input content from the draft box and displays it in the second input box in response to a trigger on the switching control.

12. 11. An electronic device including a processor, the processor being used to execute a computer program stored in a memory, the processor implementing the content input method according to any one of claims 1 to 10 when executing the computer program.

13. A non-volatile computer-readable storage medium on which a computer program is stored, the computer program implementing the content input method according to any one of claims 1 to 10 when executed by a processor.

14. A computer program product comprising instructions which, when executed by a processor, cause the processor to perform the content input method of any one of claims 1 to 10.

Citation Information

Patent Citations

  • Text processing method and device and computer readable storage medium

    CN112099678A

  • Method and apparatus for processing task events

    JP2016502702A