alinea
Version:
Headless git-based CMS
15 lines (13 loc) • 393 B
JavaScript
import "../../chunks/chunk-NZLE2WMY.js";
// src/field/richtext/RichTextField.ts
import { RichTextField } from "alinea/core/field/RichTextField";
import { viewKeys } from "alinea/dashboard/editor/ViewKeys";
function richText(label, options = {}) {
return new RichTextField(options.schema, {
options: { label, ...options },
view: viewKeys.RichTextInput
});
}
export {
richText
};