mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-01 02:10:15 +01:00
This commit is contained in:
parent
35ccbaa0f0
commit
f67bd1ad7f
3 changed files with 13 additions and 3 deletions
|
|
@ -229,7 +229,7 @@ export class Toolbar {
|
|||
|
||||
public setInlineMark(protyle: IProtyle, type: string, action: "range" | "toolbar", textObj?: ITextOption) {
|
||||
const nodeElement = hasClosestBlock(this.range.startContainer);
|
||||
if (!nodeElement) {
|
||||
if (!nodeElement || nodeElement.getAttribute("data-type") === "NodeCodeBlock") {
|
||||
return;
|
||||
}
|
||||
const endElement = hasClosestBlock(this.range.endContainer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue