From 2a5b77faa464b03adea85f2c063eea0ffa7f4a4c Mon Sep 17 00:00:00 2001 From: incode11 Date: Tue, 24 May 2016 14:18:59 +0300 Subject: [PATCH] fix bug #1068 --- dist/js/medium-editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dist/js/medium-editor.js b/dist/js/medium-editor.js index d3f87d466..458d16e70 100644 --- a/dist/js/medium-editor.js +++ b/dist/js/medium-editor.js @@ -928,6 +928,10 @@ MediumEditor.extensions = {}; // FF handles blockquote differently on formatBlock // allowing nesting, we need to use outdent // https://developer.mozilla.org/en-US/docs/Rich-Text_Editing_in_Mozilla + + /* fix bug #1068 Quote is not working after orderedlist/unorderedlist list was removed*/ + doc.execCommand('formatBlock', false, "BLOCKQUOTE"); + return doc.execCommand('outdent', false, null); } }