CN110298021A - A kind of method for message interaction, system and storage medium - Google Patents

A kind of method for message interaction, system and storage medium Download PDF

Info

Publication number
CN110298021A
CN110298021A CN201810247826.6A CN201810247826A CN110298021A CN 110298021 A CN110298021 A CN 110298021A CN 201810247826 A CN201810247826 A CN 201810247826A CN 110298021 A CN110298021 A CN 110298021A
Authority
CN
China
Prior art keywords
text
format
content
message
editing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810247826.6A
Other languages
Chinese (zh)
Other versions
CN110298021B (en
Inventor
胡隽雯
卢锟
秦银
吕晓文
郑还
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810247826.6A priority Critical patent/CN110298021B/en
Publication of CN110298021A publication Critical patent/CN110298021A/en
Application granted granted Critical
Publication of CN110298021B publication Critical patent/CN110298021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Abstract

The embodiment of the invention discloses a kind of method for message interaction, system and storage mediums;The embodiment of the present invention is inputted using content of text is received, and is instructed with content of text input related pattern text editing;Text editing format corresponding with content of text input is determined according to format text edit instruction;According to the text formatting for text editing format editor's content of text that format text edit instruction determines;Formatted text message is generated according to content of text and its corresponding text formatting information, formatted text message carries content of text and its corresponding format information;Formatted text message is sent to receiving side terminal;In receiving side terminal according to format information display text content.The program can promote the editorial efficiency of message content.

Description

A kind of method for message interaction, system and storage medium
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of method for message interaction, system and storage medium.
Background technique
As continuous universal and development, the user of terminal are increasingly dependent on terminal, can install in terminal various Using, wherein instant messaging (InstantMessaging, IM) application is widely used in a variety of applications, and user can be by instant Communication applications complete the real time communication with good friend, for example, the real-time tranception instant communication information in the chat scenario with good friend, into Row interaction.
Currently, during interaction instant communication information, when user want by the content of text of instant communication information into When row format editor, it is necessary first to user manually selects content of text and replicates, then open a terminal in documents editing answer With, by content of text paste documents editing application in carry out format editor, finally answered by the edited content of text of format It makes in the content input frame of instant communication information application and is sent.
However, the process edited at present to the format of message content is comparatively laborious, need to apply in documents editing and Ceaselessly switch and replicate stickup between instant messaging application, reduces the editorial efficiency of message content.
Summary of the invention
The embodiment of the present invention provides a kind of method for message interaction, system and storage medium, can promote the volume of message content Collect efficiency.
The embodiment of the present invention provides a kind of method for message interaction, comprising:
Receive content of text input, and format text edit instruction relevant to content of text input;
Text editing format corresponding with content of text input is determined according to the format text edit instruction;
According to the text formatting for text editing format editor's content of text that format text edit instruction determines;
Formatted text message is generated according to the content of text and its corresponding text formatting information, the format text disappears Breath carries the content of text and its corresponding format information;
The formatted text message is sent to receiving side terminal;
The content of text is shown according to the format information in the receiving side terminal.
Correspondingly, the embodiment of the invention also provides a kind of message exchange system, including message sends terminal and message connects Receive terminal;
The message sends terminal, is used for: receiving content of text input, and inputs related pattern text with content of text Edit instruction;Text editing format corresponding with content of text input is determined according to the format text edit instruction;According to lattice The text formatting of the determining text editing format editor's content of text of formula text editing instruction;According to the content of text and its right The text formatting information answered generates formatted text message, and the formatted text message carries the content of text and its corresponding lattice Formula information;The formatted text message is sent to receiving side terminal;
The reception terminal, for showing the content of text according to the format information.
Correspondingly, the embodiment of the present invention also provides a kind of storage medium, wherein being stored with a plurality of instruction, described instruction can It is loaded by processor, to execute above-mentioned method for message interaction.
The embodiment of the present invention is inputted using content of text is received, and is referred to content of text input related pattern text editing It enables;Text editing format corresponding with content of text input is determined according to format text edit instruction;According to format text editor Instruct the text formatting of determining text editing format editor's content of text;Believed according to content of text and its corresponding text formatting Breath generates formatted text message, and formatted text message carries content of text and its corresponding format information;It is sent out to receiving side terminal Send formatted text message;In receiving side terminal according to format information display text content.The program can directly disappear to be sent The text formatting of the content of text of breath is edited, without ceaselessly switching between documents editing application and instant messaging application It is pasted with duplication, improves the editorial efficiency of message content.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is the schematic diagram of a scenario of message exchange system provided in an embodiment of the present invention;
Fig. 2 a is the flow diagram of method for message interaction provided in an embodiment of the present invention.
Fig. 2 b is a kind of interacting message interface schematic diagram provided in an embodiment of the present invention;
Fig. 2 c is another interacting message interface schematic diagram provided in an embodiment of the present invention;
Fig. 2 d is format editor schematic diagram provided in an embodiment of the present invention;
Fig. 2 e is another format editor's schematic diagram provided in an embodiment of the present invention;
Fig. 2 f is figure message blended weaving schematic diagram provided in an embodiment of the present invention;
Fig. 2 g is message display schematic diagram in front end provided in an embodiment of the present invention;
Fig. 2 h is that the embodiment of the present invention provides another format editor schematic diagram;
Fig. 3 is the flow diagram of method for message interaction provided in an embodiment of the present invention;
Fig. 4 a is a kind of structural schematic diagram of interacting message device provided in an embodiment of the present invention;
Fig. 4 b is another structural schematic diagram of interacting message device provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of message exchange system, which includes the message of any offer of the embodiment of the present invention Interactive device, the interacting message device can integrate in the equipment such as terminal, and wherein the terminal can be mobile phone or tablet computer Deng.In addition, the system can also include other equipment, for example, can also including server etc. equipment.
With reference to Fig. 1, the embodiment of the invention provides a kind of message exchange systems, comprising: terminal 11, terminal 14 and server 12, terminal 11 is connect with server 12 by network 13, and terminal 14 is connect by network 15 with server 12.Wherein, network 13 With include router, gateway etc. network entity in network 15, in figure and to illustrate.Terminal 11 can by cable network or Wireless network and server 12 carry out information exchange, for example, can be downloaded from server 12 application (such as instant messaging application) and/ Or application updated data package and/or to apply relevant data information or business information.Wherein, terminal 11 can be mobile phone, put down The equipment such as plate computer, laptop, Fig. 1 are so that terminal 11 is mobile phone as an example.Various users can be installed in the terminal 11 Required application, for example have the application (such as instant messaging application, audio play application, game application) of amusement function, for another example The application for having service function (such as digital map navigation application is purchased by group and applied).
Based on above-mentioned system shown in FIG. 1, by taking instant messaging is applied as an example, terminal 11 can be by network 12 from server Instant messaging application, instant messaging application updated data package are downloaded in 12 as desired, and/or to instant messaging using relevant Data information or business information.
Wherein, terminal 11 can be used as interacting message side or message receiver, and terminal 14 can also be used as interacting message Side or message receiver.
For using terminal 11 as interacting message side, terminal 14 as message receiver, terminal 11 can with end During end 14 carries out interacting message, content of text input is received, and format text relevant to content of text input is compiled Collect instruction;Text editing format corresponding with content of text input is determined according to the format text edit instruction;According to format The text formatting of the determining text editing format editor's content of text of text editing instruction;According to the content of text and its correspondence Text formatting information generate formatted text message, the formatted text message carries the content of text and its corresponding format Information;Formatted text message is sent to server 12, so that server 12 forwards formatted text message to terminal 14.Implement one In example, terminal 11 directly can send formatted text message to terminal 14.
Terminal 14 can show the message content of formatted text message after receiving formatted text message, for example, Terminal 14 is parsed call format text editor such as to formatted text message and is parsed to formatted text message, and text is obtained This content and its corresponding text formatting information;Content of text is shown according to text formatting information.For example, according to text Content of text is embedded into message bubble by format information, in the interacting message showing interface message bubble.
Above-mentioned Fig. 1 example is only to realize that a system architecture example of the embodiment of the present invention, the embodiment of the present invention are simultaneously unlimited In above-mentioned system structure shown in FIG. 1, it is based on the system architecture, proposes each embodiment of the present invention.
In one embodiment, a kind of method for message interaction is provided, can be executed by the processor of terminal, such as Fig. 2 a institute Show, which includes:
201, content of text input, and format text edit instruction relevant to content of text input are received.
For example, content of text input can be received, and relevant to content of text input during interacting message Format text edit instruction.
In the embodiment of the present invention, can be received by format text editing machine content of text input, and in text Hold and inputs relevant format text edit instruction.
For example, step " receiving content of text input, and format text edit instruction relevant to content of text input ", May include:
Format text editing machine is opened, and shows the corresponding Edition Contains of the format text editing machine in current interface Region;
Content of text input, and format relevant to content of text input text are received by the format text editing machine This edit instruction.
For example, can receive format text editor's open command, is opened or called according to format text editor's open command Format text editing machine.
Wherein, the triggering mode of format editor open command can there are many, for example, interacting message circle can be shown Face, interface is opened in setting corresponding format text editing in interacting message interface (such as chat window), and subsequent user can pass through Interface triggering generates format text edit instruction.
Wherein, format text editor open interface the form of expression can there are many, for example, input frame, icon, button etc. Form.
For example, showing " Aa " icon on interacting message interface with reference to Fig. 2 b, should just be touched when " Aa " icon when the user clicks Format text editor's open command occurs into, at this point, the interacting message device of the embodiment of the present invention receives the instruction.
Wherein, format text editing machine is the text editor for supporting text formatting editor, identification, for example, rich text is compiled Collect device (Rich Text Editor, RTE) etc..
Wherein, format text editing machine can be embedded in application, such as be embedded in instant messaging application, so that user edits Content of text and text formatting etc..
In one embodiment, content of text and text formatting are edited for the ease of user, can also current interface such as Set content editing area in interacting message interface, to write and display text content.User can be in content editing area Interior input content of text, at this point, terminal receives the text input of user by format text editing machine.
Wherein, the input frame of Edition Contains region and tradition application such as instant messaging application is different, although the two The form of expression is somewhat similar, still, essence it is different, one be format text editing machine editing area, another is only One input interface.
Wherein, format text edit instruction can set automatically for system triggers, for example, system section at regular intervals Trigger corresponding format text edit instruction.In addition, the format text edit instruction may be to be triggered based on user's operation.
For example, in one embodiment, it, can also be at current interface such as interacting message interface for the ease of editing text formatting The format editing area of middle setting format text editing machine, format editing area includes format edition interface;User can pass through Format edition interface triggering form text editing instruction, edits the text formatting of content of text.
At this point it is possible to obtain format text edit instruction relevant to content of text input by the format edition interface. For example, can obtain based on the format edit operation for the format edition interface detected and input phase with content of text The format text edit instruction of pass.
Wherein, the form of expression of format edition interface is a variety of, for example, the forms such as input frame, icon, button.
Format editing area is formative implement column in practical application, which uses the side of lateral extension Formula, theoretically formative implement column region unconfined can extend, and being no more than three screens on user experience as far as possible is most suitable prolong Open up the upper limit.
For example, " Aa " icon is shown on interacting message interface with reference to Fig. 2 b and Fig. 2 c, it when the user clicks should " Aa " icon When just triggering generate format text editor open command, at this point, terminal opens format text editing machine according to the instruction, and disappearing Cease the corresponding Edition Contains region 21 of display format text editor and 22 (i.e. formative implement of format editing area on interactive interface Column), wherein format editing area 22 includes multiple format Edit buttons, and subtitles button " H1 ", font-weight button is such as arranged " B ", underscore button " U ", strikethrough button " S ", sequence number button etc..User can click corresponding format Edit button Carry out corresponding format editor.
In addition, the format editing area further includes image insertion interface, image as shown in Figure 2 c is inserted into button, so as to Image is inserted at family in content of text, i.e. support picture and text mixing format.
202, text editing format corresponding with content of text input is determined according to format text edit instruction.
Wherein, text editing format may include: title highlights, font-weight is shown, sequence number sequence display, under Scribing line highlights, strikethrough is shown, picture and text mixing etc. format.
For example, just triggering corresponding format text editor with reference to Fig. 2 c when subtitles button " H1 " being arranged when the user clicks and referring to It enables, terminal can determine that text editing format corresponding with text input is that title is prominent aobvious according to the format text edit instruction Show.If terminal can identify the instruction, text editing format corresponding with text input is determined.
In one embodiment, format text edit instruction can carry text editing format, at this point it is possible to which the text is compiled It collects format and is determined as text editing format corresponding with content of text input.
In one embodiment, it the mapping relations between edit format can be inputted based on instruction to determine with content of text Corresponding text editing format;For example, instruction format mapping relations set can be preset, which includes that format text is compiled The mapping relations collected between instruction and text editing format can be based on the mapping when receiving format text edit instruction Set of relationship determines text editing format corresponding with content of text input.
203, the text formatting of the text editing format editor's content of text determined according to format text edit instruction.
Wherein, the content of text that content of text can input.
In one embodiment, text editing format can be set by the text formatting of content of text.
, can be by format text editing machine in the embodiment of the present invention, the text determined according to format text edit instruction The text formatting of edit format editor's content of text.
Wherein, the edit operation of text formatting may include the edit operation of text formatting, the removal of text formatting operation Etc..
Wherein, text formatting may include: that title highlights, underlines display, font-weight highlights etc.. Text formatting can be set according to actual needs.
It, can be based on the text editing lattice that the corresponding format text edit instruction of content of text determines in the embodiment of the present invention Then the text formatting of formula editor's content of text is shown in the Edition Contains region of format text editing machine.That is, step " root According to the text formatting for text editing format editor's content of text that format text edit instruction determines ", may include:
According to the text formatting for text editing format editor's content of text that format text edit instruction determines, and described The edited content of text of display format in Edition Contains region.
In the embodiment of the present invention, the timing between the reception of format text edit instruction and the reception of content of text input can There are many, for example, in one embodiment, can first receive content of text input, receive format text edit instruction again later, Then, it determines that content of text inputs corresponding text editing format according to format text edit instruction, is compiled based on determining text Collect the text formatting of format editor content of text.
For example, with reference to Fig. 2 d, when user inputs content of text such as " PDM meeting in the editing area of format text editing machine After summary ", user can be to text Edition Contains format, if be set as title, user can click the subtitles button " H1 " can obtain corresponding format text according to the operation and compile at this point, terminal detects when clicking subtitles button " H1 " operation Instruction (such as header format edit instruction) is collected, it is then, corresponding with content of text input according to format text edit instruction determination Text editing format be " title highlights ", at this point, by content of text " PDM meeting summary " to set title prominent for terminal Display format, and shown in editing area.
In one embodiment, can also be before receiving content of text input, prespecified content of text input is corresponding Text editing format receives format text edit instruction in advance, subsequent after getting the content of text of input, according to reception Format text edit instruction determines text editing format corresponding with content of text input, is compiled based on determining text editing format Collect the text formatting of content of text, and the edited content of text of display format in editing area.
For example, user can first click the subtitles button " H1 " with reference to Fig. 2 e, at this point, terminal detect click title by When button " H1 " operates, corresponding format text edit instruction (such as header format edit instruction) can be obtained according to the operation, so Afterwards, user inputs content of text such as " PDM meeting summary " in the editing area of format text editing machine, at this point, terminal can root Determine that text editing format corresponding with content of text input is that " title is prominent according to the format text edit instruction got in advance Display " at this point, content of text " PDM meeting summary " is set title by terminal highlights format, and is shown in editing area Show.
In the embodiment of the present invention, when editing the text formatting of content of text, the mesh for needing format editor can be first determined Content of text is marked, then, format editor is carried out to determining content of text.Wherein it is determined that the mode of target text content can be with There are many, for example, all content of text currently entered can be determined as target text content.It for another example, can be based on interior Hold content input position current in editing area to determine the target text content for needing to carry out format editor.
For example, step is " according to the text lattice for text editing format editor's content of text that format text edit instruction determines Formula " may include:
According to current content input position in the Edition Contains region, determined from the content of text need into The target text content of row format editor;
The text formatting of target text content described in the text editing format editor determined according to format text edit instruction.
In one embodiment, current content of text may include at least one content of text unit, text content list The measurement unit of first word content, for example, can be paragraph, sentence, chapters and sections etc..
At this point it is possible to determine the content of text unit for needing to carry out format based on content input position, and will be in the text Hold unit as target text content.For example, step is " according to current content input position in content editing area, from text The target text content for needing to carry out format editor is determined in this content ", may include:
Determine the content of text unit where content input position;
Using content of text unit as the target text content for needing to carry out format editor.
For example, in practical applications, the content input position of editing area such as character input position is indicated using cursor , cursor is content input position in the position of editing area;Therefore, when format is arranged, cursor can be stopped Paragraph or sentence are as the target text content for needing to carry out format setting.
It for example, can be " PDM to the paragraph that current cursor stops after user inputs " PDM meeting summary " with reference to Fig. 2 d Meeting summary " carries out title setting.
In another example the paragraph that cursor is stopped will automatically generate sequence as when user inputs [sequence number]+[]+[space] Row number format, and sequence number format is once opened, line feed will fill next sequence number automatically.
For another example, in one embodiment, it can also determine that all content of text are in the target for need to carry out format editor Hold, for example, global format setting interface can be arranged on format editing area.It is connect when detecting for global format's setting When operation is arranged in the format of mouth, operation acquisition format text edit instruction is arranged based on format and determines current all content of text As the target text content for needing to carry out format setting, determine that content of text input is corresponding according to format text edit instruction Text editing format carries out format if it is to all content of text based on determining text editing.For example, text editing lattice Formula may include that sequence number sequence is shown, at this point it is possible to which sequence number is arranged to content of text, for example each paragraph setting is corresponding Sequence number etc..
In the embodiment of the present invention, the source of content of text can input for user, as user passes through input program input text This content, in addition, text content can also originate from other text files, as user copies other application (memorandum) The content of text of content of text, the copy can be format text content etc..
In practical applications, it if be format text content by the content of text that copy mode inputs, needs to identify Text content and its text formatting out, since traditional instant messaging application does not have format identification function, will lead to Format is lost.
In order to avoid format is lost, the embodiment of the present invention can identify format text content by format text editing machine; That is, step " receiving content of text input by the format text editing machine ", may include:
It is parsed, is obtained in unprocessed form text by format text content of the format text editing machine to input Appearance and corresponding unprocessed form information;
The unprocessed form is shown in the Edition Contains region of the text editor according to the unprocessed form information Content of text.
Wherein, format text content can be the format text content of current copy, for example, when receiving copy or duplication When instruction, format text content is obtained from duplication storage unit according to the duplicate instructions and then passes through format text editing machine The format text content got is parsed.
Format text in other application is copied in user using the program and pastes chat input frame (i.e. editing area) When, system can retain corresponding text formatting after identifying rich text format character, prevent format from losing.
204, formatted text message is generated according to content of text and its corresponding text formatting information, formatted text message is taken Band content of text and its corresponding format information.
In one embodiment, formatted text message can also carry recipient's user identifier, so as to by formatted text message After being sent to server, server can forward that message to the corresponding receiving side terminal of recipient's user identifier.
For example, when receiving interacting message determine instruction, it is raw according to content of text and its corresponding text formatting information At formatted text message;Namely after the completion of content of text and format editor, formatted text message is generated.
Wherein, interacting message determine instruction can have the triggering of interacting message interface, for example, with reference to Fig. 2 d, in editing area The arrow button of rightmost is interacting message interface, and when the user clicks when the arrow button, it is true can to trigger interacting message Fixed instruction.
Wherein, formatted text message is relative to conventional message such as instant communication information, it is also necessary to carry the lattice of content of text Formula.
When formatted text message is rich text message, format information may include: the rich text format character of content of text. For example, including the rich text format character of each paragraph.
Wherein, recipient's user identifier can be the instant messaging account etc. of recipient.
In order to enrich message content, the multiplicity of message content is promoted, image and content of text can be sent to recipient, Namely method for message interaction of the present invention can support image and text shuffling mode.For example, in one embodiment, message approach is also Include:
When receiving image inserting instruction, the thumbnail image being inserted into is determined according to image inserting instruction;
The corresponding original image of thumbnail image is uploaded to server, and downloads the chained address of original image from server;
Display thumbnail image is inserted into content editing area by format text editing machine.
For example, the corresponding original image of thumbnail image can be uploaded to server when receiving image uploading instructions, and From the chained address of server downloading original image.
At this point, step " generating formatted text message according to content of text and its corresponding text formatting information ", can wrap It includes:
Formatted text message is generated according to chained address, thumbnail image, content of text and its corresponding text formatting, In, formatted text message also carries chained address and thumbnail.
Wherein, image inserting instruction can be inserted into interface triggering by image, and image insertion interface can be located at format In editing area, the form of expression of the interface can be the forms such as icon, button, input frame.
Wherein, it is determined according to image inserting instruction there are many modes of image being inserted into, for example, can be from being locally stored Then the middle thumbnail for obtaining multiple candidate images determines the thumbnail image being inserted into based on the storage time of candidate image, The thumbnail image of the nearest image of storage time is such as chosen as the thumbnail image being inserted into.
For another example, it can also select depending on the user's operation, for example, can be according to image inserting instruction in interacting message Interface display image selection region, image selection region include the thumbnail of multiple candidate images, then, according to user for figure As the selection operation of selection region chooses the thumbnail image being inserted into.
For example, can be the corresponding selection control of each thumbnail image setting in image selection region, it be directed to based on user Select the operation of control to determine the thumbnail image being inserted into.
For another example, image shot by camera can also be called then will to shoot the thumbnail of image according to image inserting instruction As the thumbnail image being inserted into.
It for example, can be according to image inserting instruction in interacting message interface display image selection region, image selection region Thumbnail and camera calling interface including multiple candidate images;When detecting the shooting operation for camera calling interface When, camera can be called to carry out image taking, then, generate the thumbnail of shooting image and as the thumbnail being inserted into Picture.
For example, after entering format text edit pattern, user can first click the subtitles button with reference to Fig. 2 f " H1 " can obtain corresponding format text according to the operation and compile at this point, terminal detects when clicking subtitles button " H1 " operation Instruction (such as mark format edit instruction) is collected, then, user inputs content of text such as in the editing area of format text editing machine " PDM meeting summary ", at this point, terminal can determine content of text input according to the format text edit instruction got in advance Text editing format (such as title highlights lamp) sets title for content of text " PDM meeting summary " and highlights format, And it is shown in editing area.
After input " PDM meeting summary ", picture insertion button triggering image inserting instruction can also be clicked, at this point, Terminal can be according to the instruction from the local thumbnail image for obtaining multiple candidate images, and shows image selection region, such as from phase Multiple candidate images are obtained in volume, and generate the thumbnail image of multiple candidate images, show thumbnail in image selection region Picture;User can select corresponding thumbnail image (thumbnail as selected image B) by selection control (such as tick boxes).When with Triggering image uploading instructions when " determinations " button is clicked at family, at this point, can to upload the thumbnail image to server corresponding for terminal Image such as image B, and the chained address for selecting image B is downloaded from server, through format text editing machine in editing area The thumbnail of middle insertion display image B.
In addition, image selection region can be with camera calling interface, i.e. camera button in figure;When detect for camera by When the clicking operation of button, camera can be called to carry out image taking, then, the thumbnail of generation shooting image, and as The thumbnail image being inserted into.
In order to promote the reliability of image transmission/reception, the embodiment of the present invention can also be shown during chained address is downloaded Show placeholder, when the download is completed, placeholder is replaced with into thumbnail.That is, step is " by format text editing machine in content Insertion shows thumbnail in editing area ", may include:
During from server download link address, it is inserted into content editing area by format text editing machine Show placeholder;
When chained address is completed, placeholder is replaced with by thumbnail image by format text editing machine.
For example, after user clicks picture insertion button triggering image inserting instruction, being compiled by format text with reference to Fig. 2 f It collects device and is inserted into display placeholder in content editing area;Display below as shown in the second width figure in Fig. 2 f " PDM meeting summary " Placeholder (form of expression is blank line) triggers image uploading instructions when the user clicks when " determination " button, at this point, terminal can be with The corresponding image of the thumbnail image such as image B is uploaded to server, and downloads the chained address of selection image B from server, when The placeholder shown below " PDM meeting summary " is replaced with to the thumbnail of image B when downloading is completed.
In one embodiment, to avoid losing format when showing message content using bubble, the method for the present invention can be with Include:
Obtain formatted text message bubble;
According to the format information of content of text in formatted text message bubble embedded text content;
Formatted text message bubble after interacting message interface display embedded text content.
Wherein, formatted text message bubble is different from conventional message bubble, which can support text This format.
For example, with reference to Fig. 2 g, after editing area editor complete content of text and format of the user in editing machine, can click It is interacting message interface in the arrow button of editing area rightmost, when the user clicks when the arrow button, can triggers Interacting message determine instruction;At this point it is possible to the available formatted text message bubble of terminal;According to the format information of content of text The embedded text content in formatted text message bubble;Formatted text message after showing embedded text content in chat window Bubble.
In one embodiment, for the ease of format editor, a global format can also be set on interacting message interface and set Set interface.When detecting the format setting operation for global format's setting interface, determine that current all content of text are made For the target text content for needing to carry out format setting, and reception format text edit instruction, according to format text, editor refers to It enables and determines the corresponding text editing format of target text content, then, based on determining text editing format to all texts Content carries out format editor.For example, text editing format may include sequence number sequence display format, at this point it is possible to text Corresponding sequence number etc. is arranged in curriculum offering sequence number, for example each paragraph.
For example, with reference to Fig. 2 h, it, can be aobvious at interacting message interface after user inputs content of text in message input frame Show that the interface i.e. Format Painter button on the input frame left side, when the user clicks when the Format Painter button, triggering form is arranged in global format Text editing instruction, then, determines the corresponding text editing format of content of text, and call format text editing according to the instruction Device carries out format editor, such as sequence number sequence display format based on content of text of the determining text editing format to input (specifically, corresponding sequence number format can be arranged to each paragraph, be not provided with sequence number lattice in the paragraph where spcial character Formula), in the edited content of text of editing area display format of format text editing machine.
205, the formatted text message is sent to receiving side terminal.
For example, formatted text message can be sent to server, so that server connects to recipient's user identifier is corresponding Debit's terminal forwards formatted text message.
Disappear for example, agreement such as rich text transport protocol can be passed to based on format text and send format text to server Breath.
For another example, in one embodiment, the formatted text message directly can also be sent to receiving side terminal.
206, in receiving side terminal according to format information display text content.
For example, receiving side terminal can parse formatted text message, such as by format text editing machine to format Text message is parsed, and content of text and its corresponding format information are obtained, and then, shows the text according to the format information Content.
In one embodiment, to avoid losing format when recipient and sender show message content using bubble, this Inventive method can be forwarded the bubble by server to the formatted text message bubble after server transmission embedded text content To receiving side terminal.Receiving side terminal can be shown after receiving the bubble directly in interacting message interface.
From the foregoing, it will be observed that the embodiment of the present invention is inputted using content of text is received, and related pattern is inputted with content of text Text editing instruction;Text editing format corresponding with content of text input is determined according to format text edit instruction;According to lattice The text formatting of the determining text editing format editor's content of text of formula text editing instruction;According to content of text and its corresponding Text formatting information generates formatted text message, and formatted text message carries content of text and its corresponding format information;To connecing Debit's terminal sends formatted text message;In receiving side terminal according to format information display text content.The program can be direct (such as call format editing machine is edited) is edited to the text formatting of the content of text of message to be sent, without in document Ceaselessly switch and replicate stickup between editor's application and instant messaging application, improves the editorial efficiency of message content.
In addition, the program can be edited by text formatting of the format text editor to content of text, due to format The text formatting of content of text can be supported and be identified to text editor, and the text formatting for avoiding content of text is lost, and be promoted The accuracy that message content is sent.
Based on the description above, method for message interaction of the invention will be described further below.
In one embodiment, method for message interaction provided by the invention is introduced with system shown in FIG. 1.
Wherein, terminal 11 is used as interacting message terminal in Fig. 1, and terminal 14 is used as message sink terminal.
With reference to Fig. 3, a kind of method for message interaction, detailed process is as follows:
301, message sends terminal and receives format text editor open command.
For example, showing " Aa " icon on interacting message interface with reference to Fig. 2 b, should just be touched when " Aa " icon when the user clicks Format text editor's open command occurs into, at this point, the interacting message device of the embodiment of the present invention receives the instruction.
302, message sends terminal and opens format text editing machine according to format text editor's open command, in current message The corresponding Edition Contains region of display format text editor and format editing area in interactive interface.
Wherein, format text editing machine is the text editor for supporting text formatting editor, identification, for example, rich text is compiled Collect device (Rich Text Editor, RTE) etc..
Wherein, format text editing machine can be embedded in application, such as be embedded in instant messaging application, so that user edits Content of text and text formatting etc..
Wherein, Edition Contains region and the input frame of traditional instant messaging application are different, although the two shows shape Formula is somewhat similar, still, essence it is different, one be format text editing machine editing area, another is only one defeated Incoming interface.
Wherein, format editing area includes multiple format edition interfaces;The form of expression of format edition interface is a variety of, than Such as, the forms such as input frame, icon, button.
Format editing area is formative implement column in practical application, which uses the side of lateral extension Formula, theoretically formative implement column region unconfined can extend, and being no more than three screens on user experience as far as possible is most suitable prolong Open up the upper limit.
For example, " Aa " icon is shown on interacting message interface with reference to Fig. 2 b and Fig. 2 c, it when the user clicks should " Aa " icon When just triggering generate format text editor open command, at this point, terminal opens format text editing machine according to the instruction, and disappearing Cease the corresponding Edition Contains region 21 of display format text editor and 22 (i.e. formative implement of format editing area on interactive interface Column), wherein format editing area 22 includes multiple format Edit buttons, and subtitles button " H1 ", font-weight button is such as arranged " B ", underscore button " U ", strikethrough button " S ", sequence number button etc..User can click corresponding format Edit button Carry out corresponding format editor.
303, message sends terminal and receives content of text input by format text editing machine, and inputs with content of text Relevant format text edit instruction.
Wherein, format text edit instruction can set automatically for system triggers, for example, system section at regular intervals Trigger corresponding format text edit instruction.In addition, the format text edit instruction may be to be triggered based on user's operation.
For example, in one embodiment, it, can also be at current interface such as interacting message interface for the ease of editing text formatting The format editing area of middle setting format text editing machine, format editing area includes format edition interface;User can pass through Format edition interface triggering form text editing instruction, edits the text formatting of content of text.
For example, can be based on the format edit operation for the format edition interface detected, in acquisition and text Hold and inputs relevant format text edit instruction.
In the embodiment of the present invention, the source of content of text can input for user oneself, as user is defeated by input program Enter content of text, in addition, text content can also originate from other text files, as user copies other application (memorandum Deng) content of text, the content of text of the copy can be format text content etc..
For example, with reference to Fig. 2 d, when user inputs content of text such as " PDM meeting in the editing area of format text editing machine After summary ", user can be to text Edition Contains format, if be set as title, user can click the subtitles button " H1 " can obtain corresponding format text according to the operation and compile at this point, terminal detects when clicking subtitles button " H1 " operation Instruction (such as header format edit instruction) is collected, it is then, corresponding with content of text input according to format text edit instruction determination Text editing format be " title highlights ", at this point, by content of text " PDM meeting summary " to set title prominent for terminal Display format, and shown in editing area.
In one embodiment, it when content of text is from other text files, needs through format text editing machine pair Format text content is parsed, and unprocessed form content of text and corresponding unprocessed form information are obtained;According to unprocessed form Information shows raw text content in the Edition Contains region of format text editing machine.
Wherein, format text content can be the format text content of current copy, for example, when receiving copy or duplication When instruction, format text content is obtained from duplication storage unit according to the duplicate instructions and then passes through format text editing machine The format text content got is parsed.
304, message sends terminal and determines text corresponding with content of text input according to the format text edit instruction Edit format.
Wherein, text editing format may include: title highlights, font-weight is shown, sequence number sequence display, under Scribing line highlights, strikethrough shows etc. format.
For example, just triggering corresponding format text editor with reference to Fig. 2 c when subtitles button " H1 " being arranged when the user clicks and referring to It enables, terminal can determine that text editing format corresponding with text input is that title is prominent aobvious according to the format text edit instruction Show.If terminal can identify the instruction, text editing format corresponding with text input is determined.
305, message sends terminal according to the determining text editing format editor's content of text of format text edit instruction Text formatting, and the edited content of text of display format in content editing area.
Wherein, the content of text that content of text can input.
In one embodiment, text editing format can be set by the text formatting of content of text.
, can be by format text editing machine in the embodiment of the present invention, the text determined according to format text edit instruction The text formatting of edit format editor's content of text.
Wherein, the edit operation of text formatting may include the edit operation of text formatting, the removal of text formatting operation Etc..
Wherein, text formatting may include: that title highlights, underlines display, font-weight highlights etc.. Text formatting can be set according to actual needs.
For example, with reference to Fig. 2 d, when user inputs content of text such as " PDM meeting in the editing area of format text editing machine After summary ", user can be to text Edition Contains format, if be set as title, user can click the subtitles button " H1 " can obtain corresponding format text according to the operation and compile at this point, terminal detects when clicking subtitles button " H1 " operation Instruction (such as header format edit instruction) is collected, it is then, corresponding with content of text input according to format text edit instruction determination Text editing format be " title highlights ", at this point, by content of text " PDM meeting summary " to set title prominent for terminal Display format, and shown in editing area.
306, message sends terminal and generates formatted text message, lattice according to content of text and its corresponding text formatting information Formula text message carries recipient's user identifier, content of text and its corresponding format information.
For example, when receiving message transmission determine instruction, it is raw according to content of text and its corresponding text formatting information At formatted text message;Namely after the completion of content of text and format editor, formatted text message is generated.
Wherein, message, which sends determine instruction, can the triggering of message transmission interface, for example, with reference to Fig. 2 d, in editing area The arrow button of rightmost is message transmission interface, when the user clicks when the arrow button, can trigger message and send really Fixed instruction.
Wherein, formatted text message is relative to conventional message such as instant communication information, it is also necessary to carry the lattice of content of text Formula.
When formatted text message is rich text message, format information may include: the rich text format character of content of text. For example, including the rich text format character of each paragraph.
In order to enrich message content, the multiplicity of message content is promoted, image and content of text can be sent to recipient, Namely message method of the present invention can support image and text shuffling mode.
When receiving image inserting instruction, the thumbnail image being inserted into is determined according to image inserting instruction;
The corresponding original image of thumbnail image is uploaded to server, and downloads the chained address of original image from server;
Display thumbnail image is inserted into content editing area by format text editing machine.
At this point, message transmission terminal can be according to chained address, thumbnail image, content of text and its corresponding text formatting Generate formatted text message, wherein formatted text message also carries chained address and thumbnail.
Wherein, image inserting instruction can be inserted into interface triggering by image, and image insertion interface can be located at format In editing area, the form of expression of the interface can be the forms such as icon, button, input frame.
Wherein, it is determined according to image inserting instruction there are many modes of image being inserted into, for example, can be from being locally stored Then the middle thumbnail for obtaining multiple candidate images determines the thumbnail image being inserted into based on the storage time of candidate image, The thumbnail image of the nearest image of storage time is such as chosen as the thumbnail image being inserted into.
For another example, it can also select depending on the user's operation, for example, can be according to image inserting instruction in interacting message Interface display image selection region, image selection region include the thumbnail of multiple candidate images, then, according to user for figure As the selection operation of selection region chooses the thumbnail image being inserted into.
For example, can be the corresponding selection control of each thumbnail image setting in image selection region, it be directed to based on user Select the operation of control to determine the thumbnail image being inserted into.
For example, after entering format text edit pattern, user can first click the subtitles button with reference to Fig. 2 f " H1 " can obtain corresponding format setting letter at this point, terminal detects when clicking subtitles button " H1 " operation according to the operation It ceases (such as header format setting information), then, user inputs content of text such as " PDM in the editing area of format text editing machine Meeting summary ", at this point, terminal can be according to the format setting information (such as header format setting information) got in advance by text Content " PDM meeting summary " is set as header format, and shows in editing area.
After input " PDM meeting summary ", picture insertion button triggering image inserting instruction can also be clicked, at this point, Terminal can be according to the instruction from the local thumbnail image for obtaining multiple candidate images, and shows image selection region, such as from phase Multiple candidate images are obtained in volume, and generate the thumbnail image of multiple candidate images, show thumbnail in image selection region Picture;User can select corresponding thumbnail image (thumbnail as selected image B) by selection control (such as tick boxes).When with Triggering image uploading instructions when " determinations " button is clicked at family, at this point, can to upload the thumbnail image to server corresponding for terminal Image such as image B, and the chained address for selecting image B is downloaded from server, through format text editing machine in editing area The thumbnail of middle insertion display image B.
307, message sends terminal to server and sends formatted text message.
Disappear for example, agreement such as rich text transport protocol can be passed to based on format text and send format text to server Breath.
In one embodiment, to avoid losing format when recipient and sender show message content using bubble, this Inventive method can be forwarded the bubble by server to the formatted text message bubble after server transmission embedded text content To receiving side terminal.Receiving side terminal can be shown after receiving the bubble directly in interacting message interface.
For example, message sends the available formatted text message bubble of terminal;
According to the format information of content of text in formatted text message bubble embedded text content;At interacting message interface Formatted text message bubble after showing embedded text content, and formatted text message bubble is sent to server.
308, server sends formatted text message to message sink terminal.
309, message sink terminal can parse formatted text message with call format text editor, obtain text Content and its corresponding text formatting information.
In one embodiment, when message content includes content of text, image chained address, thumbnail image, at this point, message Receiving terminal can parse to obtain content of text and its corresponding text formatting information, image chained address, thumbnail image.
310, message sink terminal shows content of text according to text formatting information.
In one embodiment, message sink terminal can according to text formatting information in message bubble to content of text into Row display, and thumbnail image is shown in message bubble.
In addition, the corresponding original image of thumbnail image can also be downloaded to server when image chained address is triggered, And show the original image.
More than, by taking the message of transmission is formatted text message as an example, disappear when message sink terminal receives the format text It needs to parse formatted text message by format text editing machine when breath, then, display.
However, when the message of transmission is formatted text message bubble, then when message sink terminal receives the format When text message bubble, it need to only directly display, need not move through parsing.
From the foregoing, it will be observed that scheme provided in an embodiment of the present invention can be by format text editing machine come to message to be sent Content of text and its text formatting edited, since the text of content of text can be supported and be identified to format text editing machine Format, the text formatting for avoiding content of text are lost, and the accuracy of message content transmission is improved;And the program can be straight The format of the content of text of call format text editor message to be sent is connect, without in documents editing application and Instant Messenger Ceaselessly switch and replicate stickup between news application, improves the editorial efficiency of message content.
Further, format text editing machine can be embedded in IM application and realize in IM chat window by the program, Format text editing machine can be used, user is allow to carry out format setting abundant to text, the secondary letter of weight is clearly distinguished Relevance between breath and information.In addition, when user copies notes or memorandum etc. by the lattice of webpage editor editor Its original format will not be lost when formula text.And also support user's insert pictures in the text, figure can also be sent at the terminal The message of literary mixing improves the interest of message.
For the ease of better implementation method for message interaction provided in an embodiment of the present invention, additionally provide in one embodiment A kind of interacting message device.Wherein the meaning of noun is identical with above-mentioned method for message interaction, and specific implementation details can be with With reference to the explanation in embodiment of the method.
In one embodiment, a kind of interacting message device is additionally provided, as shown in fig. 4 a, which can wrap It includes: receiving unit 401, format determination unit 402, edit cell 403, generation unit 404 and transmission unit 405, as follows:
Receiving unit 401, for receiving content of text input, and format text editor relevant to content of text input Instruction;
Format determination unit 402, for corresponding with content of text input according to format text edit instruction determination Text editing format;
Edit cell 403, for according to the determining text editing format editor's content of text of format text edit instruction Text formatting;
Generation unit 404 disappears for generating format text according to the content of text and its corresponding text formatting information Breath, the formatted text message carry the content of text and its corresponding format information;
Transmission unit 405, for sending the formatted text message to receiving side terminal, so as in the receiving side terminal The content of text is shown according to the format information.
In some embodiments, with reference to Fig. 4 b, wherein receiving unit 401 is used for:
Format text editing machine is opened, and shows the corresponding Edition Contains of the format text editing machine in current interface Region;
Content of text input, and format relevant to content of text input text are received by the format text editing machine This edit instruction;
The edit cell 403, for according in the determining text editing format editor's text of format text edit instruction The text formatting of appearance, and the edited content of text of display format in the Edition Contains region.
In some embodiments, with reference to Fig. 4 b, interacting message device can also include:
Image determination unit 406, is used for: when receiving image inserting instruction, being determined according to described image inserting instruction The thumbnail image being inserted into;
Download unit 407, for uploading the corresponding original image of the thumbnail image to the server, and from server Download the chained address of the original image;
It is inserted into display unit 408, for being inserted into display institute in content editing area by the format text editing machine State thumbnail image;
At this point, the generation unit 404, for according to the chained address, the thumbnail image, the content of text and Its corresponding text formatting generates formatted text message, wherein the formatted text message also carry the chained address and The thumbnail.
In some embodiments, it is inserted into display unit 408, can be specifically used for:
During downloading the chained address from server, by the format text editing machine in content editing area Insertion display placeholder in domain;
When the chained address is completed, the placeholder is replaced with by the breviary by the format text editing machine Image.
In some embodiments, transmission unit 405 can be also used for:
Obtain formatted text message bubble;
The content of text is embedded in the formatted text message bubble according to the format information of the content of text;
Formatted text message bubble after interacting message interface display embedded text content.
Wherein, the text formatting includes: that title highlights, font-weight is shown, the display of sequence number sequence, underscore It highlights, at least one of picture and text mixing.
When it is implemented, above each unit can be used as independent entity to realize, any combination can also be carried out, is made It is realized for same or several entities, the specific implementation of above each unit can be found in the embodiment of the method for front, herein not It repeats again.
The interacting message device specifically can integrate in terminal, for example be integrated in the terminal in the form of client, the end End can be the equipment such as mobile phone, tablet computer.
From the foregoing, it will be observed that the interacting message device of the embodiment of the present invention, receives content of text input using receiving unit 401, And format text edit instruction relevant to content of text input;It is compiled by format determination unit 402 according to the format text It collects instruction and determines text editing format corresponding with content of text input;By edit cell 403 according to format text edit instruction The text formatting of determining text editing format editor's content of text;By generation unit 404 according to the content of text and its right The text formatting information answered generates formatted text message, and the formatted text message carries the content of text and its corresponding lattice Formula information;Send the formatted text message from transmission unit 405 to receiving side terminal, so as to the receiving side terminal according to The format information shows the content of text.The program can content of text directly to message to be sent text formatting into Edlin improves in message without ceaselessly switching and replicating stickup between documents editing application and instant messaging application The editorial efficiency of appearance.
With reference to Fig. 5, it may include one or more than one processing core that the embodiment of the invention provides a kind of terminals 500 The processor 501 of the heart, the memory 502 of one or more computer readable storage mediums, radio frequency (Radio Frequency, RF) components such as circuit 503, power supply 504, input unit 505 and display unit 506.Those skilled in the art It is appreciated that the restriction of terminal structure not structure paired terminal shown in Fig. 5, may include than illustrating more or fewer portions Part perhaps combines certain components or different component layouts.Wherein:
Processor 501 is the control centre of the terminal, using the various pieces of various interfaces and the entire terminal of connection, By running or execute the software program and/or module that are stored in memory 502, and calls and be stored in memory 502 Data, execute terminal various functions and processing data, thus to terminal carry out integral monitoring.Optionally, processor 501 can Including one or more processing cores;Preferably, processor 501 can integrate application processor and modem processor, wherein The main processing operation system of application processor, user interface and application program etc., modem processor mainly handles channel radio Letter.It is understood that above-mentioned modem processor can not also be integrated into processor 501.
Memory 502 can be used for storing software program and module, and processor 501 is stored in memory 502 by operation Software program and module, thereby executing various function application and data processing.
During RF circuit 503 can be used for receiving and sending messages, signal is sended and received.
Terminal further includes the power supply 504 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 501 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.
The terminal may also include input unit 505, which can be used for receiving the number or character letter of input Breath, and generation keyboard related with user setting and function control, mouse, operating stick, optics or trackball signal are defeated Enter.
The terminal may also include display unit 506, which can be used for showing information input by user or mention The information of user and the various graphical user interface of terminal are supplied, these graphical user interface can be by figure, text, figure Mark, video and any combination thereof are constituted.Specifically in the present embodiment, the processor 501 in terminal is understood according to following instruction, The corresponding executable file of the process of one or more application program is loaded into memory 502, and by processor 501 run the application program being stored in memory 502, thus realize various functions, it is as follows:
Content of text input is received, and is instructed with content of text input related pattern text editing;According to format text Edit instruction determines text editing format corresponding with content of text input;It is compiled according to the text that format text edit instruction determines Collect the text formatting of format editor content of text;Format text is generated according to content of text and its corresponding text formatting information to disappear Breath, formatted text message carry content of text and its corresponding format information;Formatted text message is sent to receiving side terminal, with So that in receiving side terminal according to format information display text content.
From the foregoing, it will be observed that the terminal of that embodiment of the invention can receive content of text input, and related to content of text input Format text edit instruction;Text editing format corresponding with content of text input is determined according to format text edit instruction;Root According to the text formatting for text editing format editor's content of text that format text edit instruction determines;According to content of text and its right The text formatting information answered generates formatted text message, and formatted text message carries content of text and its corresponding format information; Formatted text message is sent to receiving side terminal;In receiving side terminal according to format information display text content.The program can be with Directly the text formatting of the content of text of message to be sent is edited, without being applied and instant messaging application in documents editing Between ceaselessly switch and replicate stickup, improve the editorial efficiency of message content.
It will appreciated by the skilled person that all or part of the steps in the various methods of above-described embodiment can be with It is completed by instructing, or relevant hardware is controlled by instruction to complete, which can store computer-readable deposits in one In storage media, and is loaded and executed by processor.
For this purpose, the embodiment of the present invention provides a kind of storage medium, wherein being stored with a plurality of instruction, which can be processed Device is loaded, to execute the step in any method for message interaction provided by the embodiment of the present invention.For example, the instruction can To execute following steps:
Content of text input is received, and is instructed with content of text input related pattern text editing;According to format text Edit instruction determines text editing format corresponding with content of text input;It is compiled according to the text that format text edit instruction determines Collect the text formatting of format editor content of text;Format text is generated according to content of text and its corresponding text formatting information to disappear Breath, formatted text message carry content of text and its corresponding format information;Formatted text message is sent to receiving side terminal;? Receiving side terminal is according to format information display text content.
The specific implementation of above each operation can be found in the embodiment of front, and details are not described herein.
Wherein, which may include: read-only memory (ROM, Read Only Memory), random access memory Body (RAM, Random Access Memory), disk or CD etc..
By the instruction stored in the storage medium, any message provided by the embodiment of the present invention can be executed and handed over Step in mutual method, it is thereby achieved that achieved by any method for message interaction provided by the embodiment of the present invention Beneficial effect is detailed in the embodiment of front, and details are not described herein.
It is provided for the embodiments of the invention a kind of method for message interaction, system and storage medium above and has carried out detailed Jie It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only It is to be used to help understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to the present invention Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as Limitation of the present invention.

Claims (12)

1. a kind of method for message interaction characterized by comprising
Receive content of text input, and format text edit instruction relevant to content of text input;
Text editing format corresponding with content of text input is determined according to the format text edit instruction;
According to the text formatting for text editing format editor's content of text that format text edit instruction determines;
Formatted text message is generated according to the content of text and its corresponding text formatting information, the formatted text message is taken With the content of text and its corresponding format information;
The formatted text message is sent to receiving side terminal;
The content of text is shown according to the format information in the receiving side terminal.
2. method for message interaction as described in claim 1, which is characterized in that receive content of text input, and in text Hold and input relevant format text edit instruction, comprising:
Format text editing machine is opened, and shows the corresponding Edition Contains area of the format text editing machine in current interface Domain;
Content of text input is received by the format text editing machine, and format text relevant to content of text input is compiled Collect instruction;
According to the text formatting for text editing format editor's content of text that format text edit instruction determines, comprising:
According to the text formatting for text editing format editor's content of text that format text edit instruction determines, and in the content The edited content of text of display format in editing area.
3. method for message interaction as claimed in claim 2, which is characterized in that the current interface further includes format text editor The format editing area of device, the format editing area include format edition interface;
Content of text input is received by the format text editing machine, and format text relevant to content of text input is compiled Collect instruction, comprising:
Content of text input is received by the format text editing machine;
Based on the format edit operation for the format edition interface detected, lattice relevant to content of text input are obtained Formula text editing instruction.
4. method for message interaction as claimed in claim 2, which is characterized in that the text determined according to format text edit instruction The text formatting of edit format editor's content of text, comprising:
According to current content input position in the Edition Contains region, determination needs to carry out lattice from the content of text The target text content of formula editor;
The text formatting of target text content described in the text editing format editor determined according to format text edit instruction.
5. method for message interaction as claimed in claim 4, which is characterized in that the content of text includes at least one text Hold unit;
According to current content input position in the Edition Contains region, determination needs to carry out lattice from the content of text The target text content of formula editor, comprising:
Determine the content of text unit where the content input position;
Using the content of text unit as the target text content for needing to carry out format editor.
6. method for message interaction as claimed in claim 2, which is characterized in that receive text by the format text editing machine Content input, including
Parsed by format text content of the format text editing machine to input, obtain unprocessed form content of text with And corresponding unprocessed form information;
The unprocessed form text is shown in the Edition Contains region of the text editor according to the unprocessed form information Content.
7. method for message interaction as described in claim 1, which is characterized in that further include:
When receiving image inserting instruction, the thumbnail image being inserted into is determined according to described image inserting instruction;
The corresponding original image of the thumbnail image is uploaded to the server, and downloads the chain of the original image from server It is grounded location;
The display thumbnail image is inserted into content editing area by the format text editing machine;
Formatted text message is generated according to the content of text and its corresponding text formatting information, comprising:
Format text is generated according to the chained address, the thumbnail image, the content of text and its corresponding text formatting Message, wherein the formatted text message also carries the chained address and the thumbnail.
8. method for message interaction as claimed in claim 7, which is characterized in that compiled by the format text editing machine in content It collects insertion in region and shows the thumbnail, comprising:
During downloading the chained address from server, through the format text editing machine in content editing area Insertion display placeholder;
When the chained address is completed, the placeholder is replaced with by the thumbnail by the format text editing machine Picture.
9. method for message interaction as described in claim 1, which is characterized in that further include:
Obtain formatted text message bubble;
The content of text is embedded in the formatted text message bubble according to the format information of the content of text;
Formatted text message bubble after interacting message interface display embedded text content.
10. method for message interaction as described in claim 1, which is characterized in that the text formatting includes: that title is prominent aobvious Show, font-weight is shown, the display of sequence number sequence, underscore highlight, at least one of picture and text mixing.
11. a kind of message exchange system, which is characterized in that send terminal and message sink terminal including message;
The message sends terminal, is used for: receiving content of text input, and inputs related pattern text editing with content of text Instruction;Text editing format corresponding with content of text input is determined according to the format text edit instruction;According to format text The text formatting for text editing format editor's content of text that this edit instruction determines;According to the content of text and its corresponding Text formatting information generates formatted text message, and the formatted text message carries the content of text and its corresponding format letter Breath;The formatted text message is sent to receiving side terminal;
The reception terminal, for showing the content of text according to the format information.
12. a kind of storage medium, wherein being stored with a plurality of instruction, described instruction can be loaded by processor, to execute such as The described in any item method for message interaction of claim 1-10.
CN201810247826.6A 2018-03-23 2018-03-23 Message interaction method, system and storage medium Active CN110298021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810247826.6A CN110298021B (en) 2018-03-23 2018-03-23 Message interaction method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810247826.6A CN110298021B (en) 2018-03-23 2018-03-23 Message interaction method, system and storage medium

Publications (2)

Publication Number Publication Date
CN110298021A true CN110298021A (en) 2019-10-01
CN110298021B CN110298021B (en) 2024-02-02

Family

ID=68026195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810247826.6A Active CN110298021B (en) 2018-03-23 2018-03-23 Message interaction method, system and storage medium

Country Status (1)

Country Link
CN (1) CN110298021B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090484A (en) * 2019-12-12 2020-05-01 维沃移动通信有限公司 Information processing method and electronic equipment
CN111131000A (en) * 2019-12-24 2020-05-08 北京达佳互联信息技术有限公司 Information transmission method, device, server and terminal
CN111596917A (en) * 2020-04-27 2020-08-28 五八有限公司 Editing operation processing method and device, electronic equipment and storage medium
CN112131844A (en) * 2020-10-10 2020-12-25 北京字跳网络技术有限公司 Online document editing method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030090401A (en) * 2002-05-23 2003-11-28 삼성전자주식회사 Method for transmitting color massage in a mobile communication terminal equipment
CN103457825A (en) * 2012-05-31 2013-12-18 华为技术有限公司 Method, device and system for achieving instant message communication
CN106294874A (en) * 2016-08-24 2017-01-04 北京奇虎科技有限公司 Carry out the method and apparatus of picture and text mixing, immediate communication device in instant messaging
US20170286366A1 (en) * 2016-03-31 2017-10-05 Google Inc. Smart variable expressive text or graphics for electronic communications
CN107656941A (en) * 2016-07-26 2018-02-02 阿里巴巴集团控股有限公司 Document analysis method, apparatus and editor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030090401A (en) * 2002-05-23 2003-11-28 삼성전자주식회사 Method for transmitting color massage in a mobile communication terminal equipment
CN103457825A (en) * 2012-05-31 2013-12-18 华为技术有限公司 Method, device and system for achieving instant message communication
US20170286366A1 (en) * 2016-03-31 2017-10-05 Google Inc. Smart variable expressive text or graphics for electronic communications
CN107656941A (en) * 2016-07-26 2018-02-02 阿里巴巴集团控股有限公司 Document analysis method, apparatus and editor
CN106294874A (en) * 2016-08-24 2017-01-04 北京奇虎科技有限公司 Carry out the method and apparatus of picture and text mixing, immediate communication device in instant messaging

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李世勇: "JMF的视频聊天系统的开发与实现", no. 1, pages 36 - 42 *
郑明琛,高学东: "《农村干部实用计算机教程》", 中国环境科学出版社, pages: 302 - 315 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090484A (en) * 2019-12-12 2020-05-01 维沃移动通信有限公司 Information processing method and electronic equipment
CN111131000A (en) * 2019-12-24 2020-05-08 北京达佳互联信息技术有限公司 Information transmission method, device, server and terminal
CN111596917A (en) * 2020-04-27 2020-08-28 五八有限公司 Editing operation processing method and device, electronic equipment and storage medium
CN111596917B (en) * 2020-04-27 2021-08-20 五八有限公司 Editing operation processing method and device, electronic equipment and storage medium
CN112131844A (en) * 2020-10-10 2020-12-25 北京字跳网络技术有限公司 Online document editing method and device and electronic equipment

Also Published As

Publication number Publication date
CN110298021B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN110298021A (en) A kind of method for message interaction, system and storage medium
KR101620050B1 (en) Display method of scenario emoticon using instant message service and user device therefor
CN104516892B (en) It is associated with dissemination method, system and the terminal of the user-generated content of rich media information
CN103064584B (en) Method of attaching and device
US20120117176A1 (en) Method, System And Mobile Terminal For Processing Short Message
CN109918345A (en) Document processing method, device, terminal and storage medium
CN102368196A (en) Method, terminal and system for editing dynamical picture in content sending window of client side
CN105282013A (en) Item message notification method, device and system
CN102426568A (en) Instant messaging text information picture editing method, client and system
CN103440247A (en) Method and device for sending photos
US20220342518A1 (en) Card-based information management method and system
CN106681698B (en) Dynamic list generation method and device
CN106331869A (en) Video-based picture re-editing method and device
CN104660635A (en) Message synchronizing method, device and system
CN104123383A (en) Method and device used in media application
CN109474512B (en) Background updating method for instant messaging, terminal equipment and storage medium
KR20160136837A (en) Method, system and recording medium for providing content in messenger
US10180776B2 (en) Image grouping with audio commentaries system and method
CN108984071A (en) Text recombination method, device, terminal device and computer readable storage medium
US20120331060A1 (en) Sharing of Documents with Semantic Adaptation Across Mobile Devices
CN112163104B (en) Method, device, electronic equipment and storage medium for searching target content
CN107800792A (en) The method that a kind of android pictures or video are uploaded onto the server
CN109547321B (en) Background updating device for instant messaging and terminal equipment
CN108614656B (en) Information processing method, medium, device and computing equipment
CN109151568A (en) Method for processing video frequency and Related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant