ckbox 1.1.0 → 1.1.1-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,106 @@
1
- ## ckbox
1
+ # CKBox
2
2
 
3
- To be filled in.
3
+ https://ckeditor.com/ckbox/
4
+
5
+ CKBox is a file management platform that makes working with your files easier while providing an outstanding user experience.
6
+
7
+ ![](https://user-images.githubusercontent.com/803299/178721119-1c5b2bec-087e-4bee-a924-a737161a7bf0.png)
8
+
9
+ ## Quick start
10
+
11
+ Using a build served from the CDN is the simplest and fastest way of embedding CKBox in your application. Additionally, all the scripts served from the CDN are loaded faster, as they are hosted on multiple servers around the globe, shortening the response time.
12
+
13
+ To start using CKBox on your website, embed the following `script` element in the HTML code of the page:
14
+
15
+ ```html
16
+ <script src="https://cdn.ckbox.io/CKBox/1.1.1-dev.0/ckbox.js"></script>
17
+ ```
18
+
19
+ Quick implementation example:
20
+
21
+ ```html
22
+ <html>
23
+ <head>
24
+ <meta charset="UTF-8" />
25
+ <script src="https://cdn.ckbox.io/CKBox/1.1.1-dev.0/ckbox.js"></script>
26
+ </head>
27
+ <body>
28
+ <div id="ckbox"></div>
29
+ <script>
30
+ // You must provide a valid token URL in order to use the application
31
+ // After registering to CKBox, the fastest way to try out CKBox is to use the development token endpoint:
32
+ // https://ckeditor.com/docs/ckbox/latest/guides/configuration/authentication.html#token-endpoint
33
+ CKBox.mount(document.getElementById("ckbox"), {
34
+ tokenUrl: "https://your.token.url",
35
+ });
36
+ </script>
37
+ </body>
38
+ </html>
39
+ ```
40
+
41
+ ### Integration with CKEditor 5
42
+
43
+ The code snippet below presents the simplest scenario for integration of CKEditor 5 with CKBox. To read more about the integration, please refer to the [CKEditor 5 integration guide](https://ckeditor.com/docs/ckbox/latest/guides/configuration/ckeditor-integration.html).
44
+
45
+ ```html
46
+ <html>
47
+ <head>
48
+ <meta charset="UTF-8" />
49
+ <script src="https://cdn.ckeditor.com/ckeditor5/34.2.0/classic/ckeditor.js"></script>
50
+ <script src="https://cdn.ckbox.io/CKBox/1.1.1-dev.0/ckbox.js"></script>
51
+ </head>
52
+ <body>
53
+ <div id="editor"></div>
54
+ <script>
55
+ ClassicEditor.create(document.querySelector("#editor"), {
56
+ ckbox: {
57
+ tokenUrl: "https://your.token.url",
58
+ },
59
+ toolbar: [
60
+ "ckbox",
61
+ "imageUpload",
62
+ "|",
63
+ "heading",
64
+ "|",
65
+ "undo",
66
+ "redo",
67
+ "|",
68
+ "bold",
69
+ "italic",
70
+ "|",
71
+ "blockQuote",
72
+ "indent",
73
+ "link",
74
+ "|",
75
+ "bulletedList",
76
+ "numberedList",
77
+ ],
78
+ }).catch((error) => {
79
+ console.error(error);
80
+ });
81
+ </script>
82
+ </body>
83
+ </html>
84
+ ```
85
+
86
+ For more advanced integration scenarios, please refer to the [CKBox documentation](https://ckeditor.com/docs/ckbox/latest/guides/index.html).
87
+
88
+ ## Documentation
89
+
90
+ [CKBox documentation](https://ckeditor.com/docs/ckbox/latest/guides/index.html) includes information about:
91
+
92
+ - Enabling CKBox in your application.
93
+ - Integrating CKBox with CKEditor 5.
94
+ - Configuring and customizing CKBox.
95
+
96
+ You will find ready to use code snippets and live examples there.
97
+
98
+ ## License
99
+
100
+ **CKBox** (https://ckeditor.com/ckbox/)
101
+
102
+ Copyright (c) 2003-2022, [CKSource Holding sp. z o.o.](https://cksource.com/) All rights reserved.
103
+ **CKBox** is licensed under a commercial license and is protected by copyright law. For more details about available licensing options please contact us at [sales@cksource.com](mailto:sales@cksource.com).
104
+
105
+ Trademarks
106
+ **CKBox** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com/) All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.