Some checks failed
Test Suite / code-quality (push) Has been cancelled
Test Suite / security-scan (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 / test-summary (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
Remove deprecated DocumentControls from TestDrive JSUI plugin system: - Remove document-controls.js from plugin asset list - Remove script reference from HTML template - Delete legacy document-controls files - Consolidate all functionality into enhanced control panels All control panel functionality now provided by enhanced controls: - ContentsControl (NW): Table of contents and navigation - StatusControl (E): Document status and metrics - DebugControl (SE): Debug messages and system info - EditControl (NE): Editing tools including Reset All button 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
64 lines
2.8 KiB
HTML
64 lines
2.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="generator" content="Markitect {version}">
|
|
<title>{title}</title>
|
|
|
|
{css_content}
|
|
|
|
<!-- External dependencies - same as non-edit mode -->
|
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"
|
|
onload="window.markitectMarkedLoaded = true"
|
|
onerror="console.error('CDN library failed to load - network or firewall blocking marked.js'); window.markitectMarkedError = true;"></script>
|
|
</head>
|
|
<body class="{mode_class}">
|
|
|
|
<!-- Content container with fallback content -->
|
|
<div id="markdown-content">
|
|
{fallback_content}
|
|
</div>
|
|
|
|
<!-- Configuration Data Interface - ONLY place where Python data enters JavaScript -->
|
|
<script id="markitect-config" type="application/json">{config_json}</script>
|
|
|
|
<!-- External JavaScript References - same pattern as non-edit mode -->
|
|
<script src="markitect/static/js/core/debug-system.js"></script>
|
|
<script src="markitect/static/js/core/section-manager.js"></script>
|
|
<script src="markitect/static/js/components/debug-panel.js"></script>
|
|
<script src="markitect/static/js/components/dom-renderer.js"></script>
|
|
<script src="markitect/static/js/controls/control-base.js"></script>
|
|
<script src="markitect/static/js/controls/contents-control.js"></script>
|
|
<script src="markitect/static/js/controls/status-control.js"></script>
|
|
<script src="markitect/static/js/controls/debug-control.js"></script>
|
|
<script src="markitect/static/js/controls/edit-control.js"></script>
|
|
<script src="markitect/static/js/config-loader.js"></script>
|
|
<script src="markitect/static/js/main-updated.js"></script>
|
|
|
|
<!-- Simple initialization - same pattern as non-edit mode -->
|
|
<script>
|
|
window.addEventListener('load', function() {
|
|
console.log('🎯 Edit mode loading complete, initializing...');
|
|
|
|
// Handle CDN loading errors (same as non-edit mode)
|
|
if (window.markitectMarkedError) {
|
|
console.error("CDN library failed to load - network or firewall blocking marked.js");
|
|
}
|
|
|
|
// Simple initialization without retries
|
|
try {
|
|
if (typeof MarkitectMain !== 'undefined') {
|
|
console.log('🚀 Starting MarkitectMain initialization...');
|
|
MarkitectMain.initialize();
|
|
} else {
|
|
console.warn('⚠️ MarkitectMain not available, edit functionality may be limited');
|
|
}
|
|
} catch (error) {
|
|
console.error('❌ Edit mode initialization failed:', error);
|
|
console.log('📄 Content should still be visible in fallback mode');
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |