|
|
@ -19,7 +19,7 @@ function ModifierButton(props) {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function SelectionEditor({ pos, onChange }) {
|
|
|
|
function SelectionEditor({ position, onChange }) {
|
|
|
|
const [open, setOpen] = React.useState(false)
|
|
|
|
const [open, setOpen] = React.useState(false)
|
|
|
|
const [bold, setBold] = React.useState(false)
|
|
|
|
const [bold, setBold] = React.useState(false)
|
|
|
|
const [italics, setItalics] = React.useState(false)
|
|
|
|
const [italics, setItalics] = React.useState(false)
|
|
|
@ -39,8 +39,8 @@ function SelectionEditor({ pos, onChange }) {
|
|
|
|
pointerLeft="62px"
|
|
|
|
pointerLeft="62px"
|
|
|
|
style={{
|
|
|
|
style={{
|
|
|
|
zIndex: 100,
|
|
|
|
zIndex: 100,
|
|
|
|
top: pos.top,
|
|
|
|
top: position.top,
|
|
|
|
left: pos.left
|
|
|
|
left: position.left
|
|
|
|
}}
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div className="colorizer">
|
|
|
|
<div className="colorizer">
|
|
|
|