New to Telerik UI for Blazor? Download Free 30-day trial

Editor - ProseMirror Schema

  • Prosemirror-schema.razor
Loading the demo source code...please wait.

Style in ThemeBuilder

  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming

Description

The Telerik Blazor Editor internally uses the ProseMirror engine. The ProseMirror Schema is a set of rules that determine which structures are valid in the Editor.

The Telerik Blazor Editor uses a predefined schema that you can modify to fit your requirements. To completely customize the Editor behavior targeting the HTML elements and attributes it supports, you can also create your own schema and pass it to the component.

The current demo shows how you can modify the default ProseMirror schema that the Editor uses. The updated schema allows adding dir and title attributes to the the p element, as well as using q and button elements.

This Blazor Editor ProseMirror Schema example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.