From b92daf96f5ae40abaadc3f41e448fcc75824334b Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sun, 10 May 2015 14:14:35 +0200 Subject: disable manifest during development, set placeholder text --- controllers/editor.php | 10 +++++----- public/editor/editor.js | 3 +++ public/editor/style.css | 4 ++++ views/editor.php | 10 +++++----- views/partials/appcache.php | 2 +- 5 files changed, 18 insertions(+), 11 deletions(-) diff --git a/controllers/editor.php b/controllers/editor.php index 995438b..a66c188 100644 --- a/controllers/editor.php +++ b/controllers/editor.php @@ -33,9 +33,9 @@ $app->get('/editor/oembed', function() use($app) { $app->response()->body($json); }); -$app->get('/appcache.manifest', function() use($app) { - $content = partial('partials/appcache'); +// $app->get('/appcache.manifest', function() use($app) { +// $content = partial('partials/appcache'); - $app->response()['Content-type'] = 'text/cache-manifest'; - $app->response()->body($content); -}); +// $app->response()['Content-type'] = 'text/cache-manifest'; +// $app->response()->body($content); +// }); diff --git a/public/editor/editor.js b/public/editor/editor.js index bdf0580..2c4972f 100644 --- a/public/editor/editor.js +++ b/public/editor/editor.js @@ -26,4 +26,7 @@ $(function () { } } }); + $('.editable').focus(function(){ + $('.placeholder').removeClass('placeholder'); + }); }); diff --git a/public/editor/style.css b/public/editor/style.css index b72bf92..bec46db 100644 --- a/public/editor/style.css +++ b/public/editor/style.css @@ -95,3 +95,7 @@ blockquote { border-bottom: 1px solid #dbdbdb; border-top: 1px solid #dbdbdb; } + +.editable .placeholder { + color: #ccc; +} diff --git a/views/editor.php b/views/editor.php index 5036723..fc4fcc6 100644 --- a/views/editor.php +++ b/views/editor.php @@ -1,5 +1,5 @@ - + Quill Editor @@ -31,7 +31,6 @@ - @@ -43,10 +42,11 @@
- -
- + +

Tell your story...

+ + \ No newline at end of file diff --git a/views/partials/appcache.php b/views/partials/appcache.php index 4fa1f13..546685f 100644 --- a/views/partials/appcache.php +++ b/views/partials/appcache.php @@ -1,6 +1,6 @@ CACHE MANIFEST -# v1 +# v3 /editor /editor/style.css -- cgit v1.2.3