refactor: Still trying to reorganize edit mode to be more robust
Some checks failed
Test Suite / code-quality (push) Has been cancelled
Test Suite / unit-tests (3.11) (push) Has been cancelled
Test Suite / unit-tests (3.12) (push) Has been cancelled
Test Suite / security-scan (push) Has been cancelled
Test Suite / integration-tests (push) Has been cancelled
Test Suite / e2e-tests (push) Has been cancelled
Test Suite / performance-tests (push) Has been cancelled
Test Suite / test-summary (push) Has been cancelled
Some checks failed
Test Suite / code-quality (push) Has been cancelled
Test Suite / unit-tests (3.11) (push) Has been cancelled
Test Suite / unit-tests (3.12) (push) Has been cancelled
Test Suite / security-scan (push) Has been cancelled
Test Suite / integration-tests (push) Has been cancelled
Test Suite / e2e-tests (push) Has been cancelled
Test Suite / performance-tests (push) Has been cancelled
Test Suite / test-summary (push) Has been cancelled
This commit is contained in:
17
test_method_check.js
Normal file
17
test_method_check.js
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
// Quick test to check what methods exist
|
||||
delete require.cache[require.resolve('/home/worsch/markitect_project/markitect/static/editor.js')];
|
||||
require('/home/worsch/markitect_project/markitect/static/editor.js');
|
||||
|
||||
if (global.MarkitectCleanEditor) {
|
||||
const container = document.createElement('div');
|
||||
const editor = new global.MarkitectCleanEditor('# Test', container);
|
||||
|
||||
console.log('Available methods:');
|
||||
console.log('createFloatingControlPanel:', typeof editor.createFloatingControlPanel);
|
||||
console.log('toggleControlPanel:', typeof editor.toggleControlPanel);
|
||||
console.log('adjustControlPanelForViewport:', typeof editor.adjustControlPanelForViewport);
|
||||
console.log('saveControlPanelPreferences:', typeof editor.saveControlPanelPreferences);
|
||||
console.log('handleControlPanelKeyboard:', typeof editor.handleControlPanelKeyboard);
|
||||
}
|
||||
Reference in New Issue
Block a user