From 9d661e454e389c4d14fddfc35d74e9d251409ffe Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Thu, 9 Jul 2015 12:08:19 +0100 Subject: [PATCH] Responsive helper plugin ready plus 500x500px PW --- editor.php | 4 ++++ lib/file-control-xhr.php | 1 + lib/ice-coder.js | 6 +++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/editor.php b/editor.php index eac8454..202d077 100644 --- a/editor.php +++ b/editor.php @@ -38,6 +38,10 @@ if (file_exists(dirname(__FILE__)."/plugins/pesticide/pesticide.js")) { if (file_exists(dirname(__FILE__)."/plugins/stats.js/stats.min.js")) { echo ''; };?> +'; +};?> -1 ? cMdiff : cM; top.ICEcoder.previewWindowLoading = true; - top.ICEcoder.previewWindow = window.open(filepath,"previewWindow"); + top.ICEcoder.previewWindow = window.open(filepath,"previewWindow",500,500); if (["md"].indexOf(fileExt) > -1) { top.ICEcoder.previewWindow.onload = function() { top.ICEcoder.previewWindowLoading = false; @@ -2786,6 +2788,8 @@ var ICEcoder = { try {top.ICEcoder.doPesticide();} catch(err) {}; // Do the stats.js plugin if it exists try {top.ICEcoder.doStatsJS('open');} catch(err) {}; + // Do the responsive plugin if it exists + try {top.ICEcoder.doResponsive();} catch(err) {}; } } }