import { storiesOf } from "@storybook/react";
import { IRteReadOnlyOptions, makeRteApi, RteReadOnly } from "@vivid-planet/comet-admin-rte";
import * as React from "react";
import { exampleContent, PrintEditorState, RteLayout } from "./helper";
const [useRteApi] = makeRteApi();
const GreenCustomHeader: React.FC = ({ children }) => {children};
const rteOptions: IRteReadOnlyOptions = {
customBlockMap: {
"header-custom-green": {
label: "Custom Green Header",
renderConfig: {
element: "h1",
wrapper: ,
},
},
},
};
function Story() {
const { editorState } = useRteApi({ defaultValue: JSON.stringify(exampleContent) }); // defaultValue is optional
return (
<>
>
);
}
storiesOf("comet-admin-rte", module).add("Rte readonly", () => );