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;