mirror of
https://github.com/codex-team/editor.js
synced 2026-03-14 22:55:47 +01:00
Rename to Editor.js (#625)
* Rename to Editor.js in package, comments and docs * More changes * Done with renaming in code, docs, and comments * Revert renaming of tools org * Update submodules * Changes due comments * Fix double slash * editorjs -> @editorjs/editorjs * Update package.json Co-Authored-By: gohabereg <gohabereg@users.noreply.github.com> * Update webpack.config.js Co-Authored-By: gohabereg <gohabereg@users.noreply.github.com> * Update bundle
This commit is contained in:
parent
758c5080df
commit
69a5c21bb6
39 changed files with 218 additions and 202 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>CodeX Editor 🤩🧦🤨 example</title>
|
||||
<title>Editor.js 🤩🧦🤨 example</title>
|
||||
<link href="https://fonts.googleapis.com/css?family=PT+Mono" rel="stylesheet">
|
||||
<link href="assets/demo.css" rel="stylesheet">
|
||||
<script src="assets/json-preview.js"></script>
|
||||
|
|
@ -11,14 +11,14 @@
|
|||
<body>
|
||||
<div class="ce-example">
|
||||
<div class="ce-example__header">
|
||||
<a class="ce-example__header-logo" href="https://ifmo.su/editor">CodeX Editor 🤩🧦🤨</a>
|
||||
<a class="ce-example__header-logo" href="https://ifmo.su/editor">Editor.js 🤩🧦🤨</a>
|
||||
|
||||
<div class="ce-example__header-menu">
|
||||
<a href="https://github.com/codex-editor" target="_blank">Plugins</a>
|
||||
<a href="https://github.com/codex-editor/" target="_blank">Plugins</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ce-example__content _ce-example__content--small">
|
||||
<div id="codex-editor"></div>
|
||||
<div id="editorjs"></div>
|
||||
|
||||
<div class="ce-example__button" id="saveButton">
|
||||
editor.saver.save()
|
||||
|
|
@ -51,12 +51,13 @@
|
|||
<script src="./tools/code/dist/bundle.js"></script><!-- Code -->
|
||||
<script src="./tools/embed/dist/bundle.js"></script><!-- Embed -->
|
||||
<script src="./tools/table/dist/bundle.js"></script><!-- Table -->
|
||||
<script src="./tools/link/dist/bundle.js"></script><!-- Link -->
|
||||
|
||||
<script src="./tools/marker/dist/bundle.js"></script><!-- Marker -->
|
||||
<script src="./tools/inline-code/dist/bundle.js"></script><!-- Inline Code -->
|
||||
|
||||
<!-- Load CodeX Editor's Core -->
|
||||
<script src="../dist/codex-editor.js"></script>
|
||||
<!-- Load Editor.js's Core -->
|
||||
<script src="../dist/editor.js"></script>
|
||||
|
||||
<!-- Initialization -->
|
||||
<script>
|
||||
|
|
@ -69,11 +70,11 @@
|
|||
* To initialize the Editor, create a new instance with configuration object
|
||||
* @see docs/installation.md for mode details
|
||||
*/
|
||||
var editor = new CodexEditor({
|
||||
var editor = new EditorJS({
|
||||
/**
|
||||
* Wrapper of Editor
|
||||
*/
|
||||
holderId: 'codex-editor',
|
||||
holderId: 'editorjs',
|
||||
|
||||
/**
|
||||
* Tools list
|
||||
|
|
@ -137,6 +138,8 @@
|
|||
shortcut: 'CMD+SHIFT+C'
|
||||
},
|
||||
|
||||
link: LinkTool,
|
||||
|
||||
embed: Embed,
|
||||
|
||||
table: {
|
||||
|
|
@ -160,7 +163,7 @@
|
|||
{
|
||||
type: "header",
|
||||
data: {
|
||||
text: "CodeX Editor",
|
||||
text: "Editor.js",
|
||||
level: 2
|
||||
}
|
||||
},
|
||||
|
|
@ -198,7 +201,7 @@
|
|||
{
|
||||
type : 'paragraph',
|
||||
data : {
|
||||
text : 'Блоки — это структурные элементы, из которых состоит статья. Например <code class="inline-code">Параграф</code>, <code class="inline-code">Заголовок</code>, <code class="inline-code">Изображение</code>, <code class="inline-code">Видео</code> — это все Блоки. В CodeX Editor каждый Блок определяется плагином. Есть много готовых Блоков и простой API для создания новых. Например, вы можете создать Блок для Твиттера, Инстаграма, Опроса, Игры или CTA-кнопки.'
|
||||
text : 'Блоки — это структурные элементы, из которых состоит статья. Например <code class="inline-code">Параграф</code>, <code class="inline-code">Заголовок</code>, <code class="inline-code">Изображение</code>, <code class="inline-code">Видео</code> — это все Блоки. В Editor.js каждый Блок определяется плагином. Есть много готовых Блоков и простой API для создания новых. Например, вы можете создать Блок для Твиттера, Инстаграма, Опроса, Игры или CTA-кнопки.'
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
@ -211,7 +214,7 @@
|
|||
{
|
||||
type : 'paragraph',
|
||||
data : {
|
||||
text : 'В отличие от WYSIWYG-редакторов, CodeX Editor возвращает не сгенерированный HTML-код, включающий и содержание и оформление статьи, а JSON с данными о каждом Блоке. Пример таких данных находится внизу этой страницы.'
|
||||
text : 'В отличие от WYSIWYG-редакторов, Editor.js возвращает не сгенерированный HTML-код, включающий и содержание и оформление статьи, а JSON с данными о каждом Блоке. Пример таких данных находится внизу этой страницы.'
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue