     }
 
 
+    /// Force the SDK to Redraw the cursor, asynchronously, if the newly-inserted text requires it. 
+    /// This method was meant as a workaround for Issue #144.
+    ///
+    func forceRedrawCursorIfNeeded(afterInserting text: String) {
+        guard text == "\n" else {
+            return
+        }
+
+        forceRedrawCursorAfterDelay()
+    }
+
+
     /// Force the SDK to Redraw the cursor, asynchronously, after a delay. This method was meant as a workaround
     /// for Issue #144: the Caret might end up redrawn below the Blockquote's custom background.
     ///

        insertionRange.length = 1
        refreshListAfterInsertion(of: text, at: insertionRange)
        refreshBlockquoteAfterInsertion(of: text, at: insertionRange)
        forceRedrawCursorAfterDelay()
    }

    open override func deleteBackward() {


import UIKit
import Foundation
import Gridicons

public protocol TextViewMediaDelegate: class {
