Skip to content

Commit

Permalink
fix cursor is not rendering near formula
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed May 13, 2016
1 parent 6aeaf0c commit 0247895
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion formats/formula.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ class Formula extends Embed {
katex.render(value, node);
node.dataset.value = value;
}
node.setAttribute('contenteditable', false);
return node;
}

static value(domNode) {
return domNode.dataset.value;
}

index(node, offset) {
return 1;
}
}
Formula.blotName = 'formula';
Formula.className = 'ql-formula';
Expand Down

0 comments on commit 0247895

Please sign in to comment.