Skip to content
This repository was archived by the owner on Dec 13, 2017. It is now read-only.

Commit fc28a55

Browse files
Fixed a bug with blockquotes behaving erratically.
1 parent 61db829 commit fc28a55

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Assets/ZSSRichTextEditor.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,12 @@ ZSSEditor.setBlockquote = function() {
457457
var sendStyles = false;
458458

459459
var ancestorElement = this.getAncestorElementForSettingBlockquote(range);
460-
460+
var focusedField = this.getFocusedField();
461+
462+
if (ancestorElement == focusedField.wrappedDomNode()) {
463+
focusedField.wrapCaretInParagraphIfNecessary()
464+
}
465+
461466
if (ancestorElement) {
462467
sendStyles = true;
463468

0 commit comments

Comments
 (0)