mirror of
https://github.com/ytliu74/obsidian-pseudocode.git
synced 2026-07-22 07:40:25 +00:00
chore: cleanup
This commit is contained in:
parent
1acc571cae
commit
6614713042
1 changed files with 6 additions and 2 deletions
8
main.ts
8
main.ts
|
|
@ -29,9 +29,13 @@ export default class PseudocodePlugin extends Plugin {
|
|||
): Promise<any> {
|
||||
const blockDiv = el.createDiv({ cls: "pseudocode-block" });
|
||||
const blockWidth = this.settings.blockSize;
|
||||
blockDiv.style.width = `${blockWidth}em`;;
|
||||
blockDiv.style.width = `${blockWidth}em`;
|
||||
blockDiv.addEventListener("click", (event) => {
|
||||
((event.target as HTMLElement).closest('.pseudocode-block')!.parentElement!.parentElement!.querySelector('.edit-block-button') as HTMLElement)!.click();
|
||||
((event.target as HTMLElement)
|
||||
.closest('.pseudocode-block')!
|
||||
.parentElement!.parentElement!
|
||||
.querySelector('.edit-block-button') as HTMLElement)!
|
||||
.click();
|
||||
});
|
||||
|
||||
// Extract inline macros
|
||||
|
|
|
|||
Loading…
Reference in a new issue