Content editing method, medium and electronic equipment
By implementing the content editing method on an electronic device, users can quickly create or add memorandum content, solving the problem of many operation steps and low efficiency in the prior art, and improving the efficiency of content editing.
Patent Information
- Application Number
- CN202311370718.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2025-04-22
AI Technical Summary
When users create or add memorandum content on electronic devices, they need to perform multiple operational steps, resulting in inefficiency.
A content editing method is provided, by receiving a selected operation in the application interface of the second application and detecting a preset operation, generating a file containing the selected content or adding content to an existing file according to the preset operation.
Users can quickly create new files based on the selected content or add content to existing files without multiple clicks or opening files, which significantly saves operation time.
Smart Images

Figure CN119862160A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a content editing method, medium and electronic device. Background Art
[0002] The user can use the memo application of the electronic device to record some memo information or matters, etc. For example, after the user obtains some useful data or reminder matters in other applications (such as news, blogs or instant messaging software, etc.), the user will record it in the memo.
[0003] However, if a user wants to create a new memo on an electronic device or append content to an existing memo, multiple steps are usually required. For example, the process of a user creating a new memo includes: the user first opens the memo application on the electronic device, then selects the control for creating a new memo in the memo application, and then the electronic device generates a new blank memo. The user then inserts the content obtained from other applications into the newly created memo. If the user needs to continue to append content to the newly created memo, he or she also opens the corresponding memo to be appended, and then inserts the content into the memo.
[0004] In this way, the user needs to perform multiple operations to record the content obtained from other applications in the memo, which reduces the efficiency of the user in creating a new memo or appending content to the memo. Summary of the invention
[0005] In view of this, the present application provides a content editing method, a medium, and an electronic device.
[0006] In a first aspect, a content editing method is provided, comprising: being applied to a first electronic device, the first electronic device comprising a first application, the application interface of the first application comprising a first interface element and a second interface element, the first interface element and the second interface element being not content editable areas, wherein the method comprises: receiving a selection operation in the application interface of the second application, the selection operation being used to select a first content; detecting a preset operation for the first content; generating a first file containing the first content according to the preset operation corresponding to the first interface element; or, adding the first content to a second file corresponding to the second interface element according to the preset operation corresponding to the second interface element.
[0007] In the above scheme, the first application may be a content editing application such as a memo, note, reminder, sticky note or document editing. The first interface element may be a folder control displayed in the folder list area, a folder title bar displayed in the title area and a blank area. The second interface element may be a file control in the file list, such as a memo control in the memo list area. The application interface of the first application may also display a content editable area, while the first interface element and the second interface element do not belong to the content editable area.
[0008] Furthermore, corresponding to the preset operation corresponding to the first interface element, the first electronic device creates a new file and adds the selected first content to the newly created file. Specifically, a new file may be created in the folder corresponding to the first interface element. Corresponding to the preset operation corresponding to the second interface element, the electronic device appends the selected content to the file corresponding to the second interface element.
[0009] In this way, users can quickly create a new file based on the selected content, or append content to an existing file. Users do not need to first click the control to create a new file or open an existing file, and then drag or paste the content to add the content of other applications to the file. This method reduces the operations that users need to perform and saves users time in creating new files or appending content to files.
[0010] In combination with the first aspect, in some implementations, the first interface element is a folder control, a folder title bar or a blank area, and the folder control displays the folder title; the second interface element is a file control in the file list, and the file control displays the file title.
[0011] In the above scheme, the interface elements include a folder control, a folder title bar, a file control, and a blank area displayed on the application interface of the first application. Among them, the folder control can display information such as the folder title and the number of files contained in the folder, and the folder control includes a folder control in the folder list. The folder title bar is used to display the title corresponding to the currently opened folder. The file control displays the title of the file, such as multiple file controls displayed in the file list. The blank area can be an area other than the above-mentioned file control, folder title bar, folder control, and editable area.
[0012] In combination with the first aspect, in some implementations, the first interface element is located in a first area; at least one second interface element associated with the first interface element is located in a second area, and the first area and the second area do not overlap on the interface of the first application.
[0013] In the above solution, the first interface element and the second interface element belong to different display areas in the application interface, for example, they can be parallel areas. That is, the folder control and the file control are displayed separately, and when the folder control is clicked, the controls of the files contained in the folder will be displayed in the second area.
[0014] In combination with the first aspect, in some implementations, the first interface element and at least one second interface element associated with the first interface element are arranged in a tree form in a third area, and the at least one second interface element is in a first sub-area of the third area.
[0015] In the above solution, the first interface element and the second interface element may be staggered and distributed in the same area. For example, when a folder control is clicked, controls for files contained in the folder are displayed below the folder control.
[0016] In combination with the first aspect, in some implementations, the first application is one of a note, a memo, a document editor, and a reminder.
[0017] In the above solution, the first application can be any content editing application, so that the user can quickly create a new file based on the selected content, or append content to an existing file, thereby reducing the operations that the user needs to perform and saving the user's time in creating a new file or appending content to a file.
[0018] In combination with the first aspect, in some implementations, the preset operation is one or more of a click operation, a drag operation, and a long press operation.
[0019] In the above scheme, the user can first copy the selected content in other applications, and then perform operations such as long press, two-finger click, or three-finger click in the content editing application interface. Alternatively, the user can drag the selected content to the content editing application interface after selecting the content in other applications. When the preset operation is a drag operation, the electronic device can detect the position corresponding to the stop drag operation, that is, the corresponding position when the user lets go, and then the electronic device determines the corresponding interface element based on the position. For another example, when the preset operation is click, long press, etc., the electronic device will obtain the position of the click, long press, etc. operation, and then the electronic device determines the corresponding interface element based on the position.
[0020] In this way, the user can quickly create a new file or append content to an existing file by directly executing the preset operation according to the selected content. The user does not need to first click the control to create a new file or open an existing file, and then drag and drop or paste the content. This method reduces the operations that the user needs to perform and saves the user's time in creating a new file or appending content to a file.
[0021] In combination with the first aspect, in some implementations, the method further includes: detecting that the first content is dragged from the application interface of the second application to the application interface of the first application.
[0022] In combination with the first aspect, in some implementations, the method further includes: detecting a copy operation in an application interface of the second application, the copy operation being used to copy the first content; and detecting a paste operation for the first content in the application interface of the first application.
[0023] In combination with the first aspect, in some implementations, the second application belongs to a second electronic device, wherein the first electronic device and the second electronic device are the same device, or the first electronic device and the second electronic device are different devices.
[0024] In the above solution, the first application and the second application can be different applications on the same device, or they can be applications on different devices. In this way, for scenarios such as multi-screen collaboration, users can quickly create a new file or append content to an existing file by directly performing preset operations based on the selected content. This reduces the operations that users need to perform and saves users time in creating new files or appending content to files.
[0025] In a second aspect, the present application provides an electronic device, including a processor and a memory, wherein the memory is used to store instructions and the processor is used to execute instructions. When the processor executes the instructions, the method described in the first aspect is performed.
[0026] In a third aspect, the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on an electronic device, the method described in the first aspect is executed.
[0027] In a fourth aspect, the present application provides a computer program product, which includes computer instructions. When the computer program product is executed by a computing device, the computing device performs the method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments.
[0029] Figure 1 This is a schematic diagram of the interface of a memo application on a computer provided in an embodiment of the present application;
[0030] Figure 2 It is a schematic diagram of an interface corresponding to a preset operation performed by a user in a folder list area on a computer provided in an embodiment of the present application;
[0031] Figure 3It is a schematic diagram of an interface corresponding to a preset operation performed by a user in a blank area or a title area on a computer provided in an embodiment of the present application;
[0032] Figure 4 It is a schematic diagram of an interface corresponding to a preset operation performed by a user in a memo area on a computer provided in an embodiment of the present application;
[0033] Figure 5 It is a schematic diagram of an interface including a memo list in a folder list of a memo application on a computer provided by an embodiment of the present application;
[0034] Figure 6 This is a schematic diagram of the memo application interface of a mobile phone provided in an embodiment of the present application;
[0035] Figure 7 This is a schematic diagram of an interface for a mobile phone provided by an embodiment of the present application to quickly create a new memo by long pressing the mobile phone when the memo application and the browser application are displayed in full screen;
[0036] Figure 8 This is a schematic diagram of an interface for a user to quickly create a new memo by dragging and dropping in a state where a memo application and a browser application are displayed in full screen on a mobile phone provided by an embodiment of the present application;
[0037] Fig. 9 This is a schematic diagram of an interface for a user to quickly create a new memo when a mobile phone terminal displays a memo application and a browser application in split screen mode, as provided in an embodiment of the present application;
[0038] Fig.10 This is a schematic diagram of an interface for a user to quickly create a new memo when a mobile phone terminal displays a memo application and a browser application in a floating window provided by an embodiment of the present application;
[0039] Fig.11A is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0040] Fig. 11B is a schematic diagram of the software structure of the electronic device provided in the embodiment of the present application;
[0041] Fig.12 It is a flowchart of a content editing method provided in an embodiment of the present application;
[0042] Fig.13 It is a structural diagram of the content editing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] Illustrative embodiments of the present application include, but are not limited to, content editing methods, media, and electronic devices.
[0044] As before, users need to perform many steps to create a new memo or append content to a memo. In order to solve the problem of low efficiency in the process of users creating a new memo or appending content to a memo, the present application provides a content editing method, which is applied to client 100 and client 200. In addition, the client 100 applicable to the technical solution of the present application can be a content editing application such as a memo, note, reminder, note or document editing, or an electronic device capable of running the above content editing application, such as a mobile phone, tablet computer, wearable device, laptop computer, personal computer (PC), netbook, etc. The client 200 can be an application such as a browser, social media, content editing media or instant messaging software, or an electronic device capable of running the above application. The present application does not impose any restrictions on the specific type of the electronic device.
[0045] It should be understood that the client 100 and the client 200 can be the same electronic device, or content editing applications and other applications on the same electronic device. The client 100 and the client 200 can also be different electronic devices, or applications on different electronic devices. When the client 100 and the client 200 are different electronic devices, the client 100 and the client 200 can perform multi-screen collaborative operations through communication methods such as Bluetooth, local area network, etc., or the client 100 and the client 200 can log in to the same device account.
[0046] The content editing method mentioned in the embodiment of the present application can be applied to multiple scenarios of applications (as an example of the first application) for content, document or file management, such as memos, notes, reminders, sticky notes or document editing.
[0047] The following uses a scenario in which the client 100 is an electronic device 100 and the first application is a memo application as an example to introduce the content editing method mentioned in the embodiment of the present application.
[0048] The interface of the memo application on the electronic device 100 includes one or more areas of a folder list area, a memo list area, a memo title area, and a blank area. Among them, the folder list area is used to display information of multiple folders contained in the memo application. The memo title area is used to display the title information of one of the currently selected folders, for example, the title of the folder currently opened by the user. The memo list area is used to display a list of memos contained in one of the folders. The blank area is an area that does not include any controls or folder titles.
[0049] Furthermore, a folder includes multiple memos, and the memo information is subordinate to the folder information. A folder may also include subfolders, and the memos under the subfolders are subordinate to the corresponding subfolders. In the memo application, you can also add tags to each memo, and the memos can also be subordinate to the corresponding tags. Furthermore, the memo application can also classify memos by tags on the basis of establishing folders, and then the memos are subordinate to their corresponding tags and subordinate to the corresponding folders. This application does not specifically limit the hierarchical management method in the memo application.
[0050] The electronic device 100 can obtain content selected by the user from other applications for acquiring and editing content, such as browsers, social media, content editing media, or instant messaging applications (as examples of second applications), such as at least one content such as text, pictures, videos, or audio. After the user selects the content, the preset operation is performed in the memo application, such as the user dragging the selected content to the interface of the memo application. Then, the electronic device 100 will generate a memo based on the selected content according to the area position corresponding to the preset operation performed by the user. For example, the electronic device 100 generates a memo based on the selected content, including: creating a new memo and adding the content selected by the user to the new memo; or the electronic device 100 adds the content selected by the user to the existing memo.
[0051] In this way, users can quickly create a new memo based on the selected content, or append content to an existing memo. In this way, users do not need to first click the control to create a new memo or open an existing memo, and then drag or paste the content to add the content of other applications to the memo. This method reduces the operations that users need to perform and saves users time in creating new memos or appending content to memos.
[0052] Optionally, when the preset operation corresponds to the blank area and the title area, the electronic device 100 will create a new memo in the currently opened folder and add the content selected by the user to the newly created memo. When the preset operation corresponds to the area of the specified folder in the folder list area, the electronic device 100 will create a new memo in the folder specified by the user and add the content selected by the user to the newly created memo. When the preset operation corresponds to the specified memo in the memo list area, the electronic device 100 will append content to the memo specified by the user, for example, adding the content selected by the user from the end of the content including text, images, etc. in the specified memo.
[0053] In this way, different designated locations will correspond to different ways of generating memos. By obtaining the location where the user performs a preset operation, the electronic device 100 can determine whether the user wants to create a new memo or append content to the memo. In addition, the electronic device 100 can further determine the folder to which the newly created memo belongs, or determine the memo to which the user needs to append content, based on different designated locations. In this way, the user does not need to select a folder or a specific memo first, which reduces the operations that the user needs to perform and saves the user time in creating a new memo or appending content to the memo.
[0054] Optionally, the preset operation performed by the user in the memo application may also be an operation such as clicking or long pressing. For example, the electronic device 100 first obtains that the user has copied the selected content in other applications. For example, after the user selects the content with the mouse, he clicks the right button of the mouse and chooses to copy the content. Then the electronic device 100 obtains that the user performs a right-click operation in the specified area in the memo application and chooses to paste the content. Then the electronic device 100 will create a new memo with the selected content or append the selected content to the existing memo according to the method of generating a memo corresponding to the specified area. It should be understood that the present application does not specifically limit the type of preset operation, and it may also be other gestures with multiple fingers.
[0055] In this way, users can add memo content to a specified folder or specified memo by dragging, clicking, or long pressing. For applications that do not support drag operations, users can also use other operations to quickly generate memos. This reduces the number of operations that users need to perform and saves users time in creating or appending content to memos.
[0056] Optionally, the user can also obtain content from another electronic device 200 that is communicatively connected to the terminal 100, where the electronic device 200 is installed with applications such as a browser, social media, content editing media, or instant messaging (as an example of a second application), and interacts with the memo application on the electronic device 100.
[0057] The electronic device 100 and the electronic device 200 can also perform multi-screen collaborative operations between hardware and hardware through communication methods such as Bluetooth and local area network, or virtualize the electronic device 200 as an application in the electronic device 100 for multi-screen collaborative operations. The user can select the content on the interface through the electronic device 200, and then the electronic device 200 sends the selected content to the electronic device 100. Then the user performs a preset operation based on the selected content on the electronic device 100, and then the electronic device 100 can generate a memo based on the position corresponding to the preset operation. In this way, the method can be applied to multiple electronic devices, and the user can also generate a memo based on the content obtained from other devices.
[0058] The following uses the electronic device 100 running a memo application and a browser application as an example to introduce the interface of the content editing method provided by the present application.
[0059] First, taking the electronic device 100 as a PC as an example, the PC is usually connected to input devices such as a keyboard, a mouse, and a touch pad, and the preset operation can be performed by the user through the mouse, keyboard and / or touch pad.
[0060] Figure 1 The interface 10A of a memo application on a PC is shown, and the interface 10A includes a folder list area 11, a title area 12, a memo list area 13, an editable area 14, and a blank area 15. Moreover, the folder list area 11 and the memo list area 13 are arranged in parallel.
[0061] The folder list area 11 displays multiple memo folders, including system preset folders: "All Notes", "My Favorites", "Encrypted Notes" and "Recently Deleted", as well as folders created by users: "Math Problems", "English Problems" and an unnamed "Unspecified" folder. The "Math Problems" folder also includes "Collection 1" and "Collection 2" subfolders, and the "English Problems" also includes a "Test" subfolder. The folder list area 11 can also display the number of memos contained in each of the above folders, for example, the number of memos contained in "Math Problems" is 2.
[0062] In some embodiments, in addition to displaying the memo folder list, the folder list area 11 can also display a list of memos included in each memo folder. For example, after the user clicks "Collection 1", a list of memos included in "Collection 1" will be displayed below "Collection 1". For details, please refer to the following Figure 5 Related description.
[0063] The following explains the types of elements in the interface, the relationships between the types, and the organizational subordination.
[0064] For example, folders such as system folders and user-created folders such as "Math Problems", and subfolders such as "Collection 1" and "Collection 2" are examples of the first interface elements displayed in the interface of the memo application.
[0065] A folder can be understood as a collection (as an example of the first type) for organizing various files. A file can be understood as an element (as an example of the second type) in a folder (collection).
[0066] Folders and subfolders are of the first type. However, folders and subfolders are Figure 1In the interface shown, the organization form is presented as the relationship that the subfolders "Collection 1" and "Collection 2" are subordinate to the "Math Problems" folder. The subfolders are sub-collections of the "Math Problems" collection. For example, system folders and user-created folders such as "Math Problems" can include multiple files. For example, the "All Notes" folder includes files such as "Meeting Minutes" and "Travel Experiences".
[0067] In the interface of the memo application, it can include "collection, subcollection, element", or just "collection, element". Regardless of the type of element, the organizational structure can also present subfolders and elements as belonging to a folder at the same level. For example, at the next level of the "math problem" folder, it can also include files that do not belong to "collection 1" or "collection 2" ( Figure 1 It is understandable that the sub-folders such as "Collection 1" may further include sub-folders belonging to the same type as the first type ( Figure 1 (not shown in the figure).
[0068] The following combination Figure 1 The interface 10A of the memo application and corresponding operations on the interface are further described.
[0069] The title area 12 is used to display the title of the folder currently selected by the user, or the title of the folder opened by default in the memo application. Figure 1 In the example, the folder opened is "All Notes", and the "All Notes" folder contains all the memos included in the current memo application. The title area 12 also includes a "New Memo" control 12a, and the user can click the control 12a to create a new memo in the folder currently displayed in the title area 12.
[0070] The memo list area 13 is used to display the titles of the memos included in the folder opened by the user, for example, "Meeting Minutes", etc. The memos displayed in the memo list area 13 all belong to the folder displayed in the title area 12, or are a plurality of memos recently created in the folder displayed in the title area 12. Optionally, in addition to displaying the titles of the memos, the memo list area 13 may also display the creation time of each memo, whether it is collected, and other information.
[0071] The editable area 14 is used to display the information of the memo currently selected by the user, or the memo opened by default in the memo application, including the title of the memo, the creation time, and the memo content, etc. It should be understood that if there is no memo in the current memo application, or the user has not opened any memo, the editable area 14 may not display any content, and the editable area 14 may also be used as a blank area 15.
[0072] The blank area 15 is an area in the memo application where no interface elements are displayed, such as an area other than the above-mentioned display area. In some embodiments, the range of the blank area 15 may also vary with the range of the content displayed in the above-mentioned area. For example, when the number of memos displayed in the memo list area 13 is small, the entire area below the memo list area 13 may also belong to the blank area 15.
[0073] It should be understood that Figure 1 As an example only, the present application does not limit the interface of the memo application. In some embodiments, the positions of the various areas included in the memo application can be different from the positions of the areas in the memo application. Figure 1 Different, the interface of the memo application can also include more or fewer areas. For example, the interface of the memo application can also refer to the following Figure 5 Related description.
[0074] Below Figure 1 The interface 10A of the memo application shown is used as an example for explanation. After the user selects the content in other applications, the user performs a preset operation in the interface 10A, and then the PC can determine the generation method of the memo according to the area corresponding to the preset operation performed by the user. Among them, the preset operation can be one or more of the operations such as dragging or clicking.
[0075] Taking the preset operation of dragging as an example, the memo generation methods corresponding to different areas are introduced. Figures 2 to 4 As shown, taking the example of a user selecting content from a browser application, it should be understood that content can also be selected from other types of applications, and this application does not specifically limit the type of application.
[0076] Embodiment A1: The PC detects that the user drags content data to the folder list area 11 .
[0077] like Figure 2 (A) in the figure shows a PC interface 20, which includes a memo application interface 10A and a browser interface 12A. It may also include an "account information" control 21, a "search" control 22, and a "common application" status bar 23, and the status bar 23 also includes icons of multiple common applications.
[0078] The content in the browser interface 12A includes pictures and text. Exemplarily, the following is an example of the text 12a selected by the user in the text content. It should be understood that the content selected by the user can also be one or more of pictures, videos or audios, and this application does not make specific restrictions on this.
[0079] After selecting the text 12 a , the user long presses the text 12 a and drags it to the memo application interface 10A, and the user stops the dragging operation in the folder list area 11 , that is, the user releases the text 12 a after dragging it to the folder list area 11 .
[0080] When the PC determines that the position corresponding to the user stopping the dragging operation is the folder list area 11, it will also determine the folder corresponding to the position. Then, a new blank memo is created under the folder, and the text 12a is added to the blank memo.
[0081] For example, when the PC detects that the position corresponding to the stop drag operation is area 11a in the folder list area 11, it determines that area 11a corresponds to the "Collection 1" folder. Figure 2 In the interface 24 shown in (B), the PC creates a new blank memo in the "Collection 1" folder in the interface 10B of the memo application. And, as shown in the editable area 14, the PC also names its title as the default title name: "Untitled". The memo content is the content of the text 12a, and the memo time is the current system time. And, the title area 12 and the memo list area 13 also display the title of "Collection 1" and the memo list included in "Collection 1" accordingly.
[0082] If the PC only obtains that the user has specified a parent folder, but has not specified a specific subfolder in the parent folder. The PC can also create a new folder in the parent folder, and create a new blank memo in the newly created folder. Alternatively, the PC creates a separate memo at the same level as the subfile, and adds the content selected by the user to the memo. Alternatively, the PC selects a recently visited folder in an existing subfolder, and creates a new blank memo in the recently visited folder. The recently visited folder can be the subfolder to which the most recently generated memo in the parent folder belongs, or it can be the subfolder to which the memo that the user last browsed belongs.
[0083] For example, the PC detects that the position corresponding to the stop drag operation is as follows Figure 2 When the area 11b in the folder list area 11 shown in (A) in the figure is selected, since the "English Questions" folder in the area 11b is a parent folder, it includes a subfolder "Test". The PC can also create a new memo based on the text 12a in the "Test" folder. Alternatively, a new memo can be created directly in the "English Questions" folder, and the memo is at the same level as the "Test" folder. Alternatively, another new folder can be created, such as an "Unnamed" folder, and then a new memo can be created in the "Unnamed" folder based on the text 12a.
[0084] In summary, when the PC detects that the user drags the selected content to the display area of a folder, it can directly create a new memo in the corresponding folder based on the content selected by the user. The user does not need to select the corresponding folder first, then click the "New Memo" button in the corresponding folder, and then add the selected content to the newly created memo. This method reduces the operations that the user needs to perform, saves the user's time in creating new memos, and improves the efficiency of creating new memos.
[0085] Embodiment A2: The PC detects that the user drags the content data to the title area 12 or the blank area 15 .
[0086] like Figure 3 As shown in (A), after selecting the text 12a, the user long presses the text 12a and drags it to the memo application interface 10A, and then the user stops the dragging operation in the title area 12 or the blank area 15, that is, the user releases the text 12a after dragging it to the title area 12 or the blank area 15.
[0087] The PC determines the position corresponding to the user stopping the dragging operation as follows Figure 1 When the title area 12 or the blank area 15 is shown, a new blank memo will be created under the currently opened folder, and the text 12a will be added to the blank memo. Among them, the currently opened folder is the folder corresponding to the folder title displayed in the title area 12.
[0088] For example, Figure 3 As shown in (A), the folder currently displayed in the title area 12 is the "All Notes" folder. When it is detected that the text 12a is dragged to the title area 12 or the blank area 15, a new memo will be created under the "All Notes" folder, and the text 12a will be added to the blank memo. Since the "All Notes" folder includes all memos in the memo application, including all memos in the "Math Problems", "English Problems" and "Unspecified" folders. Then, the newly created memo can be created in the default folder according to the preset method of the memo application, for example, the default folder is the "Unspecified" folder.
[0089] like Figure 3 In the interface 25 shown in (B), the default folder is the "Unspecified" folder. As shown in the interface 10C of the memo application, the PC will create a new blank memo in the "Unspecified" folder. As shown in the editable area 14, the PC will also name its title as the default title name: "Untitled", the memo content is the content of the text 12a, and the memo time is the current system time. In addition, the title area 12 and the memo list area 13 also display the "Unspecified" information accordingly.
[0090] Optionally, when the PC determines that the user stops dragging the corresponding blank area 15, a new memo may be created in another folder. For example, a recently visited folder is selected in an existing subfolder, and a new blank memo is created in the recently visited folder.
[0091] Optionally, the blank area 15 can be further divided into a blank area below the folder list area 11 and a blank area below the memo list area 13. When the user stops dragging the blank area below the folder list area 11, the PC can create a new memo in a default folder, such as a recently accessed folder or an "unspecified" folder. When the user stops dragging the blank area below the memo list area 13, a new memo can be created in the folder currently displayed in the memo list area 13.
[0092] In summary, when the PC detects that the user drags the selected content to the blank area 15 or the title area 12, a new memo can be directly created in the currently opened folder based on the content selected by the user. The user does not need to click the "New Memo" button and then add the selected content to the newly created memo. This method reduces the operations that the user needs to perform, saves the user's time in creating a new memo, and improves the efficiency of creating a new memo.
[0093] Embodiment A3: The PC detects that the user drags content data to the memo list area 13 .
[0094] After selecting the text 12 a , the user long presses the text 12 a and drags it to the memo application interface 10A, and the user stops the dragging operation in the memo list area 13 , that is, the user releases the text 12 a after dragging it to the memo list area 13 .
[0095] The PC determines the position corresponding to the user stopping the dragging operation as follows Figure 1 When the memo list area 13 shown is displayed, the memo corresponding to the position will also be determined. The memo is a sub-element under the folder. Then text 12a is added to the memo. Specifically, the text 12a can be added to the end of the memo, or to the front of the memo, or to the position indicated by the input identifier, which is not specifically limited in this application.
[0096] For example, Figure 4 As shown in (A) in FIG. 1 , when the PC detects that the position corresponding to the stop drag operation is the area corresponding to the "meeting minutes" memo in the memo list area 13, it will determine to add content to the end of the "meeting minutes" memo. Figure 4 As shown in (B) in FIG. 1 , in the memo application interface 10D, the content of the meeting minutes displayed in the editable area 14 includes text 12 a.
[0097] In summary, when the PC detects that the user drags the selected content to the memo list area 13, the content can be directly added to the corresponding memo. The user does not need to select a specified folder and specify a corresponding memo, and then add the selected content to the selected memo. This method reduces the operations that the user needs to perform, saves the user's time in creating a new memo, and improves the efficiency of creating a new memo.
[0098] In some embodiments, the user can also drag the content data to the editable area 14. After the PC detects the user's dragging operation, it will add the content selected by the user to the currently opened memo, that is, the memo displayed in the editable area 14. For example, the content selected by the user is added to the end of the memo.
[0099] In some other embodiments, the folder list and file list in the interface of the memo application may also be arranged in a tree form. Figure 5 (A) in FIG. 5 shows an interface 50 of a memo application on a PC, and the interface 50 includes a folder list area 51, a blank area 52, and an editable area 53. Figure 5 As shown in (B) in the figure, the folder list area 51 can be further divided into a blank area and a file list area according to whether there are display elements. For example, the "Collection 1" folder corresponds to the file list 51-a1 and the blank area 51-a2, the "Collection 2" folder corresponds to the file list 51-b1 and the blank area 51-b2, the "Test" folder corresponds to the file list 51-c1 and the blank area 51-c2, and the "Unspecified" folder corresponds to the file list 51-d1 and the blank area 51-d2.
[0100] Taking the preset operation as a drag operation as an example, when the user drags the selected content to the blank area in the folder list area 51 or the title area of the folder, the PC will detect the folder corresponding to the user's drag operation. For example, if the user drags the display area corresponding to "Collection 1" and the blank area 51-a2, the PC will create a new memo under "Collection 1" and add the selected content to the memo. The memo and "Mathematics Wrong Question 1" belong to "Collection 1".
[0101] When the user drags the selected content to the file list area in the folder list area 51, such as the file list 51-a1 to the file list 51-d1, the PC will detect the memo corresponding to the user's dragging operation, and then add the user's selected content to the memo. For example, if the user drags the selected content to the "Travel Experience" area in the file list 51-d1, the user's selected content will be added to the content of the "Travel Experience" memo.
[0102] When the user drags the selected content to the blank area 52, the PC will create a new memo in the default folder and add the selected content to the memo. For example, the default folder can be an "unspecified" file, or a folder to which the memo currently opened in the editable area 53 belongs, or a folder recently accessed by the user.
[0103] In summary, the content editing method can be applied based on different interface layouts. In this way, the user can quickly create a new memo based on the selected content, or append content to an existing memo. This method reduces the operations that the user needs to perform and saves the user time in creating a new memo or appending content to a memo.
[0104] The following again takes the electronic device 100 as a mobile phone as an example. In the application scenario of the mobile phone, the preset operation can be performed by the user through the touch screen.
[0105] Figure 6 (A) in FIG. 1 shows an interface 60A of a memo application on a mobile phone, where the interface 60A includes a status bar 61 and a folder list area 62 .
[0106] The status bar 61 includes one or more signal strength indicators of mobile communication signals, one or more signal strength indicators of WiFi signals, a battery status indicator, and a time indicator.
[0107] The folder list area 62 displays multiple memo folders, and for details, please refer to the relevant description of the folder list area 11 in the above interface 10A. The user clicks a folder in the folder list area 62 to jump to the memo list interface of the corresponding folder, or expands the memo list below the folder.
[0108] Exemplarily, if the user clicks on the icon 62a corresponding to the "All Notes" folder in the folder list area 62, the interface will jump to the memo list interface of the "All Notes" folder.
[0109] For example, Figure 6 (B) in the figure shows an interface 60B, which includes a title area 63 and a memo list area 64. The memo list area 64 includes the titles of the memos included in the folder selected by the user, such as "Meeting Minutes", etc. For details, please refer to the relevant description of the memo list area 13 in the above interface 10A.
[0110] The title area 63 is used to display the title of the folder currently selected by the user, or the title of the folder opened by the memo application by default. For details, please refer to the relevant description of the title area 12 in the above interface 10A.
[0111] The interface 60B also includes a “new memo” control 66 , and the user can click on the control 66 to create a new memo in the folder corresponding to the current memo list area 64 .
[0112] The interface 60A and the interface 60B also include a blank area 65. The blank area 65 is an area where no elements are displayed except the above-mentioned display area and display elements. For details, please refer to the relevant description of the blank area 15 in the above-mentioned interface 10A.
[0113] It should be understood that Figure 6 As an example only, the present application does not limit the interface of the memo application. In some embodiments, the positions of the various areas included in the memo application can be different from the positions of the areas included in the memo application. Figure 6 Differently, the interface of the memo application may include more or fewer areas.
[0114] Below Figure 6 The interface 60A and the interface 60B of the memo application are used as examples for explanation. After the user selects the content in other applications, the user performs a preset operation in the interface 60A or the interface 60B, and then the mobile phone can determine the generation method of the memo according to the area corresponding to the preset operation performed by the user.
[0115] Among them, the preset operation can be one or more of operations such as long press, drag or click. In addition, the preset operation can also be adjusted according to the current display state of the mobile phone. For example, the mobile phone includes multiple states such as full screen display, split screen display, floating window display, etc. When the mobile phone displays the application interface in full screen, the preset operation can be long press and click. When the mobile phone is in split screen display and floating window display, the mobile phone can display multiple application interfaces at the same time. At this time, the preset operation can include a drag operation in addition to a long press operation.
[0116] In some embodiments, the mobile phone may also support a "transfer station" function. For mobile phones that support the "transfer station" function, the preset operation may also be a drag operation. For example, the user first drags the selected content to the transfer station area, and then switches to the memo application interface, and then drags the selected content to the designated area in the memo application interface, thereby quickly generating a memo.
[0117] The following is an example of a process in which a user quickly generates a memo through preset operations in different display states of the above mobile phone.
[0118] Embodiment B1: Taking the mobile phone in full-screen display mode and the preset operation as a long press operation as an example, the process of a user quickly generating a memo on a mobile phone is illustrated.
[0119] like Figure 7As shown in (A) of FIG. 1 , a user selects content 71 from an interface 70A of a browser application as an example. It should be understood that content can also be selected from other applications. The present application does not specifically limit the type of application. For example, the user can long press content 71, and then select the content 71 as shown in FIG. Figure 7 Interface 70B shown in (B) in FIG. Interface 70B displays a plurality of control icons based on content 71 , including a “copy” control 72 , a “forward” control 73 , and a “share” control 74 .
[0120] After the user selects the content 71, he clicks the "copy" control 72. Then the user can switch to the memo application interface 60A or interface 60B, and then long-press the designated area in the interface 60A or interface 60B. The mobile phone will determine the corresponding memo generation method for the position corresponding to the long-press operation performed by the user.
[0121] For example, if the position corresponding to the user's long press operation is in the folder list area 62, the mobile phone will create a new memo in the folder corresponding to the long press operation, and add the content 71 selected by the user to the newly created memo. If the position corresponding to the user's long press operation is in the title area 63, the mobile phone will create a new memo in the currently opened folder, and add the content 71 selected by the user to the newly created memo. If the position corresponding to the user's long press operation is in the memo list area 64, the mobile phone will append the content 71 to the specified memo. If the position corresponding to the user's long press operation is in the blank area 55, the mobile phone will create a new memo in the default folder, and add the content 71 selected by the user to the newly created memo. For details, please refer to the relevant descriptions of the aforementioned embodiments A1 to A3, which will not be repeated here.
[0122] For example, Figure 7 As shown in (C), the user performs a long press operation on area 62b in interface 60A. The mobile phone passes through the detection area 62b belonging to the folder list area 62, and corresponds to the "Collection 1" folder. Then the mobile phone will create a new memo under the "Collection 1" folder and add content 71 to the newly created memo.
[0123] like Figure 7 As shown in (D) in the figure, interface 60C shows the interface of a newly created memo by the memo application, wherein interface 60C shows that the mobile phone names the memo as the default title name: "Untitled", the memo content is the text content of content 71, the memo time is the current system time, and it is also displayed that the memo belongs to "Collection 1". Interface 60C also shows control bar 75 and control bar 76, control bar 75 may include multiple controls such as "Back", "Undo" and "Restore", and control bar 76 may include multiple controls such as "Edit", "Add To-Do Item", and "Record".
[0124] Embodiment B2: Taking a mobile phone in full-screen display mode, and supporting the "transfer station" function, and the preset operation being a drag operation as an example, the process of a user quickly generating a memo on a mobile phone is illustrated.
[0125] like Figure 8 As shown in (A) in FIG. 1 , the user selects content 71 from the interface 70A of the browser application, and then drags the selected content to the side of the mobile phone interface. Figure 8 As shown in (B) in FIG. 1 , when the mobile phone detects that the user drags the content 71 to the side of the interface, the icon of the transfer station 81 will be displayed accordingly. In addition, the transfer station 81 will also generate a corresponding document based on the content 71. Figure 8 (B) in the figure is represented by the icon of document 82.
[0126] When the user switches the interface to the interface 60A or 60B of the memo application, the user drags the document 82 in the transfer station 81 to the designated area in the interface 60A or 60B, and the mobile phone performs a long press operation on the position corresponding to the user to determine the corresponding memo generation method. For details, please refer to the relevant descriptions of the aforementioned embodiments A1 to A3 and B1, which will not be repeated here.
[0127] like Figure 8 As shown in (C) in FIG. 8 , the user drags the document 82 in the transfer station 81 to the area 62b in the folder list area 62. Since the area 62b corresponds to the "Collection 1" folder, Figure 8 As shown in (D) in FIG. 1 , the mobile phone will create a new memo in the “Collection 1” folder and add content 71 to the new memo.
[0128] Embodiment B3: Taking a mobile phone in split-screen display mode and a preset operation as a drag operation as an example, the process of a user quickly generating a memo on a mobile phone is illustrated.
[0129] like Fig. 9 As shown in (A) in FIG. 1 , the display interface of the mobile phone is divided into a display area 90A and a display area 91A. The display area 90A corresponds to the display browser interface, which includes content 71. The display area 91A corresponds to the display memo application interface.
[0130] The user selects content 71 in interface 90A and drags content 71 to area 93 in interface 91A. Area 93 corresponds to the corresponding "Collection 1" folder. Fig. 9 As shown in (B) in the figure, the mobile phone will create a new memo in the "Collection 1" folder and add content 71 to the newly created memo. The newly created memo interface is shown in interface 91B.
[0131] Embodiment B4: Taking a mobile phone displaying multiple interfaces through floating windows and a preset operation being a drag operation as an example, the process of a user quickly generating a memo on a mobile phone is illustrated.
[0132] like Fig.10 As shown in (A), the display interface of the mobile phone is divided into a main area 1000A and a floating window display area 1001A. The display area 1000A corresponds to the display of the memo application interface. The display area 1001A corresponds to the display of the browser interface, which includes content 71.
[0133] The user selects content 71 in interface 1001A and drags content 71 to area 1003 in interface 1000A. Area 1003 corresponds to the corresponding "Collection 1" folder. Fig.10 As shown in (B) in the figure, the mobile phone will create a new memo in the "Collection 1" folder and add content 71 to the newly created memo. The newly created memo interface is shown in interface 1000B. At this time, the browser interface of the unselected content is shown in interface 1001B.
[0134] In summary, when different display phones detect that the user drags the selected content to the memo list area, the content can be directly added to the corresponding memo. The user does not need to select a specified folder and specify the corresponding memo, and then add the selected content to the selected memo. This method reduces the operations that the user needs to perform, saves the user's time in creating a new memo, and improves the efficiency of creating a new memo.
[0135] In other embodiments, the memo application and the browser application may be applications on different electronic devices, and the electronic devices may be connected via Bluetooth, a local area network, or the like, or may log in to the same device account. For example, the memo application is an application on an electronic device such as a mobile phone, a PC, or a laptop computer, and the browser application may be an application on another electronic device such as another mobile phone, another PC, or another laptop computer.
[0136] Example C1: Taking a PC running a memo application and a mobile phone running a browser application as an example, the process of a user quickly generating a memo based on applications on different electronic devices is described. The PC and the mobile phone can communicate via Bluetooth, a local area network, etc., or the PC and the mobile phone can log in to the same device account.
[0137] The user can first select content in the application interface of the browser application on the mobile phone, for example, refer to the aforementioned Figure 7 In (A), the user selects the relevant description of content 71 from the interface 70A of the browser application.
[0138] After the user selects content in the browser application on the mobile phone, he can quickly generate a memo based on the selected content in the memo application on the PC. For example, the user can first copy the selected content on the mobile phone, such as Figure 7 (B) and its related description. Then, double-click or long-press the designated area in the application interface of the memo application on the PC, and determine to create a new memo based on the selected content or to append the selected content to the memo according to the position corresponding to the user operation. For details, please refer to the related descriptions of the aforementioned embodiments A1 to A3.
[0139] It should be understood that the memo application and the browser application can also be applications on other different electronic devices, which are not described one by one here. In addition, the user operation can also be other operations, for example, the user can first select the content on the mobile phone, and then drag the selected content on the mobile phone to the application interface of the memo application on the PC. This application does not make specific limitations on this.
[0140] Furthermore, according to the content editing method, the operations that the user needs to perform when creating a new memo or adding content to a memo can be reduced, saving the user's time in creating a new memo or adding content to a memo.
[0141] The following first introduces the electronic device 100 involved in the embodiment of the present application. Fig.11A , Fig.11A FIG. 2 is a schematic diagram showing the structure of an exemplary electronic device 100 provided in an embodiment of the present application. In addition, the structure of the electronic device 200 can refer to the electronic device 100, and will not be described in detail here.
[0142] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a touch sensor 180C, etc.
[0143] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0144] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, etc. Different processing units may be independent devices or integrated into one or more processors.
[0145] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0146] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory (referred to as cache). The memory may store instructions or data that the processor 110 has just used or cyclically used, such as data selected by a user through a drag operation. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0147] In some embodiments of the present application, the processor 110 can be used to implement the content editing method provided by the present application. Specifically, it includes: when receiving the content selected by the user on the application such as the browser application on the electronic device 100 or other electronic devices, and receiving the user's memo application on the electronic device 100 to perform a preset operation, for example, the user drags the selected content to the interface of the memo application. Then the processor 110 will generate a memo based on the area position corresponding to the preset operation performed by the user and based on the selected content. For example, create a new memo and add the content selected by the user to the new memo; or add the content selected by the user to the existing memo.
[0148] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, etc. It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
[0149] The charging management module 140 is used to receive charging input from the charger. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the processor 110, the internal memory 121, the external memory, the display screen 194, etc.
[0150] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0151] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to electronic device 100. Wireless communication module 160 can provide solutions for wireless communications including wireless local area networks (WLAN) (such as wireless fidelity (WiFi) networks), Bluetooth (BT), global navigation satellite system (GNSS), etc. applied to electronic device 100.
[0152] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0153] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0154] In some embodiments of the present application, the display screen 194 displays the interface content currently output by the system. For example, the interface content is a memo application interface and other application interfaces, such as Figures 1 to 10 The interface shown.
[0155] The electronic device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor. The camera 193 is used to capture static images or videos. The digital signal processor is used to process digital signals, and can process other digital signals in addition to digital image signals. The video codec is used to compress or decompress digital videos.
[0156] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement a data storage function.
[0157] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0158] In some embodiments of the present application, the internal memory 121 may also be used to store memos generated in memo applications.
[0159] The electronic device 100 can implement audio functions through the audio module 170. For example, music playing, recording, etc. The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. In some embodiments, the audio module 170 can be set in the processor 110, or some functional modules of the audio module 170 can be set in the processor 110.
[0160] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. In some optional embodiments of the present application, the pressure sensor 180A can be used to obtain the user's touch operation (such as clicking, long pressing, dragging or sliding operations), specifically including capturing the pressure value generated when the user's finger part contacts the display screen, and transmitting the pressure value to the processor so that the processor can identify which finger part the user uses to input the user operation.
[0161] The gyro sensor 180B may be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (X-axis, Y-axis, and Z-axis of the electronic device) may be determined by the gyro sensor 180B.
[0162] The touch sensor 180C is also called a "touch panel". The touch sensor 180C can be set on the display screen 194. The touch sensor 180C and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180C is used to detect touch operations acting on or near it. The touch operation refers to the operation of the user's hand, elbow, stylus, etc. contacting the display screen 194. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180C can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0163] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0164] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
[0165] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, notifications, etc.
[0166] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting the SIM card interface 195 or removing the SIM card from the SIM card interface 195 .
[0167] It is to be understood that the structure illustrated in the present application does not constitute a specific limitation on the electronic device 100. In other embodiments, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0168] Fig. 11B The software structure block diagram of the electronic device 100 according to the embodiment of the present application is shown. In addition, the preset operation is a drag operation as an example for explanation.
[0169] The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the system is divided into four layers, from top to bottom: application layer, application framework layer, hardware abstraction layer (HAL), and kernel layer.
[0170] like Fig. 11B As shown, the application layer includes a first application and a second application. Among them, the first application is a content editing application, such as a memo application. The second application is other applications in the electronic device 100, such as browsers, blogs, and other applications. It should be understood that the electronic device 100 may also include other applications, which are not shown in the figure. The first application includes a content editing system, which is used to execute the above-mentioned content editing method.
[0171] The application framework layer includes the view framework, display framework, and system service (system server), etc. The figure shows the window manager in the system service. Among them, the window manager also specifically includes the session control (session) class, the drag drop controller (drag drop controller), the drag state (drag state), and the drag input event receiver (drag input event receiver), etc., which are not shown in the figure.
[0172] The hardware abstraction layer is used to provide the application framework layer with a common interface for calling drivers in the kernel layer, and distribute input events sent by the kernel layer to the upper layer, namely the application framework layer.
[0173] The kernel layer includes display drivers and touch drivers. The kernel layer can send input events (such as drag events) reported by the touch driver to the upper layer for processing through the hardware abstraction layer.
[0174] In some embodiments, when the user performs a long press and drag operation on the content in the second application, the kernel layer will report the drag event to the second application. The second application will send a drag start event to the view framework, and the view framework will receive the drag start event, generate a touch view, and send the touch view to the display framework. That is, following the user's drag operation, the drag effect of the content on the interface can be displayed on the display interface of the electronic device 100.
[0175] In some embodiments, the view framework sends a task of processing drag (perform drag) to the drag controller by calling the session control class. The drag controller creates a drag state, and the drag state distributes a drag event (drag start event) to the first application of the application layer by calling the session control class.
[0176] In some embodiments, after the drag listener corresponding to the first application receives the drag event, the content editing system will determine the interface element corresponding to the drag event based on the corresponding view in the first application and the contact position corresponding to the drag event. Based on the first application obtaining the drag stop event, the content editing system will determine the method of generating a memo based on the interface element corresponding to the contact position when the drag stop event occurs. For example, when the corresponding interface element is file information such as memo information, the user's selected content will be added to the corresponding memo. In the case where the corresponding interface element is a blank area, folder control, etc., a new memo will be created in the corresponding folder, and the user's selected content will be added to the newly created folder.
[0177] In summary, based on the above electronic device 100, the user can quickly create a new memo based on the selected content, or append content to an existing memo. The user does not need to first click a new memo control or open an existing memo, and then drag or paste the content to add the content of other applications to the memo. This method reduces the operations that the user needs to perform and saves the user time in creating a new memo or appending content to a memo.
[0178] The following describes the steps of a content editing method provided by the present application. The method is applied to an electronic device 100, and the electronic device 100 runs a content editing application, such as a memo application. The method includes:
[0179] S1201: receiving a preset operation performed by a user based on selected content.
[0180] The user can select at least one content such as text, picture, video or audio from the display interface of other applications, and then perform a preset operation in a specified area in the content editing application interface. For example, the preset operation can be drag, click, double-click, etc. The other application can be an application on the electronic device 100, or an application on another electronic device 200.
[0181] For example, the user can first copy the selected content in other applications, and then perform operations such as long press, two-finger click, or three-finger click in the content editing application interface. Alternatively, after selecting content in other applications, the user can drag the selected content to the content editing application interface. For example, when the content editing application is a memo application, its application interface can refer to the aforementioned Figures 1 to 10 and its related description.
[0182] In some embodiments, when the electronic device 100 detects that the user has selected content data, it can process the content data into a program object that can be processed by the operating system, such as a JSON structure, and then subsequently send the JSON structure corresponding to the content to a content editing application.
[0183] In other embodiments, the electronic device 100 detects that the user has selected content data in the interface of a web application such as a browser, and can also obtain a uniform resource identifier (URI) corresponding to the content, and send the URI to the content editing application. The URI is a string used to identify the name of an Internet resource. For example, resources such as documents, images, video clips, and programs available on a web application can be located through the URI.
[0184] In some other embodiments, when the electronic device 100 obtains that the content selected by the user includes image data, the selected content can be saved locally. The image data can also be decoded into a unified image format, such as a pixel map.
[0185] S1202: Determine the interface element corresponding to the preset operation.
[0186] The electronic device 100 can determine the interface element corresponding to the preset operation according to the area position corresponding to the preset operation performed by the user in the content editing application interface. For example, when the preset operation is a drag operation, the electronic device 100 can detect the position corresponding to the stop of the drag operation, that is, the corresponding position when the user lets go, and then the electronic device 100 determines the corresponding interface element according to the position. For another example, when the preset operation is a click, long press or other operation, the electronic device 100 will obtain the position of the click, long press or other operation, and then the electronic device 100 determines the corresponding interface element according to the position. Among them, the interface elements include the folder control, folder title bar, file control and blank area displayed on the application interface of the content editing application in the electronic device 100. Among them, the folder control can display information such as the folder title and the number of files contained in the folder, for example Figure 1 The folder control in the folder list area 11. The folder title bar is used to display the title of the currently opened folder, such as the title area 12. The file control displays the title of the file, such as Figure 1 The blank area may be an area other than the above-mentioned file control, folder title bar, folder control and editable area, for example Figure 1 The blank area in 15.
[0187] It should be understood that the file can be a memorandum, or a document, a note, a memo, etc., and this application does not make any specific limitation.
[0188] S1203: Determine whether the interface element is a file control. If yes, execute step S1205. If no, execute step S1204.
[0189] If the interface element corresponding to the preset operation is a file control, it means that the user needs to append the selected content to the file corresponding to the file control. For example, the location corresponding to the preset operation is Figure 1 When a control corresponding to a memo in the memo list area 13 is selected, it means that the user needs to add selected content to the memo. For details, refer to the following step S1205.
[0190] If the interface element corresponding to the preset operation is not a file control, it means that the interface element is a folder control, a folder title bar or a blank area, indicating that the user needs to create a new file in the corresponding folder, see the following step S1204 for details.
[0191] S1204: Generate a new file based on the selected content.
[0192] When the interface element indicated by the preset operation is not a file control, the electronic device 100 will create a new file in the folder corresponding to the interface element according to the interface element indicated by the position corresponding to the preset operation, and add the selected content to the newly created file.
[0193] If the preset operation corresponds to a folder control in the folder list, the electronic device 100 will create a new file in the folder corresponding to the folder control and add the selected content to the newly created file. For example, refer to the aforementioned embodiments A1 and Figure 2 Related description.
[0194] If the preset operation corresponds to the folder title bar, the electronic device 100 will create a new file in the folder corresponding to the folder title and add the selected content to the newly created file. For example, refer to the aforementioned embodiments A2 and Figure 3 Related description.
[0195] If the preset operation corresponds to a blank area, the electronic device 100 will create a new file in a default folder, for example, the default folder can be a currently opened folder or a recently accessed folder, and add the selected content to the newly created file. For example, refer to the aforementioned embodiments A2 and Figure 3 Related description.
[0196] In some embodiments, if the folder control corresponding to the preset operation corresponds to a parent folder, and the parent folder also includes subfolders, the electronic device 100 can create a new folder in the parent folder, and then create a new file in the newly created folder. Alternatively, the electronic device 100 selects a recently accessed folder in the existing subfolders in the parent folder, and creates a new file in the recently accessed folder.
[0197] S1205: Add the selected content to the file corresponding to the file control.
[0198] In the case where the interface element indicated by the preset operation is a file control, the electronic device 100 will determine the file indicated by the control corresponding to the preset operation and add the selected content to the file. Specifically, the selected content can be added to the end of the file, or to the front of the file, or to the location of the input identifier, which is not specifically limited in this application. It should be understood that when the content editing application is a memo application, the specific details can also be referred to the aforementioned embodiment A3 and Figure 4 The relevant description will not be repeated here.
[0199] In summary, users can quickly create a new memo based on the selected content, or append content to an existing memo. Users do not need to first click the control to create a new memo or open an existing memo, and then drag or paste the content to add content from other applications to the memo. This method reduces the number of operations that users need to perform and saves users time in creating new memos or appending content to memos.
[0200] According to an embodiment of the present application, a content editing method is provided, which can be applied to a client, which can be a software program on an electronic device or a hardware device.
[0201] The client includes a first application and a second application. The first application can be the aforementioned memo application, and the second application can be the aforementioned browser application. The interface of the first application includes a first interface element and a second interface element. For example, the first interface element is a folder control, a folder title bar, or a blank area, and the folder control displays information such as the folder title and the number of files contained in the folder. The second interface element is a file control, and the file control displays information such as the file title and the file creation time. In the interface of the first application, the second interface element is presented in an organizational form subordinate to the first interface element, such as a parallel or tree structure. For details, please refer to the aforementioned Figure 1 and Figure 5 and its related description.
[0202] The method specifically includes: the client obtains a user's selection operation on a first content such as text, picture, video or audio displayed in a second application. Furthermore, it is detected that the user performs a preset operation on the interface of the first application based on the first content, such as dragging, long pressing, two-finger clicking or three-finger clicking.
[0203] Then, if the preset operation obtained by the client corresponds to the first interface element, the client creates a new first file under the label or folder corresponding to the first interface element, and adds the selected first content to the newly created first file. For details, please refer to the relevant description of the aforementioned step S1204.
[0204] Alternatively, if the preset operation obtained by the client corresponds to the second interface element, the client will add the first content to the second file corresponding to the second interface element. For details, please refer to the relevant description of the aforementioned step S1205.
[0205] In this way, the user can quickly create a new memo based on the content obtained across applications, or quickly add content to an existing memo. This method reduces the operations that the user needs to perform and saves the user's time in creating a new memo or appending content to a memo.
[0206] According to an embodiment of the present application, another content editing method is also provided, which can be applied to a first client. The first client can be a software program on an electronic device or a hardware device.
[0207] The first client includes a first application, such as a memo application. The interface of the first application includes a first interface element and a second interface element. For example, the first interface element is a folder control, a folder title bar, or a blank area. The folder control displays information such as the folder title and the number of files contained in the folder. The second interface element is a file control. The file control displays information such as the file title and the file creation time. In the interface of the first application, the second interface element is presented in an organizational form subordinate to the first interface element. For details, please refer to the aforementioned Figure 1 and Figure 5 and its related description.
[0208] The method specifically includes: a first client and a second client are connected to each other through a communication method such as Bluetooth or a local area network, or can log in to the same device account. After the user selects a first content such as text, a picture, a video or an audio on the second client, the user performs a preset operation on the interface of the first application in the first client, such as dragging, long pressing, two-finger clicking or three-finger clicking.
[0209] Then, if the preset operation obtained by the first client corresponds to the first interface element, the first client will create a new first file under the label or folder corresponding to the first interface element, and add the selected first content to the newly created first file. For details, please refer to the relevant description of the aforementioned step S1204.
[0210] Alternatively, if the preset operation acquired by the first client corresponds to the second interface element, the first client will add the first content to the second file corresponding to the second interface element. For details, please refer to the relevant description of the aforementioned step S1205.
[0211] In this way, the user can also quickly create a new memo based on the content obtained across devices, or quickly add content to an existing memo. This method reduces the operations that the user needs to perform and saves the user's time in creating a new memo or appending content to a memo.
[0212] In order to solve the problem of low efficiency in the process of users creating new memos or appending content to memos, the present application provides a content editing device 1300, which is applied to a first electronic device, the first electronic device includes a first application, and the application interface of the first application includes a first interface element and a second interface element, and the first interface element and the second interface element are not content editable areas. Fig.13As shown, the content editing device 1300 includes: a receiving unit 1310 , a detecting unit 1320 , and a generating unit 1330 .
[0213] The receiving unit 1310 is used to receive a selection operation in the application interface of the second application, and the selection operation is used to select the first content. The detecting unit 1320 is used to detect a preset operation for the first content. The generating unit 1330 is used to generate a first file containing the first content according to the preset operation corresponding to the first interface element; or, according to the preset operation corresponding to the second interface element, add the first content to the second file corresponding to the second interface element.
[0214] In some embodiments, the first interface element is a folder control, a folder title bar or a blank area, and the folder control displays the folder title; the second interface element is a file control in the file list, and the file control displays the file title.
[0215] In other embodiments, the first interface element is located in a first area; at least one second interface element associated with the first interface element is located in a second area, and the first area and the second area do not overlap on the interface of the first application.
[0216] In some other embodiments, the first interface element and at least one second interface element associated with the first interface element are arranged in a tree form in the third area, and the at least one second interface element is in the first sub-area of the third area.
[0217] In other embodiments, the first application is one of sticky notes, notes, memos, document editing, and reminders.
[0218] In other embodiments, the preset operation is one or more of a click operation, a drag operation, and a long press operation.
[0219] In some other embodiments, the detection unit 1320 is further configured to detect dragging the first content from the application interface of the second application to the application interface of the first application.
[0220] In some other embodiments, the detection unit 1320 is further configured to detect a copy operation in the application interface of the second application, where the copy operation is used to copy the first content; and to detect a paste operation on the first content in the application interface of the first application.
[0221] In other embodiments, the second application belongs to the second electronic device, wherein the first electronic device and the second electronic device are the same device, or the first electronic device and the second electronic device are different devices.
[0222] In this way, users can quickly create a new file based on the selected content, or append content to an existing file. Users do not need to first click the control to create a new file or open an existing file, and then drag or paste the content to add the content of other applications to the file. This method reduces the operations that users need to perform and saves users time in creating new files or appending content to files.
[0223] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0224] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
Claims
1. A content editing method, characterized in that: Applied to a first electronic device, the first electronic device includes a first application, the application interface of the first application includes a first interface element and a second interface element, the first interface element and the second interface element are not content editable areas, and the method includes: Receiving a selection operation in an application interface of a second application, wherein the selection operation is used to select the first content; detecting a preset operation on the first content; Generate a first file containing the first content according to the preset operation corresponding to the first interface element; or According to the preset operation corresponding to the second interface element, the first content is added to the second file corresponding to the second interface element.
2. The method according to claim 1, characterized in that The first interface element is a folder control, a folder title bar or a blank area, and the folder control displays a folder title; The second interface element is a file control, and the file control displays a file title.
3. The method according to claim 1, characterized in that: The first interface element is located in a first area; at least one second interface element associated with the first interface element is located in a second area, and the first area and the second area do not overlap on the interface of the first application.
4. The method according to claim 1, characterized in that: The first interface element and at least one second interface element associated with the first interface element are arranged in a tree form in a third area, and the at least one second interface element is in a first sub-area of the third area.
5. The method according to claim 1, characterized in that The first application is one of sticky notes, notes, memos, document editing, and reminders.
6. The method according to claim 1, characterized in that The preset operation is one or more of a click operation, a drag operation, and a long press operation.
7. The method according to claim 6, characterized in that When the preset operation is a drag operation, the detecting the preset operation on the first content includes: It is detected that the first content is dragged from the application interface of the second application to the application interface of the first application.
8. The method according to claim 6, characterized in that When the preset operation is a drag operation, the detecting the preset operation on the first content includes: detecting a copy operation in an application interface of the second application, the copy operation being used to copy the first content; A paste operation on the first content in the application interface of the first application is detected.
9. The method according to claim 1, characterized in that: The second application belongs to a second electronic device, wherein the first electronic device and the second electronic device are the same device, or the first electronic device and the second electronic device are different devices.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store instructions, and the processor is used to execute the instructions. When the processor executes the instructions, the method according to any one of claims 1 to 9 is executed.
11. A computer-readable storage medium, characterized in that: The method comprises instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 9.