mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-07 16:04:19 +01:00
This commit is contained in:
parent
70d615d66a
commit
f66685fda3
2 changed files with 4 additions and 0 deletions
|
|
@ -228,6 +228,7 @@ export class Toolbar {
|
|||
}
|
||||
|
||||
public setInlineMark(protyle: IProtyle, type: string, action: "range" | "toolbar", textObj?: ITextOption) {
|
||||
showMessage("setInlineMark");
|
||||
const nodeElement = hasClosestBlock(this.range.startContainer);
|
||||
if (!nodeElement || nodeElement.getAttribute("data-type") === "NodeCodeBlock") {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue