 
     fileprivate var textStore = NSMutableAttributedString(string: "", attributes: nil)
     fileprivate let dom = Libxml2.DOMString()
-
-    // MARK: - Workarounds support
-
-    /// To know more about why we need this flag, check the documentation of our `endEditing()`
-    /// override.
-    ///
-    private var allowFixingDOMAttributes = true
 
     // MARK: - Undo Support
     


        beginEditing()

        if mustUpdateDOM() {
            replaceCharactersInDOM(in: range, with: str)
        }

        detectAttachmentRemoved(in: range)
        textStore.replaceCharacters(in: range, with: str)


    override open func setAttributes(_ attrs: [String : Any]?, range: NSRange) {
        beginEditing()

        textStore.setAttributes(attrs, range: range)
        edited(.editedAttributes, range: range, changeInLength: 0)
        
        endEditing()
    }

    // MARK: - Styles: Toggling

    @discardableResult
