changed toolbar position bottom to top
This commit is contained in:
parent
24d8688069
commit
4f70d8cb17
@ -34,15 +34,6 @@ const Editor = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="editor-wrapper">
|
<div className="editor-wrapper">
|
||||||
<ReactQuill
|
|
||||||
value={value}
|
|
||||||
onChange={onChange}
|
|
||||||
modules={modules}
|
|
||||||
formats={formats}
|
|
||||||
theme="snow"
|
|
||||||
placeholder={placeholder}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div id="custom-toolbar" className="ql-toolbar ql-snow custom-toolbar">
|
<div id="custom-toolbar" className="ql-toolbar ql-snow custom-toolbar">
|
||||||
<div className="d-flex justify-content-between align-items-center w-100">
|
<div className="d-flex justify-content-between align-items-center w-100">
|
||||||
{/* Left: Quill Format Buttons */}
|
{/* Left: Quill Format Buttons */}
|
||||||
@ -70,8 +61,19 @@ const Editor = ({
|
|||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<ReactQuill
|
||||||
|
value={value}
|
||||||
|
onChange={onChange}
|
||||||
|
modules={modules}
|
||||||
|
formats={formats}
|
||||||
|
theme="snow"
|
||||||
|
placeholder={placeholder}
|
||||||
|
/>
|
||||||
{/* Right: Submit + Cancel Buttons */}
|
{/* Right: Submit + Cancel Buttons */}
|
||||||
<div className="d-flex gap-2">
|
<div className="d-flex justify-content-end gap-2 p-1">
|
||||||
<span className="btn btn-xs btn-secondary" aria-disabled={loading} onClick={onCancel}>
|
<span className="btn btn-xs btn-secondary" aria-disabled={loading} onClick={onCancel}>
|
||||||
Cancel
|
Cancel
|
||||||
</span>
|
</span>
|
||||||
@ -84,8 +86,7 @@ const Editor = ({
|
|||||||
{loading ? "Please Wait..." : "Submit"}
|
{loading ? "Please Wait..." : "Submit"}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user