Fix: make sure Edit buttons work even for Lua expressions and code
widgets whose bodies appear multiple times in the same page (previously always jumped to first).
This commit is contained in:
@@ -69,8 +69,6 @@ export function fencedCodePlugin(client: Client) {
|
||||
});
|
||||
|
||||
const widget = new IFrameWidget(
|
||||
from + lineStrings[0].length + 1,
|
||||
to - lineStrings[lineStrings.length - 1].length - 1,
|
||||
client,
|
||||
lineStrings.slice(1, lineStrings.length - 1).join("\n"),
|
||||
codeWidgetCallback,
|
||||
|
||||
Reference in New Issue
Block a user