Markdown editor
Markdown in a textarea — for people who type **bold** for fun.
Standalone
Section titled “Standalone”from almasix.orbit.forms import Form, MarkdownEditor
form = Form.make("demo").schema([ MarkdownEditor.make("readme").label("README").rows(14)])In a Resource
Section titled “In a Resource”from almasix.orbit import Resourcefrom almasix.orbit.forms import Form, MarkdownEditor
class PostResource(Resource): @classmethod def form(cls, form: Form) -> Form: return form.schema([ MarkdownEditor.make("body").rows(20).required(), MarkdownEditor.make("changelog"), ])Key methods
Section titled “Key methods”Inherits TextareaAddsor-editor or-editor-markdown``.rows(n) / .required() / .disabled(...).default("# Title\n")
Closures work on .label(), .helper_text(), .placeholder(), .visible(), .disabled(), and .required() — see Form closures.
Preview
Section titled “Preview”
