Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore #11

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parchment",
"version": "1.0.0-beta.7",
"version": "1.0.0-beta.7.zenreach",
"description": "A document model for rich text editors",
"author": "Jason Chen <jhchen7@gmail.com>",
"homepage": "http://quilljs.com/docs/parchment",
Expand Down
9 changes: 8 additions & 1 deletion src/blot/abstract/container.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,14 @@ class ContainerBlot extends ShadowBlot implements Parent {
if (node.nextSibling != null) {
refBlot = Registry.find(node.nextSibling);
}
let blot = Registry.find(node) || Registry.create(node);
let blot;
if (node instanceof HTMLFontElement) {
// node is in the form <font><span><b>...</b></span></font>
const BlotClass = <Registry.BlotConstructor>Registry.query(node.firstChild.firstChild);
blot = new BlotClass(node.firstChild.firstChild);
} else {
blot = Registry.find(node) || Registry.create(node);
}
if (blot.next != refBlot || blot.next == null) {
if (blot.parent != null) {
blot.parent.children.remove(blot);
Expand Down