@tailor-cms/ce-html-edit 2.0.0 → 2.1.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/LICENSE +21 -0
- package/README.md +54 -1
- package/dist/index.cjs +357 -278
- package/dist/index.css +1 -1
- package/dist/index.js +357 -278
- package/package.json +18 -10
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Studion
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1 +1,54 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @tailor-cms/ce-html-edit
|
|
2
|
+
|
|
3
|
+
Authoring component for the **HTML** content element in [Tailor CMS](https://github.com/tailor-cms/author).
|
|
4
|
+
|
|
5
|
+
Renders the element inside the Tailor authoring interface, where content is created and edited.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @tailor-cms/ce-html-edit
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Content elements are normally registered with Tailor through the element
|
|
16
|
+
registry rather than imported directly, but the package can be consumed on its
|
|
17
|
+
own:
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
import { Edit } from '@tailor-cms/ce-html-edit';
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Element
|
|
24
|
+
|
|
25
|
+
| Property | Value |
|
|
26
|
+
| --- | --- |
|
|
27
|
+
| Name | HTML |
|
|
28
|
+
| Type | `TIPTAP_HTML` |
|
|
29
|
+
| Icon | [`mdi-text-box-outline`](https://pictogrammers.com/library/mdi/) |
|
|
30
|
+
| Composite | No |
|
|
31
|
+
|
|
32
|
+
## Packages
|
|
33
|
+
|
|
34
|
+
This element ships as four packages, published together from the
|
|
35
|
+
[`ce-html`](https://github.com/tailor-cms/ce_html_default) repository:
|
|
36
|
+
|
|
37
|
+
| Package | Role |
|
|
38
|
+
| --- | --- |
|
|
39
|
+
| [`@tailor-cms/ce-html-manifest`](https://www.npmjs.com/package/@tailor-cms/ce-html-manifest) | Shared element definition |
|
|
40
|
+
| [`@tailor-cms/ce-html-edit`](https://www.npmjs.com/package/@tailor-cms/ce-html-edit) | Authoring component |
|
|
41
|
+
| [`@tailor-cms/ce-html-display`](https://www.npmjs.com/package/@tailor-cms/ce-html-display) | End-user component |
|
|
42
|
+
| [`@tailor-cms/ce-html-server`](https://www.npmjs.com/package/@tailor-cms/ce-html-server) | Server-side module |
|
|
43
|
+
|
|
44
|
+
## Development
|
|
45
|
+
|
|
46
|
+
```sh
|
|
47
|
+
pnpm install
|
|
48
|
+
pnpm dev # start the Content Element Kit runtime
|
|
49
|
+
pnpm build # build all packages
|
|
50
|
+
pnpm test # Playwright end-to-end suite
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Changes are released with [changesets](https://github.com/changesets/changesets);
|
|
54
|
+
run `pnpm changeset` to record one.
|