From 2a6945cbe5b27563078addd592d600ea14b56c85 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 12 Nov 2018 10:54:21 +0100 Subject: [PATCH 1/2] Fix export in the pad app with Chrome --- www/pad/export.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/pad/export.js b/www/pad/export.js index 2bc54a430..263593a54 100644 --- a/www/pad/export.js +++ b/www/pad/export.js @@ -38,7 +38,7 @@ define([ module.main = function (userDoc, cb) { var inner; - if (userDoc instanceof Element || userDoc instanceof HTMLElement) { + if (userDoc && userDoc.tagName) { inner = userDoc; } else { try { From 67f3eb40a9e0429c3b5270809755abf3568e7188 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 12 Nov 2018 11:50:01 +0100 Subject: [PATCH 2/2] Fix magic line creating an empty space at the top of the pad --- customize.dist/ckeditor-contents.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/customize.dist/ckeditor-contents.css b/customize.dist/ckeditor-contents.css index 80d2c3890..378d61793 100644 --- a/customize.dist/ckeditor-contents.css +++ b/customize.dist/ckeditor-contents.css @@ -24,10 +24,16 @@ body right: 0; } +/* Remove margin-top for the first element */ body > *:first-child { margin-top: 0; } +/* If the magic line is the first element, remove margin-top for the next one */ +body > .non-realtime:first-child + * { + margin-top: 0; +} + .cke_editable { font-size: 16px;