The invention relates to an auxiliary editing method and
system based on a rich text editor, and the method comprises the steps: selecting a text in response to the rich text editor, obtaining the selected text, adding a
label, and displaying operation options, including "searching through a learning
library" and "intelligently generating a picture"; in response to the operation option selected by the user, executing a corresponding auxiliary editing process; when the user selects'retrieval through the learning
library ', calling a learning
library service interface, querying by taking the tag text as a keyword, outputting a
matched field, and displaying a'replacement' operation option; when the user selects'intelligent picture generation ', calling an AIGC question and answer interface to generate a picture, and displaying an'
insertion' operation option; and in response to a replacement or
insertion option selected by the user, matching the position information of the tag text through the
regular expression, and replacing the tag text with the to-be-replaced field or inserting a picture behind the tag text. According to the method, the accuracy and flexibility of content editing are improved, and the method is suitable for various editing scenes.