How gaelj/blazorcodemirror6 works
• Client Application |
• Blazor WASM App | | Blazor Server | | Interactive Server | |
• (Example) | | (Example) | | (Example) | |
• ↓
• BlazorCodeMirror6 Component |
• Blazor Component | | .NET Interop | | JavaScript Module | |
• Layer | | Layer | | Layer | |
• ↓
• CodeMirror 6 Core (External) |
Component Details
For the BlazorCodeMirror6 Component section, create detailed sub-sections:
a) Blazor Component Layer:
• CodeMirror6Wrapper.razor (Main component)
• CodeMirror6WrapperInternal.razor (Implementation)
• Models/ (Configuration and state models)
• Commands/ (Command handling)
• Converters/ (Data conversion)
b) .NET Interop Layer:
• JsInterop methods
• JsInvokable methods
• Event handling
• State management
c) JavaScript Module Layer:
• NodeLib/src/ TypeScript implementations
• CodeMirror configuration
• Plugin system
• Theme handling
Special Features Section
• Features Support |
• Markdown Support | | Language Support | | Editor Features | |
• Syntax | | - 145 Languages | | - Auto-completion | |
• Preview | | - Highlighting | | - Linting | |
• Commands | | - C# Support | | - Themes | |
Integration Points
Integration points with:
• File system (for uploads)
• Custom extensions
Important Notes
Callouts for:
• No HeadOutlet requirement
• Automatic resource loading
• Build process integration
• TypeScript/JavaScript bundling