     /// Prepares the textView.
     fileprivate func prepareTextView() {
         textView = TextView(textContainer: textContainer)
-        layout(textView).edges()
+        addSubview(textView)
     }
     
     /// Prepares the regular expression for matching.

    public var uniqueMatches: [String] {
        var seen = [String: Bool]()
        return matches.filter { nil == seen.updateValue(true, forKey: $0) }
    }
    
    /**

}

open class Editor: View {
    /// Will layout the view.
    open var willLayout: Bool {
        return 0 < width && 0 < height && nil != superview
    }
    
    /// TextStorage instance that is observed while editing.
    open fileprivate(set) var textStorage: TextStorage!
    
