@mapomodule/mcp 1.0.0-beta.4 → 1.0.0-beta.5
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/dist/module.json
CHANGED
|
@@ -102,6 +102,27 @@ export const RECIPES = [
|
|
|
102
102
|
seeAlso: ["uikit/form/index.md"],
|
|
103
103
|
summary: "Every built-in field type, the component behind it and its attrs."
|
|
104
104
|
},
|
|
105
|
+
{
|
|
106
|
+
id: "rich-text-editor",
|
|
107
|
+
// No "editor" here: the word already points at the menu and block editors.
|
|
108
|
+
task: "Customize a rich text (WYSIWYG) field: Tiptap extensions, HTML source view, toolbar buttons",
|
|
109
|
+
keywords: [
|
|
110
|
+
"wysiwyg",
|
|
111
|
+
"rich text",
|
|
112
|
+
"tiptap",
|
|
113
|
+
"extensions",
|
|
114
|
+
"html source",
|
|
115
|
+
"source view",
|
|
116
|
+
"edit html",
|
|
117
|
+
"toolbar button",
|
|
118
|
+
"insert table",
|
|
119
|
+
"table"
|
|
120
|
+
],
|
|
121
|
+
doc: "uikit/form/add-fields.md",
|
|
122
|
+
heading: "WYSIWYG editor",
|
|
123
|
+
seeAlso: ["uikit/form/api.md"],
|
|
124
|
+
summary: "type: 'editor' with attrs.extensions (Tiptap v2), attrs.source (an HTML source view whose value is sanitized and normalized) and attrs.toolbar (buttons for the extensions' commands)."
|
|
125
|
+
},
|
|
105
126
|
{
|
|
106
127
|
id: "block-editor",
|
|
107
128
|
task: "Build a block editor with a block picker (repeater with templates)",
|
package/package.json
CHANGED
|
@@ -37,6 +37,11 @@ describe("matchRecipes", () => {
|
|
|
37
37
|
["set up the camomilla session cookie", "camomilla"],
|
|
38
38
|
["limit the content languages to italian", "content-languages"],
|
|
39
39
|
["hide the language tabs on a single language site", "content-languages"],
|
|
40
|
+
[
|
|
41
|
+
"let editors see and edit the html source of the editor",
|
|
42
|
+
"rich-text-editor",
|
|
43
|
+
],
|
|
44
|
+
["add an insert table button to the wysiwyg toolbar", "rich-text-editor"],
|
|
40
45
|
])("maps %j to the %j recipe", (query, expectedId) => {
|
|
41
46
|
expect(matchRecipes(query)[0]?.id).toBe(expectedId);
|
|
42
47
|
});
|
|
@@ -132,6 +132,28 @@ export const RECIPES: Recipe[] = [
|
|
|
132
132
|
summary:
|
|
133
133
|
"Every built-in field type, the component behind it and its attrs.",
|
|
134
134
|
},
|
|
135
|
+
{
|
|
136
|
+
id: "rich-text-editor",
|
|
137
|
+
// No "editor" here: the word already points at the menu and block editors.
|
|
138
|
+
task: "Customize a rich text (WYSIWYG) field: Tiptap extensions, HTML source view, toolbar buttons",
|
|
139
|
+
keywords: [
|
|
140
|
+
"wysiwyg",
|
|
141
|
+
"rich text",
|
|
142
|
+
"tiptap",
|
|
143
|
+
"extensions",
|
|
144
|
+
"html source",
|
|
145
|
+
"source view",
|
|
146
|
+
"edit html",
|
|
147
|
+
"toolbar button",
|
|
148
|
+
"insert table",
|
|
149
|
+
"table",
|
|
150
|
+
],
|
|
151
|
+
doc: "uikit/form/add-fields.md",
|
|
152
|
+
heading: "WYSIWYG editor",
|
|
153
|
+
seeAlso: ["uikit/form/api.md"],
|
|
154
|
+
summary:
|
|
155
|
+
"type: 'editor' with attrs.extensions (Tiptap v2), attrs.source (an HTML source view whose value is sanitized and normalized) and attrs.toolbar (buttons for the extensions' commands).",
|
|
156
|
+
},
|
|
135
157
|
{
|
|
136
158
|
id: "block-editor",
|
|
137
159
|
task: "Build a block editor with a block picker (repeater with templates)",
|