From fc6e58784145ee9d20855b23a2f1429ca75350e6 Mon Sep 17 00:00:00 2001 From: yuvaraj Date: Thu, 24 Mar 2022 14:58:02 +0530 Subject: [PATCH] CUR-3373 - Standardization for Free text question - fix interactive video free text question input box issue --- h5p-free-text-question.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/h5p-free-text-question.js b/h5p-free-text-question.js index d0ecfdd..12844af 100644 --- a/h5p-free-text-question.js +++ b/h5p-free-text-question.js @@ -15,7 +15,8 @@ H5P.FreeTextQuestion = (function (EventDispatcher, $, CKEditor) { var self = this; var textAreaID = 'h5p-text-area-' + counter; counter++; - var isEditing = (window.H5PEditor !== undefined); + // check editing attribute sent from parent + var isEditing = extras && extras.hasOwnProperty('editing') ? extras.editing : (window.H5PEditor !== undefined); var attached; var textarea; var useCK = false;