From d8a74a18f6df31c6f7f87e47cc08de4206ca6b18 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Wed, 2 Aug 2017 09:43:53 +0200 Subject: [PATCH] Ensure always a language is selected --- .../ckeditor/plugins/codesnippet/dialogs/codesnippet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sites/all/libraries/ckeditor/plugins/codesnippet/dialogs/codesnippet.js b/sites/all/libraries/ckeditor/plugins/codesnippet/dialogs/codesnippet.js index d0e35b3..cec1713 100644 --- a/sites/all/libraries/ckeditor/plugins/codesnippet/dialogs/codesnippet.js +++ b/sites/all/libraries/ckeditor/plugins/codesnippet/dialogs/codesnippet.js @@ -53,7 +53,7 @@ this.getInputElement().$.selectedIndex = -1; }, commit: function( widget ) { - widget.setData( 'lang', this.getValue() ); + widget.setData( 'lang', this.getValue() || 'text' ); } }, {