File editing method, terminal, electronic device and storage medium

By introducing a first editing component integrating multiple application editing functions into the electronic device, the problem of low file editing efficiency in the prior art is solved, and a more efficient file editing operation is achieved.

WO2025055860A1PCT designated stage expired Publication Date: 2025-03-20VIVO MOBILE COMM CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/117783
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-15
Filing Date
2024-09-09
Publication Date
2025-03-20

AI Technical Summary

Technical Problem

In the prior art, users need to gradually complete file editing tasks through multiple file applications, resulting in low editing efficiency and cumbersome operation.

Method used

A file editing method is provided. By displaying a first editing component integrating multiple application editing function icons in an electronic device, a user can select and execute multiple editing functions in one interface to directly edit the file.

Benefits of technology

By integrating the first editing component of multiple editing functions, users can complete multiple editing operations in one interface, significantly improving the efficiency of file editing and shortening the time for users to edit files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024117783_20032025_PF_FP_ABST
    Figure CN2024117783_20032025_PF_FP_ABST
Patent Text Reader

Abstract

The present application belongs to the technical field of electronics. Disclosed are a file editing method, a terminal, an electronic device and a storage medium. The method comprises: when a first editing component is displayed, receiving a first input of a user on an editing function icon on the first editing component, the first editing component comprising at least two editing function icons of at least two application programs; and in response to the first input, executing, on a first file, file editing processing indicated by the editing function icon selected by the first input.
Need to check novelty before this filing date? Find Prior Art

Description

File editing method, terminal, electronic device and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on September 15, 2023, with application number 202311199687.1 and invention name “File editing method, terminal, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application belongs to the field of electronic technology, and specifically relates to a file editing method, terminal, electronic device and storage medium. Background Art

[0003] Currently, users can edit files through electronic devices. In related technologies, electronic devices can edit files through file applications. Typically, in a file application, such as an email application, after the electronic device obtains a file based on user input, it can edit the file using the editing function of the email application, thereby obtaining the edited file.

[0004] However, since the electronic device may need to edit the file across multiple applications, the electronic device needs to edit the file through different file applications to obtain the file required by the user, which results in poor editing efficiency.

[0005] For example, suppose a user needs to annotate and print the text in a file. If application 1 includes an annotation function and application 2 includes a print function, the electronic device needs to save the annotated text after annotating the text in application 1, then exit application 1, and then input the annotated text into application 2 to execute the print function, resulting in the electronic device editing file process being cumbersome and time-consuming.

[0006] Summary of the Invention

[0007] The purpose of the embodiments of the present application is to provide a file editing method, terminal, electronic device and storage medium, which can effectively improve the efficiency of file editing and shorten the time users spend editing files.

[0008] In a first aspect, an embodiment of the present application provides a file editing method, which includes: while displaying a first editing component, receiving a first input from a user on an editing function icon on the first editing component, wherein the first editing component includes at least two editing function icons of at least two applications; in response to the first input, performing file editing processing indicated by the editing function icon selected by the first input on the first file.

[0009] In a second aspect, embodiments of the present application provide a terminal comprising: a receiving module and a processing module. The receiving module is configured to receive, while displaying a first editing component, a first user input for an editing function icon on the first editing component, wherein the first editing component includes at least two editing function icons for at least two applications. The processing module is configured to, in response to the first input received by the receiving module, perform file editing processing on a first file as indicated by the editing function icon selected by the first input.

[0010] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0011] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0012] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.

[0013] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.

[0014] In some embodiments of the present application, the electronic device may display a first editing component, which includes at least two editing function icons of at least two applications. The electronic device may perform file editing processing indicated by the editing function icon selected by the first input on the first file based on the user's first input to an editing function icon on the first editing component. In this solution, since the first editing component can integrate function icons of multiple file editing functions in multiple applications, when the electronic device edits the first file, since the first editing component integrates the editing functions indicated by the function icons of multiple editing functions of at least two applications, the first editing component has editing function icons of different programs. Therefore, the editing function of the first editing component is more powerful than the editing function of any single application. By editing the first file with the first editing component having more powerful editing functions, the user can avoid opening the same file through multiple applications to perform tedious program switching and file editing operations, thereby effectively improving the efficiency of file editing and shortening the time users spend editing files. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] FIG1 is a flowchart of a file editing method provided by some embodiments of the present application;

[0016] FIG2A is a schematic diagram of an example interface displayed by a file editing component provided in some embodiments of the present application;

[0017] FIG2B is a schematic diagram illustrating an example interface for displaying an editing function icon added to a file editing component according to some embodiments of the present application;

[0018] FIG2C is a schematic diagram illustrating an example interface for displaying an editing function icon added to a file editing component according to some embodiments of the present application;

[0019] FIG3A is a schematic diagram illustrating an example interface for displaying an editing function icon added to a file editing component according to some embodiments of the present application;

[0020] FIG3B is a schematic diagram illustrating an example interface for displaying an editing function icon added to a file editing component provided by some embodiments of the present application;

[0021] FIG4 is a schematic diagram of an example interface for displaying an editing function icon added to a file editing component provided by some embodiments of the present application;

[0022] FIG5 is a schematic diagram of an example interface for displaying an editing function icon added to a file editing component provided by some embodiments of the present application;

[0023] FIG6A is a schematic diagram illustrating an example interface of a file editing component for deleting an editing function icon according to some embodiments of the present application;

[0024] FIG6B is a schematic diagram illustrating an example interface of a file editing component for deleting an editing function icon according to some embodiments of the present application;

[0025] FIG7A is a schematic diagram illustrating an example interface for displaying an editing function icon added to a file editing component according to some embodiments of the present application;

[0026] FIG7B is a schematic diagram illustrating an example interface for displaying an editing function icon added to a file editing component according to some embodiments of the present application;

[0027] FIG8A is a schematic diagram illustrating an example interface for displaying an editing function icon added to a file editing component according to some embodiments of the present application;

[0028] FIG8B is a schematic diagram illustrating an example interface for displaying an editing function icon added to a file editing component according to some embodiments of the present application;

[0029] FIG8C is a schematic diagram illustrating an example interface for displaying an editing function icon added to a file editing component according to some embodiments of the present application;

[0030] FIG9A is a schematic diagram illustrating an example interface for displaying an editing function icon added to a file editing component according to some embodiments of the present application;

[0031] FIG9B is a schematic diagram illustrating an example interface for displaying an editing function icon added to a file editing component according to some embodiments of the present application;

[0032] FIG10A is a schematic diagram of an example of an email editing interface provided by some embodiments of the present application;

[0033] FIG10B is a schematic diagram of an example of an email editing interface provided by some embodiments of the present application;

[0034] FIG11 is a schematic diagram of an example of an email editing interface provided by some embodiments of the present application;

[0035] FIG12 is a schematic structural diagram of a terminal provided in some embodiments of the present application;

[0036] FIG13 is a schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present application;

[0037] FIG14 is a schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION

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

[0039] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0040] The terms "at least one (item)", "at least one of" and the like in the specification and claims of this application refer to any one, any two or a combination of more than two of the objects contained therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. The multiple is at least two. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)". The logo in this application is text, symbol, image, etc. used to indicate information, and controls or other containers can be used as carriers for displaying information, including but not limited to text logos, symbol logos, and image logos.

[0041] The following describes in detail the file editing method, device, electronic device, and storage medium provided by the embodiments of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0042] The file editing method, terminal, electronic device and storage medium provided in this application can be specifically applied in text editing scenarios, image editing scenarios and video editing scenarios.

[0043] With the development of electronic devices, their functions are also increasing. For example, electronic devices can edit files such as text, images, and videos to obtain edited files. In related technologies, after a file application in an electronic device obtains a file, the electronic device can edit the file based on user needs using the editing functions included in the file application to obtain the edited file.

[0044] For example, the instant text application has a printing function, the email application has a text editing function, and the atomic note has an annotation function. When the user needs to annotate the text and print the edited text, the electronic device needs to edit the text through the email application, then run the atomic note application to annotate the edited text, and then run the instant text application to print the annotated text. However, due to the high independence between the various office software in the electronic device, and the emphasis of the editing functions between the various office software is different. For example, if the user needs to enter text in an email and wants to annotate the text and then print it, the electronic device needs to enter the text in the electronic device email into the atomic note, then add annotations, and after adding annotations, enter the annotated text into the instant text to print the edited text. The entire editing process is cumbersome and time-consuming. Moreover, if a rich editing function is added in different office software, it will not only increase the workload of developers, but may also lead to an increase in the size of the software that comes with the electronic device.

[0045] In the file editing method, terminal, electronic device and storage medium provided by the present application, since the first editing component integrates the editing functions indicated by the function icons of multiple editing functions of at least two applications, for example, the first editing component also has the printing function icon of the instant text application, the text editing function icon of the email application and the adding annotation function icon of the atomic note, the user can mark the text to be edited by operating the text editing function icon on the first editing component, and then add annotations by operating the adding annotation function icon on the first editing component, and finally operate the printing function icon on the first editing component to realize the printing of the text after editing with the annotations. The user can complete the three operations of editing, adding annotations and printing the text through the first editing component without opening multiple programs, avoiding jumping between multiple different program interfaces. Since the first editing component has editing function icons of different programs, the editing function of the first editing component is more powerful than the editing function of any single application. Editing the first file through the first editing component with more powerful editing function can avoid the user opening the same file through multiple applications to perform tedious program switching and file editing operations, thereby effectively improving the efficiency of file editing and shortening the time users spend editing files.

[0046] The execution subject of the file editing method provided in the embodiment of the present application may be a terminal, which may be an electronic device or a functional module in an electronic device. The following uses an electronic device as an example to illustrate the technical solution provided in the embodiment of the present application.

[0047] The present invention provides a method for editing a file, and Figure 1 shows a flowchart of the method for editing a file provided by the present invention. As shown in Figure 1, the method for editing a file provided by the present invention may include the following steps 201 and 202.

[0048] Step 201: When a first editing component is displayed, the electronic device receives a first input from a user on an editing function icon on the first editing component.

[0049] In some embodiments of the present application, the above-mentioned first editing component includes editing function icons of at least two applications. Specifically, the first editing component contains different editing function icons of multiple different applications, and there are no repeated editing function icons in the first editing component.

[0050] In some embodiments of the present application, the first input is used to determine an editing function icon from the editing function icons of at least two applications of the first editing component, and the first input may specifically be a first operation.

[0051] Exemplarily, the above-mentioned first input includes but is not limited to: a user's touch input of an editing function icon through a touch device such as a finger or a stylus, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs, which can be determined according to actual use needs and are not limited in the embodiments of this application. The specific gesture in the embodiments of this application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiments of this application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the above-mentioned first input can be: a user's click input of the editing function icon displayed on the first editing component.

[0052] In some embodiments of the present application, the electronic device may display the above-mentioned first editing component on the desktop.

[0053] Exemplarily, the electronic device may display the first editing component at any blank location on the desktop based on the user's input.

[0054] Exemplarily, the electronic device can receive a long press input from the user on the desktop, so that the electronic device can display at least one desktop component, which includes the above-mentioned first editing component. Then, the electronic device can display the first editing component on the desktop based on the user's click input on the first editing component.

[0055] Optionally, in some embodiments of the present application, after the electronic device displays the first editing component, the electronic device may change the display position and display size of the first editing component on the desktop based on user input.

[0056] Optionally, in an embodiment of the present application, after the electronic device displays the first editing component on the desktop, the electronic device can display the first editing component on the edge of the screen of the electronic device through user input, and indicate the position of the first editing component on the desktop through a component identifier.

[0057] Exemplarily, after the electronic device displays the first editing component on the desktop, the electronic device may automatically place the first editing component at the edge of the screen of the electronic device; or, the electronic device may place the first file editing component at the edge of the screen of the electronic device based on user input.

[0058] For example, the component identifier may include at least one of the following: an icon identifier, a label identifier, an emoticon identifier, a text identifier, a letter identifier, and a special symbol identifier. Specific identifiers may be determined based on actual usage and are not limited in this embodiment.

[0059] Optionally, in some embodiments of the present application, the component type of the first editing component may include at least one of the following: text type, image type, and video type.

[0060] Exemplarily, before displaying the first editing component, the electronic device may determine the type of the first editing component based on user input. In this way, the editing functions indicated by the multiple editing function icons contained in the first editing component may be consistent with the type of the first editing component, that is, the type of the first file editing component may have an association relationship with the multiple first editing function icons.

[0061] Exemplarily, the electronic device may display the above-mentioned multiple editing function icons in any blank position in the first editing component.

[0062] Exemplarily, the electronic device may display a print icon in a print application, an add annotation icon in an atom note, and an insert picture icon in a mail application in any blank location in the first editing component.

[0063] In an embodiment of the present application, the editing function icons of the two application programs in the first editing component are multiple editing function icons of different programs.

[0064] Optionally, in some embodiments of the present application, the multiple editing function icons contained in the above-mentioned first file editing component and the editing functions indicated by the multiple editing function icons may be preset by the electronic device; or customized by the user.

[0065] It can be understood that when the first editing component is a text editing component, the multiple editing function icons contained in the first editing component are text-type editing function icons; or, when the first editing component is an image editing component, the multiple editing function icons contained in the first editing component are image-type editing function icons; or, when the first editing component is a video editing component, the multiple editing function icons contained in the first editing component are video-type editing function icons; or, when the first editing component includes a text editing component and an image editing component, the multiple editing function icons contained in the first editing component are text-type editing function icons and image-type editing function icons; that is, the first editing function icon in the first editing component is associated with the type of the first editing component.

[0066] Exemplarily, when the first editing component is a text editing component, the multiple editing function icons contained in the first editing component may include at least one of the following: an insert picture icon, an update font color icon, an add annotation icon, etc. The insert picture icon and the update font color icon can be application function icons in the gallery application, and the add annotation icon can be an application function icon in the instant text application.

[0067] It should be noted that the above-mentioned multiple editing function icons correspond to application functions in different application programs.

[0068] Exemplarily, the first editing component may be an editing component in a rich text format.

[0069] It should be noted that Rich Text Format (RTF), also known as Rich Text Format, is a text and graphic document format that is easily viewable on various devices and systems. Most word processing software can read and save RTF documents.

[0070] Exemplarily, when the first editing component is an image editing component, the multiple editing function icons contained in the first editing component may include at least one of the following: a capture image icon, an add filter icon, a beauty icon, a picture cropping icon, and a picture beautification icon, etc. The capture image icon is an application function icon in the camera application, and the add filter icon is an application function icon in the gallery application.

[0071] Exemplarily, when the first editing component is a video editing component, the multiple editing function icons contained in the first editing component may include at least one of the following: an insert image icon, an insert text icon, an insert subtitle icon, a delete video segment icon, and an add video segment icon, etc. The insert image icon, delete video segment icon, add video segment icon, and insert subtitle icon can be application function icons in video editing applications, and the insert text icon can be an application function icon in a gallery application.

[0072] Exemplarily, in the case where the first editing component includes a text editing component and an image editing component, the multiple editing function icons contained in the first editing component may include at least one of the following: an insert picture icon, an add filter icon, an add annotation icon, and a picture beautification icon, etc. The insert picture icon, add filter icon, and picture beautification icon can be application function icons in the gallery application, and the add annotation icon can be an application function icon in the instant application.

[0073] Optionally, in some embodiments of the present application, after the electronic device displays the first editing component on the desktop, the electronic device may update the editing function in the first editing component by inputting the first editing component and at least one application icon.

[0074] Optionally, in some embodiments of the present application, the electronic device may directly display multiple editing function icons in any blank position in the first editing component, and then the electronic device may directly receive the user's first input on the editing function icon.

[0075] In this way, when the user inputs the editing function icon, the user does not need to perform tedious query operations, which saves the user's time in searching for the editing function icon.

[0076] For example, the electronic device may display a plurality of editing function icons in the form of a pop-up window according to the user's input, and then the electronic device may directly receive the user's first input on the target editing function icon.

[0077] In this way, the electronic device displays multiple editing function icons in the form of pop-up windows, which saves the display area on the desktop and makes the desktop of the electronic device more tidy.

[0078] Optionally, in some embodiments of the present application, the icon styles of the above-mentioned multiple editing function icons may be consistent with or different from the component style of the first editing component.

[0079] Step 202: In response to the first input, the electronic device performs a file editing process indicated by the editing function icon selected by the first input on the first file.

[0080] Optionally, in some embodiments of the present application, the first file may be a local file or a file in a cloud server.

[0081] Illustratively, the first file may include at least one of the following: a text file, an image file, and a video file.

[0082] Optionally, in some embodiments of the present application, the first file editing component further includes a sharing icon; after the electronic device edits the first file, the electronic device can directly share the edited first file to other contacts through the sharing icon.

[0083] In the file editing method provided in the embodiment of the present application, the electronic device can display a first editing component, which includes at least two editing function icons of at least two applications. The electronic device can perform file editing processing indicated by the editing function icon selected by the first input on the first file based on the user's first input to an editing function icon on the first editing component. In this solution, since the first editing component can integrate function icons of multiple file editing functions in multiple applications, when the electronic device edits the first file, the electronic device can edit the first file according to the editing functions indicated by the function icons of the multiple editing functions integrated in the first editing component. In this way, when the electronic device edits the first file, it does not need to edit the file through multiple file applications to obtain a file that meets the user's needs. In this way, the efficiency of electronic devices in editing files is improved.

[0084] Optionally, in some embodiments of the present application, the file editing method provided in the embodiments of the present application further includes the following steps 301 and 302.

[0085] Step 301: The electronic device receives a second input from a user.

[0086] In some embodiments of the present application, the second input is used to trigger adding or reducing an editing function icon of at least one application in the first editing component.

[0087] In some embodiments of the present application, the second input is the user's input to the first editing component on the desktop.

[0088] Exemplarily, the above-mentioned second input includes but is not limited to: the user's touch input to the first editing component through a touch device such as a finger or a stylus, or a specific gesture input by the user, or other feasible input, which can be determined according to actual use needs and is not limited in the embodiment of the present application. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the above-mentioned first input can be: the user's area change gesture input to the first editing component.

[0089] Step 302: The electronic device updates the editing function icon on the first editing component in response to the second input.

[0090] In some embodiments of the present application, the electronic device can add or delete an editing function icon on the first editing component according to the second input.

[0091] It can be understood that the editing function icon on the electronic device that adds or deletes the first editing component can be used to add or delete the editing function in the first editing component of the electronic device.

[0092] In some embodiments of the present application, the electronic device can update the editing function icon on the first editing component and then update the editing function in the first editing component, thereby improving the editing efficiency of the electronic device in updating the editing function in the first editing component.

[0093] Optionally, in some embodiments of the present application, "updating the editing function icon on the first editing component" in the above step 302 can be specifically implemented through the following step 302a or step 302b or step 302c.

[0094] Step 302a: When the second input is used to trigger the addition of an editing function icon of the first application, the electronic device adds at least one editing function icon of the first application to the first editing component.

[0095] In some embodiments of the present application, the at least one editing function icon is an editing function icon that was not present in the first editing component before the editing function icon in the first editing component is updated.

[0096] Exemplarily, the second input may be a user's gesture input of changing the area of ​​the first editing component.

[0097] Optionally, in some embodiments of the present application, the first application may be any application with an editing function on the desktop of the electronic device.

[0098] Exemplarily, the number of the first application programs may be one or more.

[0099] Optionally, in some embodiments of the present application, after the electronic device adds at least one editing function icon of the first application to the first editing component, the electronic device may display the at least one editing function icon in a preset icon display area in the first editing component.

[0100] Exemplarily, the preset icon display area may be any blank area in the first editing component.

[0101] In an example where the number of first applications is one, as shown in Figure 2A, a photo application icon, a camera application icon, a communication application icon, a note application icon, an email application icon and a first editing component 10 are displayed on the desktop of the electronic device. The user can long press the first editing component 10 so that the electronic device can display a drag indicator in the lower left corner of the first editing component 10, which is represented by a double arrow in Figure 2A. At this time, the user can drag the drag indicator, as shown in Figure 2B, so that the electronic device can cover the note application icon with the first editing component 10, as shown in Figure 2C. Then, the electronic device can add the undo text editing function in the note application indicated by the note icon to the first editing component 10, and display the add annotation editing function editing icon 12 in the blank area 11 of the first editing component 10.

[0102] In an example where there are multiple first applications, in combination with Figure 2A, as shown in Figure 3A, the user can drag the drag identifier to enable the electronic device to cover the note application icon and the email application icon with the first editing component 10, as shown in Figure 3B, and then the electronic device can add the add annotation editing function in the note application indicated by the note icon and the Hypertext Markup Language (HTML) editing function in the email application indicated by the email icon to the first editing component 10, and display the add annotation editing icon 12 and the HTML editing function icon 13 in the blank area 11 of the first editing component 10.

[0103] Exemplarily, in combination with Figure 2A, as shown in Figure 4, the user can drag input on the drag indicator so that the electronic device can cover the camera application icon and the photo application icon with the first editing component 10, and then the electronic device can add the shooting function in the camera application indicated by the camera icon and the filter editing function in the photo application indicated by the photo icon to the first editing component 10, and display the shooting icon 14 and the filter editing icon 15 in the blank area 11 of the first editing component 10.

[0104] Step 302b: When the second input is used to trigger the addition of editing function icons of the first application and the second application, the electronic device adds M editing function icons of the first application and N editing function icons of the second application to the first editing component.

[0105] In an embodiment of the present application, the above-mentioned M editing function icons and N editing function icons are all editing function icons that were not in the first editing component before the editing function icons in the first editing component were updated. The M editing function icons and the N editing function icons are not the same, and M and N are positive integers.

[0106] It should be noted that, when the application types of the first application and the second application are the same, please refer to the specific description in the above step 302a for details. To avoid repetition, it will not be repeated here.

[0107] Optionally, in some embodiments of the present application, the application type of the first application is different from the application type of the second application.

[0108] Exemplarily, in combination with Figure 2A, as shown in Figure 5, the user can drag input on the drag identifier so that the electronic device can cover the camera application icon and the note application icon with the first editing component 10, and then the electronic device can add the shooting function in the camera application indicated by the camera icon and the adding annotation editing function in the note application indicated by the note icon to the first editing component 10, and add the shooting icon 14 and the undo text editing icon 12 in the blank area 11 of the first editing component 10.

[0109] Step 302c: When the second input is used to trigger the reduction of editing function icons in the first editing component, the electronic device cancels the display of at least one editing function icon selected by the second input in the first editing component, and deletes the file editing function indicated by at least one editing function icon selected by the second input from the file editing functions of the first editing component.

[0110] In an embodiment of the present application, the above-mentioned step 302c can also be applied in the following scenario: when the user is setting the editing function of the component, the user drags the first editing component to cover two icons, such as the first application icon and the second application icon, and the user suddenly does not want to add the function icon of the application indicated by the second application icon. Then the user can slide on the first editing component or slide with two fingers toward each other to control the shrinking of the first editing component, so that the first editing component only covers the first application icon but not the second application icon. In the first editing component, the editing function icons contained in the application indicated by the second application icon can be reduced.

[0111] Exemplarily, the second input may be a preset trajectory input of the editing function icon in the first editing component.

[0112] For example, as shown in FIG6A , the editing icon display area 11 in the first editing component displays an add annotation editing icon 12, a shooting icon 14, a filter editing icon 15 and an HTML editing function icon 13. At this time, the user can slide down the shooting icon 14, as shown in FIG6B , so that the electronic device can delete the shooting icon 14 from the first editing component, cancel the display of the shooting icon 14, and delete the shooting function from the first editing component, and display the undo text editing icon 12, the filter editing icon 15 and the HTML editing function icon 13 in the editing icon display area 11.

[0113] In some embodiments of the present application, the electronic device can directly edit the first editing component on the desktop based on the user's second input, such as adding an editing icon or deleting an editing icon, thereby improving the efficiency of the electronic device in editing the first editing component.

[0114] Optionally, in some embodiments of the present application, the above step 301 may be specifically performed through the following step 301a, and the above step 302 may be specifically performed through the following step 302d and step 302e or step 302f or step 302g.

[0115] Step 301a: The electronic device receives a second input of the user dragging the first editing component on the desktop.

[0116] In some embodiments of the present application, the desktop includes at least one application icon.

[0117] Optionally, in some embodiments of the present application, the second input may be used to update the display size or position of the first editing component on the desktop.

[0118] Step 302d: The electronic device updates the display position of the first editing component.

[0119] Optionally, in some embodiments of the present application, updating the display position of the first editing component may be updating the display size of the first editing component on the desktop or changing the position of the first editing component on the desktop.

[0120] Step 302e: If the first editing component does not cover the application icon before the display position is updated, and the first editing component covers the first application icon after the display position is updated, the electronic device adds at least one file editing function icon of the first application indicated by the first application icon to the first editing component.

[0121] It should be noted that the details can be found in FIG3 above, and will not be described here in detail to avoid repetition.

[0122] Step 302f: When the first editing component does not cover the application icon before the display position is updated, and the first editing component covers the first application icon and the second application icon after the display position is updated, the electronic device adds at least one file editing function icon of the first application indicated by the first application icon and at least one file editing function icon of the second application indicated by the second application icon to the first editing component.

[0123] Exemplarily, the electronic device can add the print icon of the print application function in the application indicated by the print now application icon to the first editing component, and add the add filter icon of the add filter application function in the application indicated by the gallery application icon to the first editing component in an overlay manner, so that the print icon and the add filter icon can be displayed in the updated first editing component.

[0124] It should be noted that the details can be found in FIG4 above, and will not be described here in detail to avoid repetition.

[0125] For example, taking the first interface as the desktop, the electronic device can move the first file editing component to different pages of the desktop, so that the first file editing component can add at least one file editing function in the file editing application included in the different pages.

[0126] For example, assuming that the desktop contains 5 pages, the user can input the first file editing component in the first page so that the electronic device can overwrite the file editing application contained in the first page, so that the electronic device can add at least one file editing function in the first file editing component; then, the user can move the first file editing component to the second page and input the first file editing component so that the electronic device can overwrite the file editing application contained in the second page, so that the electronic device can add at least one file editing function in the first file editing component again; and so on, until at least one file editing function corresponding to the file editing applications contained in the 5 pages is added to the first file editing component.

[0127] For example, as shown in FIG7A , a note application icon and a first editing component 10 are displayed on a first desktop page 17 of an electronic device. At this time, the user can perform a drag input on the first editing component 10, so that the electronic device can cover the note application icon with the first editing component 10, and add the add annotation editing icon 12 in the note application indicated by the note application icon to the first editing component 10. Then, as shown in FIG7B , the user can move the updated first editing component 10 to a second desktop page 18 of the electronic device, which contains a mail application icon. At this time, the user can perform a drag input on the updated first editing component 10 again, so that the electronic device can cover the mail application icon with the first editing component 10, and add the HTML icon 13 in the mail application indicated by the mail application icon to the first editing component 10.

[0128] It can be understood that for each page in the electronic device, the electronic device can add an editing function icon to the first editing component in each page through the same operation as above.

[0129] Optionally, in an embodiment of the present application, taking the type of file editing component as a text editing type as an example, when the electronic device covers the application icon in the desktop through the first file editing component, the electronic device can determine whether the application indicated by the application icon is a text application based on the application information of the multiple application icons covered.

[0130] Exemplarily, the above application information may include at least one of the following: an application icon, an application name, and an application identifier, where the application identifier may be used to indicate an application type of the application program.

[0131] Exemplarily, the electronic device may obtain the above application information through an installation package corresponding to the application program.

[0132] Optionally, in an embodiment of the present application, after the electronic device determines the text application indicated by the text application icon from the multiple covered application icons, the electronic device can determine the text editing function in the text application based on the function identifier in the text application, and then add the text editing function to the first file editing component.

[0133] It should be noted that when the type of the first file editing component is an image type, the process of adding an image editing function to the electronic device can be found in the above embodiment in detail, and will not be described again here to avoid repetition.

[0134] Step 302g: When the first editing component covers the first application icon and the second application icon before the display position is updated, and the first editing component covers the first application icon after the display position is updated, the electronic device cancels the display of all editing function icons of the second application icon added in the first editing component, and deletes the file editing functions indicated by all editing function icons of the added second application icon from the file editing functions of the first editing component.

[0135] Exemplarily, in combination with Figure 2A, as shown in Figure 8A, the user can drag input on the drag identifier so that the electronic device can cover the note application icon 19 and the email application icon 20 with the first editing component 10, as shown in Figure 8B. At this time, the user can continue to drag input on the first editing component 10 so that the electronic device can cover only the note application icon 19 with the first editing component 10, and stop dragging input on the first editing component 10, as shown in Figure 8C. Then, the electronic device can add the add annotation editing function icon 12 in the note application indicated by the note icon to the first editing component 10, and display the undo text editing icon 12 in the blank area 11 of the first editing component 10.

[0136] In an embodiment of the present application, the electronic device can add an editing function icon in the first editing component by moving the first editing component, and then add the corresponding editing function, thereby improving the convenience of the electronic device in adding editing functions to the first editing component.

[0137] Optionally, in some embodiments of the present application, the above step 301 may be specifically implemented through the following step 301b; and the above step 302 may be specifically implemented through the following step 302h.

[0138] Step 301b: The electronic device receives a second input from the user dragging the first application icon on the desktop to the first editing component.

[0139] In an embodiment of the present application, the desktop includes at least one application icon.

[0140] Optionally, in some embodiments of the present application, the first application icon may be one or more.

[0141] Step 302h: In response to the second input, the electronic device adds at least one file editing function icon of the first application program indicated by the first application icon to the first editing component.

[0142] Exemplarily, as shown in FIG9A , a photo application icon, a camera application icon, a communication application icon, a note application icon, an email application icon and a first editing component 10 are displayed on the desktop of the electronic device, and the user can drag the note application icon until it is dragged to the first editing component 10; as shown in FIG9B , the electronic device can add the undo text editing function in the note application indicated by the note icon to the first editing component 10, and display the add annotation editing icon 12 in the blank area 11 of the first editing component 10.

[0143] In an embodiment of the present application, the electronic device can add the editing function icon in the first editing component by moving the application icon in the desktop to the first editing component, and can then intuitively display the process of adding the corresponding editing function to the user.

[0144] Optionally, in some embodiments of the present application, after the above step 301, the file editing method provided by the embodiment of the present application further includes the following step 401 or step 402 or step 403.

[0145] Step 401: Upon receiving the third input from the user on the first editing component, the electronic device updates the first editing component to a component identifier and displays the component identifier in an edge area of ​​the display screen.

[0146] In the embodiment of the present application, the edge area is an area whose distance from the edge of the display screen is less than or equal to a distance threshold.

[0147] For example, the distance threshold may be 1 cm or 0.5 cm. Specifically, it may be determined based on the display area of ​​the display screen. For example, the distance threshold for a large display screen may be greater than the distance threshold for a small display screen. This is not limited in the present embodiment.

[0148] In some embodiments of the present application, the third input is used to trigger the electronic device to update the display mode of the first editing component, that is, to update from the component display mode to the logo display mode.

[0149] Exemplarily, the third input includes but is not limited to: the user's touch input to the first editing component through a touch device such as a finger or a stylus, or a specific gesture input by the user, or other feasible input, which can be determined according to actual use requirements and is not limited in the embodiment of the present application. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the first input mentioned above can be: the user's long press input to the first editing component.

[0150] Optionally, in some embodiments of the present application, the first editing component may include a first control, and the third input may be the user's input to the first control, so that the electronic device can update the first editing component to a component identifier and display the component identifier in the edge area of ​​the display screen.

[0151] Exemplarily, the electronic device may display the first control after updating the editing function icon in the first editing component.

[0152] Step 402: If the user does not operate the first editing component for a period of time, the electronic device updates the first editing component to a component identifier and displays the component identifier in an edge area of ​​the display screen.

[0153] Optionally, the duration corresponding to the above period of time may be preset by the electronic device; or set by the user.

[0154] For example, the above period of time may be 1S, 2S, or 3S, which may be determined based on actual usage and is not limited in the present embodiment.

[0155] Step 403: When switching from the first interface to the second interface, the electronic device displays a component identifier in an edge area of ​​the display screen.

[0156] In the embodiment of the present application, the first interface is a program interface of an application that does not have a file editing function, and the second interface is a program interface of an application that has a file editing function;

[0157] In the embodiment of the present application, the above-mentioned component identifier is used to indicate the first editing component.

[0158] It can be understood that after the electronic device displays the component logo in the edge area of ​​the display screen, the component logo can be displayed on the top layer of the screen of the electronic device all the time.

[0159] In the embodiment of the present application, the electronic device can use the component identifier to indicate the first editing component, thereby improving the flexibility of the electronic device in displaying the first editing component.

[0160] Optionally, in some embodiments of the present application, before "the electronic device receives the user's first input to an editing function icon on the first editing component" in the above step 201, the file editing method provided by the embodiment of the present application also includes the following steps 501 and 502.

[0161] Step 501: When displaying a second editing component and a third editing component, the electronic device receives a fourth input of the user on the second editing component and the third editing component.

[0162] In an embodiment of the present application, the second editing component includes at least two editing function icons of at least two first-category editing applications, and the third editing component includes at least two editing function icons of at least two second-category editing applications.

[0163] It should be noted that the process of the electronic device acquiring the second file editing component and the third file editing component can be found in the above embodiment in detail, and will not be described again here to avoid repetition.

[0164] Optionally, in an embodiment of the present application, the electronic device may display a second file editing component and a third file editing component in the first interface.

[0165] It can be understood that the second file editing component and the third file editing component correspond to different component types.

[0166] Step 502: In response to the fourth input, the electronic device merges the editing function icons in the second editing component and the third editing component to generate a first editing component.

[0167] In an embodiment of the present application, the above-mentioned first editing component includes at least two editing function icons of at least two first-category editing applications and at least two editing function icons of at least two second-category editing applications; the program types of the first-category editing application and the second-category editing application are any two of the following types: text editing type, image editing type, video editing type, and audio editing type.

[0168] Exemplarily, the fourth input includes but is not limited to: the user's touch input to the second editing component and the third editing component through a touch device such as a finger or a stylus, or a specific gesture input by the user, or other feasible input, which can be determined according to actual use requirements and is not limited in the embodiment of the present application. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the first input mentioned above can be: the user's pinch input to the second editing component and the third editing component.

[0169] Optionally, in some embodiments of the present application, the electronic device may integrate the editing icons in the second editing component and the third editing component and the editing functions indicated by the editing icons based on the above-mentioned fourth input. Then, the electronic device may add the combined editing icons to the atomic component in a union manner based on the atomic component corresponding to the editing component in the system to generate a first editing component. In this way, the generated first editing component may include the editing functions in the second editing component and the editing functions in the third editing component.

[0170] Optionally, in some embodiments of the present application, the electronic device may integrate the editing icons and the editing functions indicated by the editing icons in the second editing component and the third editing component based on the above-mentioned fourth input, and then, the electronic device may add the integrated editing icons and the editing functions indicated by the editing icons to the second editing component to generate the first editing component.

[0171] Optionally, in some embodiments of the present application, the electronic device may integrate the editing icons and the editing functions indicated by the editing icons in the second editing component and the third editing component based on the above-mentioned fourth input, and then, the electronic device may add the integrated editing icons and the editing functions indicated by the editing icons to the third editing component to generate the first editing component.

[0172] In an embodiment of the present application, the electronic device can expand the first editing component into a multifunctional editing component in the above manner. For example, in one editing component, both text and images can be edited, thereby improving the editing flexibility and efficiency of the first file editing component.

[0173] Optionally, in some embodiments of the present application, before "the electronic device receives the user's first input of an editing function icon on the first editing component" in the above step 201, the file editing method provided by the embodiment of the present application also includes the following steps 601 to 603.

[0174] Step 601: The electronic device displays an editing interface and component identification of a first file.

[0175] In some embodiments of the present application, the above-mentioned editing interface includes an input box, and the component identifier is used to indicate the first editing component.

[0176] Optionally, in some embodiments of the present application, the display form of the above-mentioned component identification may include at least one of the following: an icon identification, a digital identification, a text identification or a special symbol identification.

[0177] It should be noted that the above-mentioned editing interface is the editing interface of the application program where the first file is located.

[0178] Exemplarily, if the user inputs text through a mailbox application in an electronic device, the first file is the text input by the user, and the editing interface is the text editing interface in the mailbox application.

[0179] It can be understood that since the component identification is always displayed on the top layer of the screen, when the electronic device runs the interface of any application, the above component identification can always be displayed on the screen of the electronic device.

[0180] Step 602: The electronic device receives a fifth input from the user regarding the component identifier and the input box.

[0181] Exemplarily, the fifth input mentioned above includes but is not limited to: the user's touch input of the component identifier and input box through a touch device such as a finger or a stylus, or a specific gesture input by the user, or other feasible input, which can be determined according to actual use requirements and is not limited in the embodiment of the present application. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the first input mentioned above can be: the user's pinch input of the component identifier and input box.

[0182] Step 603: The electronic device updates the display of the editing interface in response to the fifth input, and cancels the display of the component identifier.

[0183] In an embodiment of the present application, the area corresponding to the input box in the updated editing interface includes a first editing component.

[0184] Optionally, in some embodiments of the present application, the electronic device can drag the component identifier to the input box based on the user's input, so that the electronic device can add the editing function in the first editing component in the input method editing area, and then, the electronic device can edit the first file through the added file editing function.

[0185] Optionally, in some embodiments of the present application, after the electronic device drags the component identifier into the input method box, the electronic device can overlay the input method editing area with the editor corresponding to the first editing component, so that the electronic device can edit the first file on the editor corresponding to the first editing component.

[0186] In an embodiment of the present application, the electronic device can drag the component identifier to the input box, so that the electronic device can update the editing interface and edit the first file according to the updated editing interface, thereby improving the convenience of file editing on the electronic device.

[0187] Optionally, in some embodiments of the present application, the above step 603 can be specifically implemented through the following step 603a or step 603b.

[0188] Step 603a: The electronic device displays the editing function icon on the first editing component in the area corresponding to the input box.

[0189] Exemplarily, as shown in FIG10A , the electronic device displays an email editing interface 21 and superimposes a component logo 22 on the email editing interface 21. The user can drag and input the component logo 22 until it is dragged to the input box 23 in the email editing interface 21; as shown in FIG10B , the electronic device can display the HTML editing function icon 13 in the editing area of ​​the input box 23 and cancel the display of the component logo 22.

[0190] Step 603b: Display the first editing component in an overlay manner on the area corresponding to the input box.

[0191] Exemplarily, in combination with FIG. 10A , as shown in FIG. 11 , the electronic device may overlay the first editing component 10 on the area corresponding to the input box 23 and cancel the display of the component identifier 22 .

[0192] In the embodiment of the present application, the electronic device can update the editing function in the editing interface through the component identification, thereby improving the flexibility of the electronic device in editing files.

[0193] Optionally, in some embodiments of the present application, after the above step 202, the file editing method provided by the embodiment of the present application further includes the following steps 701 to 703.

[0194] Step 701: The electronic device displays a second text in the input box.

[0195] In the embodiment of the present application, the second text is the text obtained by editing the first text.

[0196] It should be noted that the above input box is the input box corresponding to the initial input method.

[0197] In the embodiment of the present application, after the electronic device edits the first text through the first editing component to obtain the second text, the electronic device can copy the second text and display the second text in the above-mentioned input box.

[0198] Optionally, in an embodiment of the present application, the electronic device may edit the second text again based on the editing function corresponding to the input method.

[0199] Step 702: The electronic device receives the sixth input from the user into the input box.

[0200] In the embodiment of the present application, the sixth input is used to send and save the second text.

[0201] Optionally, in some embodiments of the present application, the input box includes a send control, and the sixth input may be the user's input to the send control.

[0202] Exemplarily, the sixth input mentioned above includes but is not limited to: a user's touch input to the sending control through a touch device such as a finger or a stylus, or a specific gesture input by the user, or other feasible input, which can be determined according to actual usage requirements and is not limited in the embodiment of the present application. The specific gesture in the embodiment of the present application can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture; the click input in the embodiment of the present application can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input. For example, the first input mentioned above can be: a user's click input to the sending control.

[0203] Step 703: In response to the sixth input, the electronic device sends the second text to the communication partner, stores the second text, cancels the display of the first editing component in the editing interface, and displays a component identifier.

[0204] Exemplarily, the electronic device may save the second text in the electronic device; or, the electronic device may save the second text in a cloud server.

[0205] Optionally, in an embodiment of the present application, the electronic device may save the second text in a target format.

[0206] Exemplarily, the target format may include any one of the following: image format, HyperText Markup Language (HTML) format, or text format.

[0207] Preferably, in the embodiment of the present application, since the HTML format is comparable to other formats in terms of compatibility in different applications, the second text is preferably saved in the HTML format in the present application.

[0208] In the embodiment of the present application, after the electronic device obtains the second text, the electronic device can send the second text through the initial input method editing area in the editing interface, thereby ensuring the accuracy of sending the second text.

[0209] For example, the method for editing a file provided by the embodiment of the present application is explained in detail by taking the first file including text as an example, which can be implemented through the following steps 20 to 23.

[0210] Step 20: Add an atomic component for rich text editing on the desktop of the electronic device.

[0211] In an embodiment of the present application, the above-mentioned atomic components of rich text editing are used to edit text.

[0212] In the embodiment of the present application, the electronic device can add the rich text editing atomic component to the desktop according to the preset rich text editing atomic component. The atomic component initially only carries basic rich text editing capabilities, occupies low system memory, and supports functions such as click to view and create text editing.

[0213] Step 21: Add at least one text editing function to the rich text editing atomic component.

[0214] In an embodiment of the present application, the above-mentioned atomic component supports drag interaction. By long pressing the component, a special extension badge will appear on the bottom edge of the component. The user can drag the badge with his finger to enlarge it, and it will cover the edge of the electronic device screen. Release the finger and the component will return to its original size. Among them, the office software covered by the component will be added to the component in a stacked form, and the functions in the software will be added to the component in the form of a union. Taking instant text as an example, its image text extraction function and printing and other functions will be added to the component for use, while the existing editing functions in the component remain unchanged. If the user no longer needs the above functions, the electronic device can move the instant text out of the component through the user's input, and the corresponding functions will also be removed.

[0215] Step 23: The electronic device performs text editing processing by adding at least one rich text editing atomic component to the rich text editing function to obtain edited text.

[0216] In an embodiment of the present application, when a user is working through an electronic device, for example, when writing an email, the rich text editing component will be adsorbed on the edge of the desktop in the form of a small icon, and the electronic device can drag the component into the edit box by dragging; if the editing capability of the component is needed, the electronic device can drag the component into the edit box based on the user's input. At this time, the component icon disappears, and the edit box part in the email will be refreshed to the rich text editor of the component. The electronic device can use the editing functions of the component to edit the text. For example: inserting embedded pictures, custom text types and sizes, custom emoticons, etc. After the editing is completed, the user clicks the Done button so that the electronic device can exit the editing mode and restore the component to icon form. Then, the edited content will be filled in the email editing box. The electronic device can automatically convert the edited text into HTML format, the original text will be saved to the cloud, the component window will be closed, and it will be displayed on the edge of the screen.

[0217] For example, the method for editing a file provided by the embodiment of the present application is explained in detail by taking the first file including an image as an example, which can be implemented through the following steps 30 to 33.

[0218] Step 30: Add an atomic component for image editing on the desktop of the electronic device.

[0219] In the embodiment of the present application, the above-mentioned atomic component is a combination of at least one component carried in the system of the electronic device. The atomic component is a desktop component that can integrate various components and has multiple functions, that is, the atomic component can be a combination component of multiple components. The atomic component is a new type of component. The atomic component can display the program function icon of the application in the atomic component that only occupies a small area of ​​1x2 or 2x1 on the desktop of the electronic device, so that the user can directly control and operate the application through the atomic component displayed on the desktop. The atomic component in step 30 is used to edit and process the image.

[0220] In the embodiment of the present application, the electronic device can add the image editing atomic component to the desktop according to the preset image editing atomic component. The atomic component initially only carries basic image editing capabilities, occupies a low amount of system memory, and supports basic functions such as clicking to view and edit pictures.

[0221] Step 31: Add at least one image editing function to the image editing atomic component.

[0222] In an embodiment of the present application, the above-mentioned atomic component supports drag interaction. By long pressing the component, a special extension badge will appear on the bottom edge of the component. The user can drag the badge with his finger to enlarge it, and it will cover the edge of the electronic device screen. Release the finger and the component will return to its original size. Among them, the image software that has been covered by the component will be added to the component in a stacked form, and the functions in the software will be added to the component in the form of a union. For example, when you open the component, you can view the camera's shooting function, and the image software's cutout, beautification and other functions. If the user no longer needs the above functions, the electronic device can move the instant text out of the component through the user's input, and the corresponding function will also be removed.

[0223] Step 32: The electronic device performs image editing processing by adding at least one image editing atomic component to the image editing to obtain an edited image.

[0224] In an embodiment of the present application, the component supports the integration of functions from different applications. For example, if the component has added applications such as a camera and AI painting, it provides a painting and photography function for painters who need to draw cartoons based on real scenes. The electronic device can activate the component to shoot scenery or portraits. After the shooting is completed, the picture can be automatically beautified to increase the clarity. Then, based on the user's input to the AI ​​drawing conversion icon, the current photo can be automatically converted into a cartoon picture through the AI ​​painting capability. In this way, different editing processes of the image can be achieved in one application.

[0225] For example, the method for editing a file provided by the embodiment of the present application is explained in detail by taking the first file including an image and text as an example, which can be implemented through the following steps 40 to 43.

[0226] Step 40: Add the rich text editing atomic component and the image editing atomic component to the desktop of the electronic device.

[0227] In the embodiments of the present application, the specific implementation process can be found in the above embodiments in detail. To avoid repetition, it will not be described here.

[0228] Step 41: Add at least one text editing function to the atomic component of rich text editing and add at least one image editing function icon to the atomic component of image editing.

[0229] In the embodiments of the present application, the specific implementation process can be found in the above embodiments in detail. To avoid repetition, it will not be described here.

[0230] Step 42: The electronic device synthesizes the atomic component of rich text editing after adding at least one text editing function icon and the atomic component of image editing after adding at least one image editing function icon to obtain a file editing component.

[0231] In the embodiments of the present application, the specific implementation process can be found in the above embodiments in detail. To avoid repetition, it will not be described here.

[0232] Step 42: The electronic device edits the text and image based on the file editing component to obtain an edited file.

[0233] In an embodiment of the present application, after the electronic device obtains the edited text and the edited image, the electronic device can add the edited text to the edited image through the above-mentioned file editing component; or, the electronic device can insert the edited image into the edited text.

[0234] In the file editing method provided in the embodiment of the present application, since the first editing component integrates the editing functions indicated by the function icons of multiple editing functions of at least two applications, the first editing component has editing function icons of different programs. Therefore, the editing function of the first editing component is more powerful than the editing function of any single application. Editing the first file through the first editing component with more powerful editing function can avoid the user opening the same file through multiple applications to perform tedious program switching and file editing operations, thereby effectively improving the efficiency of file editing and shortening the time for users to edit files.

[0235] It should be noted that the file editing method provided in the embodiment of the present application can be executed by a terminal, an electronic device, or a functional module or entity in an electronic device. In the embodiment of the present application, the terminal provided in the embodiment of the present application is described by taking the terminal executing the file editing method as an example.

[0236] FIG12 shows a possible schematic diagram of the structure of a terminal involved in an embodiment of the present application. As shown in FIG12 , the terminal 70 may include: a receiving module 71 and a processing module 72 .

[0237] The receiving module 71 is configured to receive, while displaying a first editing component, a first user input on an editing function icon on the first editing component, wherein the first editing component includes at least two editing function icons for at least two applications. The processing module 72 is configured to, in response to the first input received by the receiving module, perform a file editing process indicated by the editing function icon selected in the first input on the first file.

[0238] In one possible implementation, the terminal further includes an update module. The receiving module 71 is further configured to receive a second input from a user, the second input being configured to trigger the addition or removal of an editing function icon for at least one application in the first editing component. The update module is configured to update the editing function icon on the first editing component in response to the second input received by the receiving module.

[0239] In one possible implementation, the above-mentioned update module is also used to update the editing function icon of the first editing component in response to the second input, and then, upon receiving the third input from the user to the first editing component, update the first editing component to a component identifier and display the component identifier in the edge area of ​​the display screen; or, when the user has not operated the first editing component for a period of time, update the first editing component to a component identifier and display the component identifier in the edge area of ​​the display screen; or, when switching from the first interface to the second interface, display the component identifier in the edge area of ​​the display screen, the first interface is a program interface of an application that does not have a file editing function, and the second interface is a program interface of an application that has a file editing function; wherein, the component identifier is used to indicate the first editing component.

[0240] In one possible implementation, the update module is specifically used to add at least one editing function icon of the first application to the first editing component when the second input is used to trigger the addition of an editing function icon of the first application, wherein at least one editing function icon is an editing function icon that was not present in the first editing component before the editing function icons in the first editing component were updated; when the second input is used to trigger the addition of editing function icons of the first application and the second application, M editing function icons of the first application and N editing function icons of the second application are added to the first editing component, wherein the M editing function icons and the N editing function icons are editing function icons that were not present in the first editing component before the editing function icons in the first editing component were updated, and the M editing function icons and the N editing function icons are different; when the second input is used to trigger the reduction of editing function icons in the first editing component, cancel the display of at least one editing function icon selected by the second input in the first editing component, and delete the file editing function indicated by at least one editing function icon selected by the second input from the file editing functions of the first editing component.

[0241] In one possible implementation, the above-mentioned receiving module 71 is specifically used to receive the second input of the user dragging the first editing component on the desktop, and the desktop includes at least one application icon; the updating module is specifically used to update the display position of the first editing component; if the first editing component does not cover the application icon before updating the display position, and the first editing component covers the first application icon after updating the display position, add at least one file editing function icon of the first application indicated by the first application icon to the first editing component; if the first editing component does not cover the application icon before updating the display position, and the first editing component covers the first application icon and the second application icon after updating the display position, add at least one file editing function icon of the first application indicated by the first application icon and at least one file editing function icon of the second application indicated by the second application icon to the first editing component; if the first editing component covers the first application icon and the second application icon before updating the display position, and the first editing component covers the first application icon after updating the display position, cancel the display of all editing function icons of the second application icon added in the first editing component, and delete the file editing functions indicated by all editing function icons of the added second application icon from the file editing functions of the first editing component.

[0242] In one possible implementation, the receiving module 71 is specifically configured to receive a second input from a user dragging a first application icon from a desktop onto a first editing component, where the desktop includes at least one application icon. The updating module is specifically configured to, in response to the second input, add at least one file editing function icon of the first application indicated by the first application icon to the first editing component.

[0243] In a possible implementation, the terminal further includes: a generating module. The receiving module 71 is further configured to receive a fourth input from the user to the second and third editing components before receiving a first input from the user to an editing function icon on the first editing component, while displaying the second and third editing components. The second editing component includes at least two editing function icons of at least two first-category editing applications, and the third editing component includes at least two editing function icons of at least two second-category editing applications. The generating module is configured to merge the editing function icons in the second and third editing components in response to the fourth input received by the receiving module to generate a first editing component; wherein the first editing component includes at least two editing function icons of at least two first-category editing applications and at least two editing function icons of at least two second-category editing applications; and the program types of the first and second editing applications are any two of the following types: text editing type, image editing type, video editing type, and audio editing type.

[0244] In one possible implementation, the terminal further includes a display module. The display module is configured to display an editing interface and a component identifier for the first file before the receiving module receives a first user input for an editing function icon on the first editing component, wherein the editing interface includes an input box, and the component identifier is used to indicate the first editing component. The receiving module is further configured to receive a fifth user input for the component identifier and the input box. The display module is configured to update the display of the editing interface and cancel the display of the component identifier in response to the fifth input received by the receiving module; wherein the area corresponding to the input box in the updated editing interface includes the first editing component.

[0245] In a possible implementation, the display module is specifically configured to display an editing function icon on the first editing component in an area corresponding to the input box; or to overlay and display the first editing component on an area corresponding to the input box.

[0246] In one possible implementation, the first file includes a first text; the display module is further configured to, in response to the first input, cause the receiving module 71 to perform a file editing process indicated by the editing function icon selected by the first input on the first file, and then display a second text in the input box, the second text being the text resulting from the file editing process on the first text; the receiving module 71 is further configured to receive a sixth input from the user into the input box. The processing module 72 is further configured to, in response to the sixth input, send the second text to the communication partner, store the second text, cancel the display of the first editing component in the editing interface, and display a component identifier.

[0247] An embodiment of the present application provides a terminal. Since the first editing component integrates the editing functions indicated by the function icons of multiple editing functions of at least two applications, the first editing component has editing function icons of different programs. Therefore, the editing function of the first editing component is more powerful than the editing function of any single application. By editing the first file through the first editing component with more powerful editing function, the user can avoid opening the same file through multiple applications to perform tedious program switching and file editing operations, thereby effectively improving the efficiency of file editing and shortening the time for users to edit files.

[0248] The terminal in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device other than a terminal. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.

[0249] The terminal in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0250] The terminal provided in the embodiment of the present application can implement each process implemented in the above method embodiment. To avoid repetition, it will not be described here.

[0251] Optionally, as shown in Figure 13, an embodiment of the present application also provides an electronic device 90, including a processor 91 and a memory 92, and the memory 92 stores a program or instruction that can be run on the processor 91. When the program or instruction is executed by the processor 91, the various steps of the above-mentioned file editing method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0252] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0253] FIG14 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0254] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101 , a network module 102 , an audio output unit 103 , an input unit 104 , a sensor 105 , a display unit 106 , a user input unit 107 , an interface unit 108 , a memory 109 , and a processor 110 .

[0255] Those skilled in the art will appreciate that the electronic device 100 may further include a power source (such as a battery) for powering various components. The power source may be logically connected to the processor 110 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG14 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components, or have different component arrangements, which will not be described in detail here.

[0256] The user input unit 107 is configured to receive, while a first editing component is displayed, a first user input on an editing function icon on the first editing component, wherein the first editing component includes at least two editing function icons for at least two applications. The processor 110 is configured to, in response to the first input, perform a file editing process indicated by the editing function icon selected by the first input on the first file.

[0257] In the electronic device provided in the embodiment of the present application, since the first editing component integrates the editing functions indicated by the function icons of multiple editing functions of at least two applications, the first editing component has editing function icons of different programs. Therefore, the editing function of the first editing component is more powerful than the editing function of any single application. Editing the first file through the first editing component with more powerful editing function can avoid the user opening the same file through multiple applications to perform tedious program switching and file editing operations, thereby effectively improving the efficiency of file editing and shortening the time for users to edit files.

[0258] Optionally, in some embodiments of the present application, the user input unit 107 is further configured to receive a second user input, where the second input is configured to trigger the addition or removal of an editing function icon for at least one application in the first editing component. The processor 110 is further configured to update the editing function icon on the first editing component in response to the second input.

[0259] Optionally, in some embodiments of the present application, the processor 110 is further used to update the editing function icon of the first editing component in response to the second input, and then, upon receiving the third input from the user to the first editing component, update the first editing component to a component identifier and display the component identifier in an edge area of ​​the display screen; or, when the user has not operated the first editing component for a period of time, update the first editing component to a component identifier and display the component identifier in an edge area of ​​the display screen; or, when switching from a first interface to a second interface, display the component identifier in an edge area of ​​the display screen, the first interface is a program interface of an application that does not have a file editing function, and the second interface is a program interface of an application that has a file editing function; wherein the component identifier is used to indicate the first editing component.

[0260] Optionally, in some embodiments of the present application, the processor 110 is specifically used to add at least one editing function icon of the first application to the first editing component when the second input is used to trigger the addition of an editing function icon of the first application, wherein the at least one editing function icon is an editing function icon that was not present in the first editing component before the editing function icon in the first editing component was updated; when the second input is used to trigger the addition of editing function icons of the first application and the second application, M editing function icons of the first application and N editing function icons of the second application are added to the first editing component, wherein the M editing function icons and the N editing function icons are editing function icons that were not present in the first editing component before the editing function icon in the first editing component was updated, and the M editing function icons and the N editing function icons are different; when the second input is used to trigger the reduction of editing function icons in the first editing component, cancel the display of at least one editing function icon selected by the second input in the first editing component, and delete the file editing function indicated by the at least one editing function icon selected by the second input from the file editing functions of the first editing component.

[0261] Optionally, in some embodiments of the present application, the user input unit 107 is specifically configured to receive a second input of a user dragging a first editing component on a desktop, the desktop including at least one application icon. The processor 110 is specifically configured to update a display position of the first editing component; if the first editing component does not cover the application icon before the display position is updated, and if the first editing component covers the first application icon after the display position is updated, add at least one file editing function icon of the first application indicated by the first application icon to the first editing component; if the first editing component does not cover the application icon before the display position is updated, and if the first editing component covers the first application icon and the second application icon after the display position is updated, add at least one file editing function icon of the first application indicated by the first application icon and at least one file editing function icon of the second application indicated by the second application icon to the first editing component; if the first editing component covers the first application icon and the second application icon before the display position is updated, and if the first editing component covers the first application icon after the display position is updated, cancel the display of all editing function icons of the second application icon added in the first editing component, and delete the file editing functions indicated by all editing function icons of the added second application icon from the file editing functions of the first editing component.

[0262] Optionally, in some embodiments of the present application, user input unit 107 is specifically configured to receive a second input from a user dragging a first application icon on the desktop to the first editing component, where the desktop includes at least one application icon. Processor 110 is specifically configured to, in response to the second input, add at least one file editing function icon of the first application program indicated by the first application icon to the first editing component.

[0263] Optionally, in some embodiments of the present application, the user input unit 107 is further configured to receive a fourth input from the user to the second and third editing components before receiving a first input from the user to an editing function icon on the first editing component, while the second and third editing components are displayed, wherein the second editing component includes at least two editing function icons of at least two first-category editing applications, and the third editing component includes at least two editing function icons of at least two second-category editing applications. The processor 110 is further configured to, in response to the fourth input, merge the editing function icons in the second and third editing components to generate a first editing component; wherein the first editing component includes at least two editing function icons of at least two first-category editing applications and at least two editing function icons of at least two second-category editing applications; and the program types of the first and second editing applications are any two of the following: text editing type, image editing type, video editing type, and audio editing type.

[0264] Optionally, in some embodiments of the present application, the display unit 106 is configured to display an editing interface and a component identifier for the first file before receiving a first input from the user on an editing function icon on the first editing component, wherein the editing interface includes an input box, and the component identifier is used to indicate the first editing component. The user input unit 107 is further configured to receive a fifth input from the user on the component identifier and the input box. The processor 110 is further configured to update the display of the editing interface and cancel the display of the component identifier in response to the fifth input; wherein the area corresponding to the input box in the updated editing interface includes the first editing component.

[0265] Optionally, in some embodiments of the present application, the display unit 106 is specifically used to display the editing function icon on the first editing component in the area corresponding to the input box; or, to superimpose and display the first editing component on the area corresponding to the input box.

[0266] Optionally, in some embodiments of the present application, the first file includes a first text; the display unit 106 is further configured to, in response to the first input, display a second text in the input box after performing a file editing process indicated by the editing function icon selected by the first input on the first file, where the second text is the text after the file editing process is performed on the first text. The user input unit 107 is further configured to receive a sixth input from the user into the input box. The processor 110 is further configured to, in response to the sixth input, send the second text to the communication partner, store the second text, cancel the display of the first editing component in the editing interface, and display the component identifier.

[0267] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0268] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described here.

[0269] It should be understood that in an embodiment of the present application, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0270] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0271] Processor 110 may include one or more processing units. Optionally, processor 110 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 110.

[0272] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0273] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0274] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0275] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0276] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned file editing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0277] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0278] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0279] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A file editing method, the method comprising: In a case where a first editing component is displayed, receiving a first input from a user on an editing function icon on the first editing component, wherein the first editing component includes at least two editing function icons of at least two applications; In response to the first input, a file editing process indicated by the editing function icon selected by the first input is performed on a first file.

2. The method according to claim 1, wherein: The method further comprises: receiving a second input from a user, where the second input is used to trigger adding or reducing an editing function icon of at least one application in the first editing component; In response to the second input, an editing function icon on the first editing component is updated.

3. The method according to claim 2, wherein: After updating the editing function icon of the first editing component in response to the second input, the method further includes: Upon receiving a third input from the user on the first editing component, updating the first editing component to a component identifier, and displaying the component identifier in an edge area of ​​the display screen; Alternatively, when the user does not operate the first editing component for a period of time, the first editing component is updated to a component logo, and the component logo is displayed in an edge area of ​​the display screen; Alternatively, when switching from a first interface to a second interface, a component logo is displayed in an edge area of ​​the display screen, the first interface is a program interface of an application without a file editing function, and the second interface is a program interface of an application with a file editing function; The component identifier is used to indicate the first editing component.

4. The method according to claim 2, wherein: The updating of the editing function icon of the first editing component includes: In a case where the second input is used to trigger adding an editing function icon of a first application, adding at least one editing function icon of the first application to the first editing component, wherein the at least one editing function icon is an editing function icon that was not present in the first editing component before the editing function icons in the first editing component were updated; In a case where the second input is used to trigger the addition of editing function icons of the first application and the second application, M editing function icons of the first application and N editing function icons of the second application are added to the first editing component, wherein the M editing function icons and the N editing function icons are both editing function icons that were not in the first editing component before the editing function icons in the first editing component are updated, and the M editing function icons and the N editing function icons are different; In the case where the second input is used to trigger the reduction of editing function icons in the first editing component, the display of at least one editing function icon selected by the second input in the first editing component is canceled, and the file editing function indicated by at least one editing function icon selected by the second input is deleted from the file editing functions of the first editing component.

5. The method according to claim 4, wherein: The receiving a second input from the user comprises: receiving a second input of a user dragging a first editing component on a desktop, wherein the desktop includes at least one application icon; The updating of the editing function icon of the first editing component in response to the second input comprises: Updating the display position of the first editing component; If the first editing component does not cover the application icon before the display position is updated, and the first editing component covers the first application icon after the display position is updated, adding at least one file editing function icon of the first application indicated by the first application icon to the first editing component; If the first editing component does not cover the application icon before the display position is updated, and the first editing component covers the first application icon and the second application icon after the display position is updated, add at least one file editing function icon of the first application indicated by the first application icon and at least one file editing function icon of the second application indicated by the second application icon to the first editing component; When the first editing component covers the first application icon and the second application icon before updating the display position, and when the first editing component covers the first application icon after updating the display position, the display of all editing function icons of the second application icon added in the first editing component is canceled, and the file editing functions indicated by all editing function icons of the second application icon added are deleted from the file editing functions of the first editing component.

6. The method according to claim 4, wherein: The receiving a second input from the user comprises: receiving a second input from a user dragging a first application icon on a desktop to the first editing component, the desktop including at least one application icon; The updating of the editing function icon of the first editing component in response to the second input comprises: In response to the second input, at least one file editing function icon of the first application program indicated by the first application icon is added to the first editing component.

7. The method according to claim 1, wherein: Before receiving a first input from a user on an editing function icon on the first editing component, the method further includes: In a case where a second editing component and a third editing component are displayed, receiving a fourth input from a user on the second editing component and the third editing component, wherein the second editing component includes at least two editing function icons of at least two editing applications of the first category, and the third editing component includes at least two editing function icons of at least two editing applications of the second category; In response to the fourth input, merging the editing function icons in the second editing component and the third editing component to generate a first editing component; Among them, the first editing component includes at least two editing function icons of the at least two first-category editing applications and at least two editing function icons of the at least two second-category editing applications; the program types of the first-category editing applications and the second-category editing applications are any two of the following types: text editing type, image editing type, video editing type, audio editing type.

8. The method according to claim 1, wherein: Before receiving a first input from a user on an editing function icon on the first editing component, the method further includes: Displaying an editing interface and a component identifier of a first file, wherein the editing interface includes an input box, and the component identifier is used to indicate a first editing component; receiving a fifth input from a user regarding the component identifier and the input box; In response to the fifth input, updating the display of the editing interface and canceling the display of the component identification; Among them, the area corresponding to the input box in the updated editing interface includes the first editing component.

9. The method according to claim 8, wherein: The updating of the display of the editing interface includes: In the area corresponding to the input box, displaying the editing function icon on the first editing component; Alternatively, the first editing component is displayed superimposed on the area corresponding to the input box.

10. The method according to claim 8, wherein: The first file includes a first text; after executing the file editing process indicated by the editing function icon selected by the first input on the first file in response to the first input, the method further includes: Displaying a second text in the input box, where the second text is the text obtained by performing file editing processing on the first text; receiving a sixth input from the user into the input box; In response to the sixth input, the second text is sent to the communication object, the second text is stored, the display of the first editing component is canceled in the editing interface, and the component identifier is displayed.

11. A terminal, wherein: The terminal comprises: a receiving module, configured to receive a first input from a user on an editing function icon on the first editing component when the first editing component is displayed, wherein the first editing component includes at least two editing function icons of at least two applications; The processing module is used for executing the file editing process indicated by the editing function icon selected by the first input on the first file in response to the first input received by the receiving module.

12. The terminal according to claim 11, wherein: The receiving module is further used to receive a second input from a user, where the second input is used to trigger adding or reducing an editing function icon of at least one application in the first editing component; The terminal further includes an updating module, configured to update an editing function icon on the first editing component in response to a second input received by the receiving module.

13. The terminal according to claim 12, wherein: The update module is also used for, after updating the editing function icon of the first editing component in response to the second input, updating the first editing component to a component identifier and displaying the component identifier in an edge area of ​​the display screen upon receiving a third input from the user to the first editing component; or, when the user has not operated the first editing component for a period of time, updating the first editing component to a component identifier and displaying the component identifier in an edge area of ​​the display screen; or, when switching from a first interface to a second interface, displaying the component identifier in an edge area of ​​the display screen, wherein the first interface is a program interface of an application that does not have a file editing function, and the second interface is a program interface of an application that has a file editing function; wherein the component identifier is used to indicate the first editing component.

14. The terminal according to claim 12, wherein: The updating module is specifically configured to add at least one editing function icon of the first application to the first editing component when the second input is used to trigger the addition of the editing function icon of the first application, wherein the at least one editing function icon is an editing function icon that is not present in the first editing component before the editing function icon in the first editing component is updated; In a case where the second input is used to trigger the addition of editing function icons of the first application and the second application, M editing function icons of the first application and N editing function icons of the second application are added to the first editing component, wherein the M editing function icons and the N editing function icons are both editing function icons that were not in the first editing component before the editing function icons in the first editing component are updated, and the M editing function icons and the N editing function icons are different; In the case where the second input is used to trigger the reduction of editing function icons in the first editing component, the display of at least one editing function icon selected by the second input in the first editing component is canceled, and the file editing function indicated by at least one editing function icon selected by the second input is deleted from the file editing functions of the first editing component.

15. The terminal according to claim 14, wherein: The receiving module is specifically used to receive a second input of a user dragging a first editing component on a desktop, wherein the desktop includes at least one application icon; The updating module is specifically used to update the display position of the first editing component; If the first editing component does not cover the application icon before the display position is updated, and the first editing component covers the first application icon after the display position is updated, adding at least one file editing function icon of the first application indicated by the first application icon to the first editing component; If the first editing component does not cover the application icon before the display position is updated, and the first editing component covers the first application icon and the second application icon after the display position is updated, add at least one file editing function icon of the first application indicated by the first application icon and at least one file editing function icon of the second application indicated by the second application icon to the first editing component; When the first editing component covers the first application icon and the second application icon before updating the display position, and when the first editing component covers the first application icon after updating the display position, the display of all editing function icons of the second application icon added in the first editing component is canceled, and the file editing functions indicated by all editing function icons of the second application icon added are deleted from the file editing functions of the first editing component.

16. The terminal according to claim 14, wherein: The receiving module is specifically configured to receive a second input from a user dragging a first application icon on the desktop to the first editing component, wherein the desktop includes at least one application icon; The updating module is specifically configured to add at least one file editing function icon of the first application program indicated by the first application icon to the first editing component in response to the second input.

17. The terminal according to claim 11, wherein: The receiving module is further configured to receive a fourth input from the user to the second editing component and the third editing component when the second editing component and the third editing component are displayed before receiving a first input from the user to an editing function icon on the first editing component, wherein the second editing component includes at least two editing function icons of at least two editing applications of the first category, and the third editing component includes at least two editing function icons of at least two editing applications of the second category; The terminal further includes a generating module, configured to merge the editing function icons in the second editing component and the third editing component in response to a fourth input received by the receiving module, to generate a first editing component; Among them, the first editing component includes at least two editing function icons of the at least two first-category editing applications and at least two editing function icons of the at least two second-category editing applications; the program types of the first-category editing applications and the second-category editing applications are any two of the following types: text editing type, image editing type, video editing type, audio editing type.

18. The terminal according to claim 11, wherein: The terminal further comprises a display module, which is used to display an editing interface and a component identifier of the first file before the receiving module receives a first input of a user to an editing function icon on the first editing component, wherein the editing interface comprises an input box and the component identifier is used to indicate the first editing component; The receiving module is further used to receive a fifth input of the user on the component identifier and the input box; The display module is used to update the display of the editing interface and cancel the display of the component identification in response to the fifth input received by the receiving module; Among them, the area corresponding to the input box in the updated editing interface includes the first editing component.

19. The terminal according to claim 18, wherein: The display module is specifically configured to display the editing function icon on the first editing component in the area corresponding to the input box; Alternatively, the first editing component is displayed superimposed on the area corresponding to the input box.

20. The terminal according to claim 18, wherein: The first file includes a first text; the display module is further used for the receiving module to respond to the first input, after executing the file editing process indicated by the editing function icon selected by the first input on the first file, to display a second text in the input box, wherein the second text is the text after the file editing process is executed on the first text; The receiving module is further used to receive a sixth input from the user to the input box; The processing module is further configured to, in response to the sixth input, send the second text to a communication partner, store the second text, cancel the display of the first editing component in the editing interface, and display the component identifier.

21. An electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the file editing method as described in any one of claims 1 to 10.

22. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the file editing method according to any one of claims 1 to 10.

23. A chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Text editing method and device, and electronic equipment

    CN111638838A

  • Document editing method and device

    CN114564921A

  • Content editing method and device, equipment and storage medium

    CN116485947A

  • File editing method, terminal, electronic equipment and storage medium

    CN117149019A

  • Desktop editing method and apparatus, and electronic device

    WO2023046106A1