feat: poetry editable

This commit is contained in:
Tristan 2019-10-13 21:39:45 +08:00
parent f138d305de
commit 6ed92540e0

View File

@ -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">