diff --git a/docs/demos/js/loader.js b/docs/demos/js/loader.js index a25d1885c..7e0dafabf 100644 --- a/docs/demos/js/loader.js +++ b/docs/demos/js/loader.js @@ -1,4 +1,4 @@ -var baseURL = window.location.hostname.indexOf('github.') !== -1 ? '//cdn.rawgit.com/Alex-D/Trumbowyg/v2.9.2/' : '../../../'; +var baseURL = window.location.hostname.indexOf('github.') !== -1 ? '//cdn.rawgit.com/Alex-D/Trumbowyg/v2.10.0/' : '../../../'; var styleLoadingContainer = document.querySelector('.loading-head'); var scriptLoadingContainer = document.querySelector('.loading-body'); diff --git a/docs/documentation/plugins/index.html b/docs/documentation/plugins/index.html index d53d231a5..7e781e626 100644 --- a/docs/documentation/plugins/index.html +++ b/docs/documentation/plugins/index.html @@ -764,19 +764,27 @@

How to use it?

<script src="node_modules/trumbowyg/dist/plugins/template/trumbowyg.template.min.js"></script>

- Then you can use the new button definition template + Then you can use the new button definition template and can add your template code.


 $('#my-editor').trumbowyg({
     btns: [
         ['template']
-    ]
+    ],
+    plugins: {
+        templates: [
+            {
+                name: 'Template 1',
+                html: '

I am a template!

' + }, + { + name: 'Template 2', + html: '

I am a different template!

' + } + ] + } });
-

- Some doc to write about template options/definition...
- You can contribute to this documentation by submitting a Pull Request :) -

diff --git a/docs/index.html b/docs/index.html index bc7c7fd62..08f9924ef 100644 --- a/docs/index.html +++ b/docs/index.html @@ -13,9 +13,9 @@ - + + href="//cdn.rawgit.com/Alex-D/Trumbowyg/v2.10.0/dist/plugins/colors/ui/trumbowyg.colors.min.css"> @@ -180,7 +180,7 @@

30+ Languages