@semantic-components/ui 0.47.0 → 0.49.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.
|
@@ -159,95 +159,100 @@ class ScEditor {
|
|
|
159
159
|
extensions.push(Heading);
|
|
160
160
|
extensions.push(Paragraph);
|
|
161
161
|
extensions.push(Text);
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
162
|
+
try {
|
|
163
|
+
if (this.extensions.highlight()) {
|
|
164
|
+
const Highlight = (await import('@tiptap/extension-highlight')).Highlight;
|
|
165
|
+
extensions.push(Highlight);
|
|
166
|
+
}
|
|
167
|
+
if (this.extensions.textStyle()) {
|
|
168
|
+
const TextStyle = (await import('@tiptap/extension-text-style')).TextStyle;
|
|
169
|
+
extensions.push(TextStyle);
|
|
170
|
+
}
|
|
171
|
+
if (this.extensions.color()) {
|
|
172
|
+
const Color = (await import('@tiptap/extension-color')).Color;
|
|
173
|
+
extensions.push(Color);
|
|
174
|
+
}
|
|
175
|
+
if (this.extensions.fontFamily()) {
|
|
176
|
+
const FontFamily = (await import('@tiptap/extension-font-family')).FontFamily;
|
|
177
|
+
extensions.push(FontFamily);
|
|
178
|
+
}
|
|
179
|
+
if (this.extensions.underline()) {
|
|
180
|
+
const Underline = (await import('@tiptap/extension-underline')).Underline;
|
|
181
|
+
extensions.push(Underline);
|
|
182
|
+
}
|
|
183
|
+
if (this.extensions.image()) {
|
|
184
|
+
const Image = (await import('@tiptap/extension-image')).Image;
|
|
185
|
+
extensions.push(Image);
|
|
186
|
+
}
|
|
187
|
+
if (this.extensions.youtube()) {
|
|
188
|
+
const Youtube = (await import('@tiptap/extension-youtube')).Youtube;
|
|
189
|
+
extensions.push(Youtube);
|
|
190
|
+
}
|
|
191
|
+
if (this.extensions.link()) {
|
|
192
|
+
const Link = (await import('@tiptap/extension-link')).Link;
|
|
193
|
+
extensions.push(Link);
|
|
194
|
+
}
|
|
195
|
+
if (this.extensions.textAlign()) {
|
|
196
|
+
const TextAlign = (await import('@tiptap/extension-text-align')).TextAlign;
|
|
197
|
+
extensions.push(TextAlign.configure({
|
|
198
|
+
types: ['heading', 'paragraph'],
|
|
199
|
+
}));
|
|
200
|
+
}
|
|
201
|
+
if (this.extensions.bulletList() || this.extensions.orderedList()) {
|
|
202
|
+
const ListItem = (await import('@tiptap/extension-list-item')).ListItem;
|
|
203
|
+
extensions.push(ListItem);
|
|
204
|
+
}
|
|
205
|
+
if (this.extensions.bulletList()) {
|
|
206
|
+
const BulletList = (await import('@tiptap/extension-bullet-list')).BulletList;
|
|
207
|
+
extensions.push(BulletList);
|
|
208
|
+
}
|
|
209
|
+
if (this.extensions.orderedList()) {
|
|
210
|
+
const OrderedList = (await import('@tiptap/extension-ordered-list')).OrderedList;
|
|
211
|
+
extensions.push(OrderedList);
|
|
212
|
+
}
|
|
213
|
+
if (this.extensions.strike()) {
|
|
214
|
+
const Strike = (await import('@tiptap/extension-strike')).Strike;
|
|
215
|
+
extensions.push(Strike);
|
|
216
|
+
}
|
|
217
|
+
if (this.extensions.italic()) {
|
|
218
|
+
const Italic = (await import('@tiptap/extension-italic')).Italic;
|
|
219
|
+
extensions.push(Italic);
|
|
220
|
+
}
|
|
221
|
+
if (this.extensions.bold()) {
|
|
222
|
+
const Bold = (await import('@tiptap/extension-bold')).Bold;
|
|
223
|
+
extensions.push(Bold);
|
|
224
|
+
}
|
|
225
|
+
if (this.extensions.horizontalRule()) {
|
|
226
|
+
const HorizontalRule = (await import('@tiptap/extension-horizontal-rule')).HorizontalRule;
|
|
227
|
+
extensions.push(HorizontalRule);
|
|
228
|
+
}
|
|
229
|
+
if (this.extensions.blockquote()) {
|
|
230
|
+
const Blockquote = (await import('@tiptap/extension-blockquote')).Blockquote;
|
|
231
|
+
extensions.push(Blockquote);
|
|
232
|
+
}
|
|
233
|
+
if (this.extensions.code()) {
|
|
234
|
+
const Code = (await import('@tiptap/extension-code')).Code;
|
|
235
|
+
extensions.push(Code);
|
|
236
|
+
}
|
|
237
|
+
if (this.extensions.history()) {
|
|
238
|
+
const History = (await import('@tiptap/extension-history')).History;
|
|
239
|
+
extensions.push(History);
|
|
240
|
+
}
|
|
241
|
+
if (this.extensions.table()) {
|
|
242
|
+
const TableHeader = (await import('@tiptap/extension-table-header')).TableHeader;
|
|
243
|
+
extensions.push(TableHeader);
|
|
244
|
+
const TableRow = (await import('@tiptap/extension-table-row')).TableRow;
|
|
245
|
+
extensions.push(TableRow);
|
|
246
|
+
const TableCell = (await import('@tiptap/extension-table-cell')).TableCell;
|
|
247
|
+
extensions.push(TableCell);
|
|
248
|
+
const Table = (await import('@tiptap/extension-table')).Table;
|
|
249
|
+
extensions.push(Table.configure({
|
|
250
|
+
resizable: true,
|
|
251
|
+
}));
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
catch (e) {
|
|
255
|
+
console.log(e);
|
|
251
256
|
}
|
|
252
257
|
this.editor = new Editor({
|
|
253
258
|
element: this.editorContent().nativeElement,
|