From 28469ae5b31aaf872ed3a70e6f24f881614ba753 Mon Sep 17 00:00:00 2001 From: ssibrahimpur Date: Wed, 15 Apr 2020 11:27:12 +0530 Subject: [PATCH 1/5] Updated Readme --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5d57d276..7bf4d930 100644 --- a/README.md +++ b/README.md @@ -12,19 +12,23 @@ Check out the [Froala editor homepage](https://froala.com/wysiwyg-editor) for mo meteor add froala:editor ``` 2.Create a froala-template in your main.html file. +``` - +``` 3.Include the template in body of html. +``` {{> froala}} - +``` 4.Run froala when template is rendered in main.js file. +``` Template.froala.rendered = function () { $('.editor').froalaEditor() }; +``` From 496c7389528a013a9c3a4cedf3733d63f861639a Mon Sep 17 00:00:00 2001 From: ssibrahimpur <47515317+ssibrahimpur@users.noreply.github.com> Date: Wed, 15 Apr 2020 17:53:22 +0530 Subject: [PATCH 2/5] update readme for froala options --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7bf4d930..135468c2 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,9 @@ meteor add froala:editor 4.Run froala when template is rendered in main.js file. ``` Template.froala.rendered = function () { - $('.editor').froalaEditor() + $('.editor').froalaEditor({ + toolbarInline: true + }) }; ``` From b42898e3293316d9359bf148aa82300de3ca04f7 Mon Sep 17 00:00:00 2001 From: ssibrahimpur <47515317+ssibrahimpur@users.noreply.github.com> Date: Wed, 15 Apr 2020 17:57:54 +0530 Subject: [PATCH 3/5] Add link to documentation --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 135468c2..446a0796 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ Template.froala.rendered = function () { }) }; ``` +Check out the [Froala editor documentation](https://froala.com/wysiwyg-editor/v2.0/docs/) for more details to add `options, events and methods`. From 08bc6adafd10aff65894d911f9c3d175231e2d19 Mon Sep 17 00:00:00 2001 From: ssibrahimpur <47515317+ssibrahimpur@users.noreply.github.com> Date: Wed, 15 Apr 2020 18:02:30 +0530 Subject: [PATCH 4/5] update version --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 446a0796..362705d4 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Check out the [Froala editor homepage](https://froala.com/wysiwyg-editor) for mo 1.Open terminal in your meteor project directory and execute following command: ```bash -meteor add froala:editor +meteor add froala:editor@2.9.6 ``` 2.Create a froala-template in your main.html file. ``` From e057b0f86c5d5e9584cc02218cdba621ce687a21 Mon Sep 17 00:00:00 2001 From: ssibrahimpur <47515317+ssibrahimpur@users.noreply.github.com> Date: Wed, 15 Apr 2020 18:03:10 +0530 Subject: [PATCH 5/5] Revert changes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 362705d4..446a0796 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Check out the [Froala editor homepage](https://froala.com/wysiwyg-editor) for mo 1.Open terminal in your meteor project directory and execute following command: ```bash -meteor add froala:editor@2.9.6 +meteor add froala:editor ``` 2.Create a froala-template in your main.html file. ```