🎨 outline add emoji

This commit is contained in:
Vanessa 2022-05-31 17:51:34 +08:00
parent aae6247e3c
commit feb2bc9a0d
6 changed files with 32 additions and 15 deletions

View file

@ -441,7 +441,7 @@ const updateOutline = (models: IModels, protyle: IProtyle, reload = false) => {
}, response => {
item.update(response, blockId);
if (protyle) {
item.updateDocTitle(protyle.title.editElement.textContent);
item.updateDocTitle(protyle.background.ial);
if (getSelection().rangeCount > 0) {
const startContainer = getSelection().getRangeAt(0).startContainer;
if (protyle.wysiwyg.element.contains(startContainer)) {