Here, we need to wrap the selected text into the selected style tags and replace the selected text in the document with this new string.
这里我们需要将选中的文本包装到选定的样式标签中,并使用这个新的字符串替换文档里选中的文本。
For example, a content assistant could generate typical HTML structures such as tables or links, or could wrap selected text areas into style tags.
例如,内容助理能够生成诸如表或链接等典型的HTML结构,或者能够将选中的文本区域包装到样式标签中。
A simple example of this is the need to wrap the actions links (described above) with a container that helps us style these anchor elements to separate them visually from the rest of the content.
例如,需要用一个容器包围操作链接,从而帮助对这些锚元素应用特殊的样式,让它们与其他内容有所区别。
应用推荐