             attachment.progress = nil
             if let videoAttachment = attachment as? VideoAttachment, let videoURL = progress.userInfo[MediaProgressKey.videoURL] as? URL {
                 videoAttachment.srcURL = videoURL                
-                richTextView.update(attachment: videoAttachment)
+                richTextView.refreshLayout(for: videoAttachment)
             }
         }
         richTextView.refreshLayout(for: attachment)

    func displayDetailsForAttachment(_ attachment: ImageAttachment, position:CGPoint) {
        let detailsViewController = AttachmentDetailsViewController.controller()
        detailsViewController.attachment = attachment
        detailsViewController.onUpdate = { [weak self] (alignment, size, url, alt) in

            guard let strongSelf = self else {
                return
            }
            if let alt = alt {
                attachment.extraAttributes["alt"] = alt
            }
            strongSelf.richTextView.update(attachment: attachment,
                                           alignment: alignment,
                                           size: size,
                                           url: url)
        }

        let navigationController = UINavigationController(rootViewController: detailsViewController)        

    func displayUnknownHtmlEditor(for attachment: HTMLAttachment) {
        let targetVC = UnknownEditorViewController(attachment: attachment)
        targetVC.onDidSave = { [weak self] html in
            attachment.rawHTML = html
            self?.richTextView.refreshLayout(for: attachment)
            self?.dismiss(animated: true, completion: nil)
        }

