From 8539f288d5653db6d3ad0b6daa4d221c82505b86 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Wed, 20 Dec 2017 22:18:36 +0100 Subject: [PATCH] Prevent undefined rte --- src/rich_text_editor/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rich_text_editor/index.js b/src/rich_text_editor/index.js index 7a7cc4fc01..2e9c5e453b 100644 --- a/src/rich_text_editor/index.js +++ b/src/rich_text_editor/index.js @@ -280,7 +280,7 @@ module.exports = () => { if (customRte) { customRte.disable(el, rte); } else { - rte.disable(); + rte && rte.disable(); } hideToolbar();