Skip to content

Commit

Permalink
Merge pull request #63 from GeekTree0101/bug/rollback-selectedRange-l…
Browse files Browse the repository at this point in the history
…ength-reset-pull-request

Rollback #53
  • Loading branch information
GeekTree0101 authored Apr 15, 2019
2 parents f39cf0d + 8037c22 commit 003be29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Example/Tests/VEditorNodeSpec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ class VEditorNodeSpec: QuickSpec {
node.fetchNewContent(mockContent, scope: .automatic)

expect(node.editorContents.count)
.to(equal(11))
.to(equal(10))
expect(node.editorContents.filter({ $0 is NSAttributedString }).count)
.to(equal(6))
.to(equal(5))
expect(node.editorContents.filter({ $0 is VVideoContent }).count)
.to(equal(3))
expect(node.editorContents.filter({ $0 is VImageContent }).count)
Expand Down
4 changes: 0 additions & 4 deletions VEditorKit/Classes/VEditorTextNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ open class VEditorTextNode: ASEditableTextNode, ASEditableTextNodeDelegate {
self.becomeActiveRelay.accept(())
}

open func editableTextNodeDidFinishEditing(_ editableTextNode: ASEditableTextNode) {
self.selectedRange = NSRange(location: self.selectedRange.location, length: 0)
}

open func editableTextNode(_ editableTextNode: ASEditableTextNode,
shouldChangeTextIn range: NSRange,
replacementText text: String) -> Bool {
Expand Down

0 comments on commit 003be29

Please sign in to comment.