forked from mirror/chinese-colors
feat: poetry editable
This commit is contained in:
parent
f138d305de
commit
6ed92540e0
@ -41,7 +41,7 @@ export default function Poetry({ bgColor, bgRgb }) {
|
|||||||
const currPoetry = JSON.parse(localStorage.getItem('POETRY'));
|
const currPoetry = JSON.parse(localStorage.getItem('POETRY'));
|
||||||
const { author, title, content } = currPoetry;
|
const { author, title, content } = currPoetry;
|
||||||
return (
|
return (
|
||||||
<Wrapper style={{ color: bgColor }} bgRgb={bgRgb}>
|
<Wrapper contentEditable={true} style={{ color: bgColor }} bgRgb={bgRgb}>
|
||||||
{content.map(line => {
|
{content.map(line => {
|
||||||
return (
|
return (
|
||||||
<p key={line} className="line">
|
<p key={line} className="line">
|
||||||
|
Loading…
Reference in New Issue
Block a user