mirror of
https://github.com/kou029w/quot.git
synced 2025-01-19 08:28:09 +00:00
dedent
This commit is contained in:
parent
6b942ef288
commit
031553612f
1 changed files with 13 additions and 15 deletions
|
@ -4,8 +4,7 @@ import "./editor.css";
|
||||||
export default (props: {
|
export default (props: {
|
||||||
id: number;
|
id: number;
|
||||||
onUpdatePage: (content: Pages.RequestContentPage) => void;
|
onUpdatePage: (content: Pages.RequestContentPage) => void;
|
||||||
}) => {
|
}) => (
|
||||||
return (
|
|
||||||
<textarea
|
<textarea
|
||||||
id={String(props.id)}
|
id={String(props.id)}
|
||||||
class="editor"
|
class="editor"
|
||||||
|
@ -17,5 +16,4 @@ export default (props: {
|
||||||
e.currentTarget.setAttribute("rows", String(Math.max(2, lines.length)));
|
e.currentTarget.setAttribute("rows", String(Math.max(2, lines.length)));
|
||||||
}}
|
}}
|
||||||
></textarea>
|
></textarea>
|
||||||
);
|
);
|
||||||
};
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue