feat: builds a way to inject custom React providers into admin UI

* fix: rich text textarea height

* feat: custom providers for admin panel

* docs: custom provider component
This commit is contained in:
Dan Ribbens
2022-03-28 11:23:22 -04:00
committed by GitHub
parent 45f70114e6
commit 5a7e8a980b
9 changed files with 100 additions and 4 deletions

View File

@@ -272,6 +272,7 @@ const RichText: React.FC<Props> = (props) => {
ref={editorRef}
>
<Editable
className={`${baseClass}__input`}
renderElement={renderElement}
renderLeaf={renderLeaf}
placeholder={placeholder}

View File

@@ -17,7 +17,6 @@
}
&__editor {
min-height: base(10);
[data-slate-node=element] {
margin-bottom: base(0.25);
@@ -31,6 +30,10 @@
}
}
&__input {
min-height: base(10);
}
&__wrap {
width: 100%;
position: relative;