-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from editor-js/fix/backspace-and-navigate
Fix cursor navigation and backspace functionality CodeTool
- Loading branch information
Showing
4 changed files
with
44 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Code Plugin Test | EditorJS</title> | ||
</head> | ||
<body> | ||
<div id="editorjs"></div> | ||
<script src="https://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@editorjs/header@latest"></script> | ||
<script type="module"> | ||
import CodeTool from '../src/index.ts'; | ||
const editor = new EditorJS({ | ||
holder: 'editorjs', | ||
data: { | ||
time: 1700475383740, | ||
blocks: [ | ||
{ | ||
id: 'aRMoZePSTD', | ||
type: 'header', | ||
data: { text: 'Welcome to Editor.js', level: 2 }, | ||
}, | ||
{ | ||
id: 'fcG8CCR5F8', | ||
type: 'code', | ||
data: { code: 'print("Namaste World")' }, | ||
}, | ||
], | ||
}, | ||
tools: { | ||
code: CodeTool, | ||
header: Header, | ||
}, | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@editorjs/code", | ||
"version": "2.9.2", | ||
"version": "2.9.3", | ||
"keywords": [ | ||
"codex editor", | ||
"code", | ||
|
This file contains 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
This file contains 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