diff options
author | Mateja <mail@matejamaric.com> | 2021-05-06 21:07:24 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-05-06 21:07:24 +0200 |
commit | 376fae2a3367d5813d088a29c5a62938bd55f762 (patch) | |
tree | 3812cbf552d90024550cc2e88e0ba2cf4927f191 /views/new-post.handlebars | |
parent | e0f29f19df909b7a49ac693d82ba5ff085d079a2 (diff) | |
download | node-playground-376fae2a3367d5813d088a29c5a62938bd55f762.tar.gz node-playground-376fae2a3367d5813d088a29c5a62938bd55f762.zip |
Boilerplate for login system.
Diffstat (limited to 'views/new-post.handlebars')
-rw-r--r-- | views/new-post.handlebars | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/views/new-post.handlebars b/views/new-post.handlebars index 19984ee..9e42ba9 100644 --- a/views/new-post.handlebars +++ b/views/new-post.handlebars @@ -7,8 +7,14 @@ </div> <div class="mb-3"> <label for="post_text" class="form-label">Post text:</label> - <textarea name="text" class="form-control" id="post_text" rows="3" required></textarea> + <textarea name="text" class="form-control" id="post_text"></textarea> </div> <button type="submit" class="btn">Submit</button> </form> </div> +<script src="https://cdn.ckeditor.com/ckeditor5/27.1.0/classic/ckeditor.js"></script> +<script> +ClassicEditor + .create(document.querySelector('#post_text')) + .catch(error => console.error(error)); +</script> |