Merge "allow html Forms in plugins / improve export demo"
diff --git a/dev/demo/export.js b/dev/demo/export.js
index 0457436..09e126f 100644
--- a/dev/demo/export.js
+++ b/dev/demo/export.js
@@ -13,7 +13,7 @@
 });
 
 
-require(['plugin/server', 'panel/result'], function (pluginClass, resultPanelClass){
+require(['plugin/server', 'panel/result', 'init'], function (pluginClass, resultPanelClass){
 
   KorAP.Plugin = pluginClass.create();
 
@@ -48,16 +48,9 @@
     var sb = document.getElementById('search');
     sb.insertBefore(resultPanel.element(), sb.firstChild);
     };
-  
-    resultPanel.addAlignAction();
     
     // There is a koralQuery
     if (KorAP.koralQuery !== undefined) {    
-    
-      // Add KoralQuery view to result panel
-    if (resultInfo !== null) {
-      resultPanel.addKqAction()
-    };
 
     if (KorAP.koralQuery["errors"]) {
       var errors = KorAP.koralQuery["errors"];
diff --git a/dev/js/spec/pluginSpec.js b/dev/js/spec/pluginSpec.js
index 41589ec..570f3f4 100644
--- a/dev/js/spec/pluginSpec.js
+++ b/dev/js/spec/pluginSpec.js
@@ -174,7 +174,7 @@
 
       var iframe = we.firstChild;
       expect(iframe.tagName).toEqual("IFRAME");
-      expect(iframe.getAttribute("sandbox")).toEqual("allow-scripts");
+      expect(iframe.getAttribute("sandbox")).toEqual("allow-scripts allow-forms");
       expect(iframe.getAttribute("src")).toEqual("https://example");
       expect(iframe.getAttribute("name")).toEqual("56");
 
diff --git a/dev/js/src/plugin/service.js b/dev/js/src/plugin/service.js
index c8b42dd..be567be 100644
--- a/dev/js/src/plugin/service.js
+++ b/dev/js/src/plugin/service.js
@@ -35,7 +35,8 @@
       let e = document.createElement('iframe');
       e.setAttribute('allowTransparency',"true");
       e.setAttribute('frameborder', 0);
-      e.setAttribute('sandbox','allow-scripts');
+      // Allow forms in Plugins
+      e.setAttribute('sandbox','allow-scripts allow-forms');
       e.style.height = '0px';
       e.setAttribute('name', this.id);
       e.setAttribute('src', this.src);