From 9633fb5cbd935dc32bcce39f252f4eef9267e9a5 Mon Sep 17 00:00:00 2001
From: Frode Petterson <frode.andre.petterson@gmail.com>
Date: Thu, 31 Oct 2019 09:33:38 +0100
Subject: [PATCH] HFP-2860 Fix correct setting

---
 scripts/h5peditor-html.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/h5peditor-html.js b/scripts/h5peditor-html.js
index 8bef95fb..30226efa 100644
--- a/scripts/h5peditor-html.js
+++ b/scripts/h5peditor-html.js
@@ -32,7 +32,7 @@ ns.Html.prototype.inTags = function (value) {
  * @return {boolean}
  */
 ns.Html.prototype.inButtons = function (button) {
-  return (H5PIntegration.wysiwygButtons !== undefined && H5PIntegration.wysiwygButtons.indexOf(button) !== -1);
+  return (H5PIntegration.editor.wysiwygButtons !== undefined && H5PIntegration.editor.wysiwygButtons.indexOf(button) !== -1);
 };
 
 ns.Html.prototype.createToolbar = function () {
-- 
GitLab