Headless rich text editor built on ProseMirror with extensible architecture for building custom editors
94
Build a rich text editor that demonstrates how extension priorities control execution order and command overriding.
Create an editor with three custom extensions that have different priority values. The extensions should demonstrate that higher priority values cause extensions to load later, allowing them to override commands from lower priority extensions.
{ count: number } initialized to 0count in storage on every onUpdate callgetCount() returns the current count value from storage{ count: number } initialized to 0count in storage on every onUpdate callgetEnhancedCount() returns the current count value from storagegetCount command to return the base counter's value multiplied by 10Create a function createPriorityEditor() that:
getCount() returns 10 (1 × 10 from modifier) @testgetCount() returns 20 (2 × 10 from modifier) @testgetEnhancedCount() command returns correct independent count @test@generates
/**
* Base counter extension with priority 100
*/
export const BaseCounter: any;
/**
* Enhanced counter extension with priority 200
*/
export const EnhancedCounter: any;
/**
* Count modifier extension with priority 300
*/
export const CountModifier: any;
/**
* Creates an editor with priority-ordered extensions
*/
export function createPriorityEditor(): any;Provides rich text editor functionality with extension system and priority-based loading.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-tiptap--coredocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10