MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / attachTableOperations

Function attachTableOperations

notes.js:148–155  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146
147 // 全局表格操作函数
148 function attachTableOperations() {
149 const editor = document.querySelector('.nsn-editor');
150 if (!editor) return;
151 const tableContainers = editor.querySelectorAll('.nsn-table-container:not([data-operations-attached])');
152 tableContainers.forEach(container => {
153 attachTableOperationsToContainer(container);
154 });
155 }
156
157 function attachTableOperationsToContainer(container) {
158 if (container.hasAttribute('data-operations-attached')) return;

Callers 4

showTableConfigDialogFunction · 0.85
showMarkdownDialogFunction · 0.85
renderNotesFunction · 0.85
buildDialogFunction · 0.85

Calls 1

Tested by

no test coverage detected