#!/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);
}