From 13dea5af4404dcb6154d5cf93a10112cfd7bf785 Mon Sep 17 00:00:00 2001 From: khaydarov Date: Wed, 13 Jul 2016 21:33:18 +0300 Subject: [PATCH] small fix in quote.js --- plugins/quote/quote.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/quote/quote.js b/plugins/quote/quote.js index a6af4c86..f8939d6d 100644 --- a/plugins/quote/quote.js +++ b/plugins/quote/quote.js @@ -136,7 +136,10 @@ var quoteTools = { var parsedOldQuote = quoteTools.parseBlockQuote(), newStyledQuote = quoteStyle(parsedOldQuote); - cEditor.content.replaceBlock(cEditor.content.currentNode, newStyledQuote, 'quote'); + var wrapper = cEditor.content.composeNewBlock(newStyledQuote, 'quote'); + wrapper.appendChild(newStyledQuote); + + cEditor.content.replaceBlock(cEditor.content.currentNode, wrapper, 'quote'); /** Close settings after replacing */ cEditor.toolbar.settings.close();