2024-01-13 03:07:59 +00:00
|
|
|
import './Editor.css';
|
|
|
|
|
2024-01-13 02:42:12 +00:00
|
|
|
function Editor() {
|
|
|
|
function handleChange(event: React.ChangeEvent<HTMLTextAreaElement>) {
|
|
|
|
console.log(event.target.value);
|
|
|
|
}
|
|
|
|
|
|
|
|
return (
|
2024-01-13 03:07:59 +00:00
|
|
|
<div className="Editor">
|
2024-01-13 03:16:31 +00:00
|
|
|
<div className="Editor-textwrapper">
|
2024-01-13 03:30:55 +00:00
|
|
|
<textarea onChange={handleChange} className="Editor-textarea">I have text</textarea>
|
2024-01-13 03:39:00 +00:00
|
|
|
<div className="Editor-underlay"></div>
|
2024-01-13 03:16:31 +00:00
|
|
|
</div>
|
2024-01-13 03:07:59 +00:00
|
|
|
<div className="Editor-ast"></div>
|
|
|
|
</div>
|
2024-01-13 02:42:12 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Editor;
|