mirror of
https://github.com/codex-team/editor.js
synced 2024-06-02 14:02:17 +02:00
Fix (#156)
This commit is contained in:
parent
61fd151568
commit
f253fa121d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -25,14 +25,14 @@ module.exports = function (anchors) {
|
|||
|
||||
var newAnchor = e.target.value = anchors.rusToTranslit(e.target.value);
|
||||
|
||||
anchors.currentNode.dataset.anchor = newAnchor;
|
||||
|
||||
if (newAnchor.trim() !== '') {
|
||||
|
||||
anchors.currentNode.dataset.anchor = newAnchor;
|
||||
anchors.currentNode.classList.add(blockWithAnchorClassName);
|
||||
|
||||
} else {
|
||||
|
||||
delete anchors.currentNode.dataset.anchor;
|
||||
anchors.currentNode.classList.remove(blockWithAnchorClassName);
|
||||
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "codex.editor",
|
||||
"version": "1.4.4",
|
||||
"version": "1.4.5",
|
||||
"description": "Codex Editor. Native JS, based on API and Open Source",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue