mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-24 07:39:42 +02:00
Update Editor and Tools (#56)
This commit is contained in:
parent
717fd3fe38
commit
c7c7e61ccf
9 changed files with 108 additions and 138 deletions
|
@ -1,17 +1,17 @@
|
|||
import CodeXEditor from 'codex.editor';
|
||||
import EditorJS from '@editorjs/editorjs';
|
||||
|
||||
/**
|
||||
* Tools for the Editor
|
||||
*/
|
||||
import Header from 'codex.editor.header';
|
||||
import Quote from 'codex.editor.quote';
|
||||
import Marker from 'codex.editor.marker';
|
||||
import CodeTool from 'codex.editor.code';
|
||||
import Delimiter from 'codex.editor.delimiter';
|
||||
import InlineCode from 'codex.editor.inline-code';
|
||||
import List from 'codex.editor.list';
|
||||
import RawTool from 'codex.editor.raw';
|
||||
import Embed from 'codex.editor.embed';
|
||||
import Header from '@editorjs/header';
|
||||
import Quote from '@editorjs/quote';
|
||||
import Marker from '@editorjs/marker';
|
||||
import CodeTool from '@editorjs/code';
|
||||
import Delimiter from '@editorjs/delimiter';
|
||||
import InlineCode from '@editorjs/inline-code';
|
||||
import List from '@editorjs/list';
|
||||
import RawTool from '@editorjs/raw';
|
||||
import Embed from '@editorjs/embed';
|
||||
|
||||
/**
|
||||
* Class for working with Editor.js
|
||||
|
@ -84,7 +84,7 @@ export default class Editor {
|
|||
}
|
||||
};
|
||||
|
||||
this.editor = new CodeXEditor(Object.assign(defaultConfig, editorConfig));
|
||||
this.editor = new EditorJS(Object.assign(defaultConfig, editorConfig));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
@import url('../../../node_modules/normalize.css');
|
||||
@import url('vars.pcss');
|
||||
@import url('layout.pcss');
|
||||
@import url('components/header.pcss');
|
||||
@import url('components/aside.pcss');
|
||||
@import url('components/writing.pcss');
|
||||
@import url('components/page.pcss');
|
||||
@import url('components/landing.pcss');
|
||||
@import 'normalize.css';
|
||||
@import './vars.pcss';
|
||||
@import './layout.pcss';
|
||||
@import './components/header.pcss';
|
||||
@import './components/aside.pcss';
|
||||
@import './components/writing.pcss';
|
||||
@import './components/page.pcss';
|
||||
@import './components/landing.pcss';
|
||||
|
||||
body {
|
||||
font-family: system-ui, Helvetica, Arial, Verdana;
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<span class="writing-header__save" name="js-submit-save">Save</span>
|
||||
</header>
|
||||
<div class="writing-editor">
|
||||
<div id="codex-editor"></div>
|
||||
<div id="editorjs"></div>
|
||||
</div>
|
||||
<div class="writing-buttons">
|
||||
{% if page._id is not empty %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue