This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import dynamic from 'next/dynamic' | |
| class Editor extends React.Component { | |
| shouldComponentUpdate(){ | |
| return this.props.draft == null; | |
| } | |
| render(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import dynamic from 'next/dynamic' | |
| class Editor extends React.Component { | |
| render(){ | |
| let RedactorSSRSafe = dynamic(import('../redactor.react'), { | |
| ssr: false | |
| }); | |
| return (<RedactorSSRSafe/>); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default { | |
| time: 1556098174501, | |
| blocks: [ | |
| { | |
| type: "header", | |
| data: { | |
| text: "Заголовок", | |
| level: 2 | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Header from '@editorjs/header'; | |
| import Paragraph from '@editorjs/paragraph'; | |
| import List from '@editorjs/list'; | |
| export default { | |
| header: { | |
| class: Header, | |
| config: { | |
| placeholder: 'Заголовок', | |
| levels: [2, 3, 4], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import EditorJs from 'react-editor-js'; | |
| import tools from './tools'; | |
| import initial_data from './initial_data'; | |
| class Redactor extends React.Component { | |
| render() { | |
| return ( | |
| <EditorJs |