This commit is contained in:
parent
3a1d8de0a3
commit
538aa0803a
1 changed files with 2 additions and 4 deletions
|
@ -329,7 +329,7 @@ export class Toolbar {
|
|||
const types = item.getAttribute("data-type").split(" ");
|
||||
if (type === "clear") {
|
||||
for (let i = 0; i < types.length; i++) {
|
||||
if (["strong", "em", "u", "s", "mark", "sup", "sub"].includes(types[i])) {
|
||||
if (Constants.INLINE_TYPE.includes(types[i])) {
|
||||
types.splice(i, 1);
|
||||
i--;
|
||||
}
|
||||
|
@ -621,9 +621,7 @@ export class Toolbar {
|
|||
if (wbrElement) {
|
||||
wbrElement.remove();
|
||||
}
|
||||
if (isMobile()) {
|
||||
focusByRange(this.range);
|
||||
}
|
||||
focusByRange(this.range);
|
||||
}
|
||||
|
||||
public showFileAnnotationRef(protyle: IProtyle, refElement: HTMLElement) {
|
||||
|
|
Loading…
Add table
Reference in a new issue