From 6de9754c83300282401ed29cfaac87cb0b1b0e34 Mon Sep 17 00:00:00 2001 From: drclockwork Date: Tue, 13 Jun 2017 14:24:46 +0200 Subject: [PATCH] fix size of video in editor --- h5pp/h5p/editor/h5peditormodule.py | 5 +++++ h5pp/h5p/h5pmodule.py | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/h5pp/h5p/editor/h5peditormodule.py b/h5pp/h5p/editor/h5peditormodule.py index 9c340f0..ba8d8f6 100644 --- a/h5pp/h5p/editor/h5peditormodule.py +++ b/h5pp/h5p/editor/h5peditormodule.py @@ -14,6 +14,8 @@ STYLES = ["libs/darkroom.css", "styles/css/application.css"] +OVERRIDE_STYLES = '/static/h5p/styles/h5pp.css' + SCRIPTS = [ "scripts/h5peditor.js", "scripts/h5peditor-semantic-structure.js", @@ -53,6 +55,9 @@ def h5peditorContent(request, contentId=None): css = settings.STATIC_URL + 'h5p/h5peditor/' + style assets['css'].append(css) + #Override Css + assets['css'].append(OVERRIDE_STYLES) + for script in SCRIPTS: if script != 'scripts/h5peditor-editor.js': js = settings.STATIC_URL + 'h5p/h5peditor/' + script diff --git a/h5pp/h5p/h5pmodule.py b/h5pp/h5p/h5pmodule.py index a51b463..d37ce4f 100644 --- a/h5pp/h5p/h5pmodule.py +++ b/h5pp/h5p/h5pmodule.py @@ -336,7 +336,6 @@ def h5pAddFilesAndSettings(request, embedType): assets = h5pAddCoreAssets() if not 'json_content' in request.GET or not 'contentId' in request.GET: - print("passe") return integration content = h5pGetContent(request)