@sveltia/ui 0.79.4 → 0.80.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.
Files changed (51) hide show
  1. package/dist/components/emoji/position.d.ts +2 -1
  2. package/dist/components/emoji/position.js +11 -3
  3. package/dist/components/text-editor/constants.d.ts +9 -1
  4. package/dist/components/text-editor/constants.js +10 -1
  5. package/dist/components/text-editor/core.d.ts +4 -2
  6. package/dist/components/text-editor/core.js +152 -33
  7. package/dist/components/text-editor/floating-link-editor.svelte +685 -0
  8. package/dist/components/text-editor/floating-link-editor.svelte.d.ts +17 -0
  9. package/dist/components/text-editor/html.d.ts +18 -0
  10. package/dist/components/text-editor/html.js +407 -0
  11. package/dist/components/text-editor/shiki/version.d.ts +1 -1
  12. package/dist/components/text-editor/shiki/version.js +1 -1
  13. package/dist/components/text-editor/store.svelte.js +12 -13
  14. package/dist/components/text-editor/text-editor.svelte +43 -17
  15. package/dist/components/text-editor/text-editor.svelte.d.ts +23 -6
  16. package/dist/components/text-editor/toolbar/insert-link-button.svelte +14 -71
  17. package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte +12 -5
  18. package/dist/locales/ar.yaml +5 -1
  19. package/dist/locales/bg.yaml +5 -1
  20. package/dist/locales/ca.yaml +5 -1
  21. package/dist/locales/cs.yaml +5 -1
  22. package/dist/locales/da.yaml +5 -1
  23. package/dist/locales/de.yaml +5 -1
  24. package/dist/locales/el.yaml +5 -1
  25. package/dist/locales/en-CA.yaml +5 -1
  26. package/dist/locales/en-GB.yaml +5 -1
  27. package/dist/locales/en-US.yaml +5 -1
  28. package/dist/locales/es-CO.yaml +5 -1
  29. package/dist/locales/fa.yaml +5 -1
  30. package/dist/locales/fi.yaml +5 -1
  31. package/dist/locales/fr.yaml +5 -1
  32. package/dist/locales/he.yaml +5 -1
  33. package/dist/locales/hr.yaml +5 -1
  34. package/dist/locales/it.yaml +5 -1
  35. package/dist/locales/ja.yaml +5 -1
  36. package/dist/locales/ko.yaml +5 -1
  37. package/dist/locales/nl.yaml +5 -1
  38. package/dist/locales/pl.yaml +5 -1
  39. package/dist/locales/pt-BR.yaml +5 -1
  40. package/dist/locales/pt-PT.yaml +5 -1
  41. package/dist/locales/ru.yaml +5 -1
  42. package/dist/locales/sk.yaml +5 -1
  43. package/dist/locales/sv.yaml +5 -1
  44. package/dist/locales/tr.yaml +5 -1
  45. package/dist/locales/uk.yaml +5 -1
  46. package/dist/locales/vi.yaml +5 -1
  47. package/dist/locales/zh-CN.yaml +5 -1
  48. package/dist/locales/zh-TW.yaml +5 -1
  49. package/dist/typedefs.d.ts +13 -7
  50. package/dist/typedefs.js +12 -6
  51. package/package.json +5 -4
@@ -6,11 +6,19 @@ type TextEditor = {
6
6
  /** A rich text editor based on Lexical. */
7
7
  declare const TextEditor: import("svelte").Component<{
8
8
  /**
9
- * Input value. A value set from outside is kept as is until the user
10
- * changes the content, although the rich text editor writes Markdown in its own style, such as
11
- * `_text_` for `*text*`.
9
+ * Input value in the {@link format}. A value set from outside
10
+ * is kept as is until the user changes the content, although the rich text editor writes Markdown
11
+ * or HTML in its own style, such as `_text_` for `*text*` or `<strong>` for `<b>`.
12
12
  */
13
13
  value?: string | undefined;
14
+ /**
15
+ * Format of the {@link value}: `markdown` or `html`.
16
+ * With `html`, the plain text mode shows the HTML source, and editor components have to
17
+ * implement `importDOM` and `exportDOM` for their nodes. HTML with an element the editor cannot
18
+ * handle, like `<img>`, can only be edited in the plain text mode. Attributes not used by the
19
+ * editor, like `class`, are dropped once the content is changed in the rich text mode.
20
+ */
21
+ format?: TextEditorValueFormat | undefined;
14
22
  /**
15
23
  * Whether the user has changed the rich text content, and the
16
24
  * editor has yet to update {@link value}, which it does a moment later. Bind it to wait for the
@@ -97,11 +105,19 @@ declare const TextEditor: import("svelte").Component<{
97
105
  } & Record<string, any>, {}, "value" | "pending">;
98
106
  type Props = {
99
107
  /**
100
- * Input value. A value set from outside is kept as is until the user
101
- * changes the content, although the rich text editor writes Markdown in its own style, such as
102
- * `_text_` for `*text*`.
108
+ * Input value in the {@link format}. A value set from outside
109
+ * is kept as is until the user changes the content, although the rich text editor writes Markdown
110
+ * or HTML in its own style, such as `_text_` for `*text*` or `<strong>` for `<b>`.
103
111
  */
104
112
  value?: string | undefined;
113
+ /**
114
+ * Format of the {@link value}: `markdown` or `html`.
115
+ * With `html`, the plain text mode shows the HTML source, and editor components have to
116
+ * implement `importDOM` and `exportDOM` for their nodes. HTML with an element the editor cannot
117
+ * handle, like `<img>`, can only be edited in the plain text mode. Attributes not used by the
118
+ * editor, like `class`, are dropped once the content is changed in the rich text mode.
119
+ */
120
+ format?: TextEditorValueFormat | undefined;
105
121
  /**
106
122
  * Whether the user has changed the rich text content, and the
107
123
  * editor has yet to update {@link value}, which it does a moment later. Bind it to wait for the
@@ -186,6 +202,7 @@ type Props = {
186
202
  */
187
203
  children?: Snippet<[]> | undefined;
188
204
  };
205
+ import type { TextEditorValueFormat } from '../../typedefs.js';
189
206
  import type { TextEditorMode } from '../../typedefs.js';
190
207
  import type { TextEditorNodeType } from '../../typedefs.js';
191
208
  import type { TextEditorComponent } from '../../typedefs.js';
@@ -1,6 +1,5 @@
1
1
  <script>
2
- import { LinkNode, TOGGLE_LINK_COMMAND } from '@lexical/link';
3
- import { $getNearestNodeOfType as getNearestNodeOfType } from '@lexical/utils';
2
+ import { TOGGLE_LINK_COMMAND } from '@lexical/link';
4
3
  import { _ } from '@sveltia/i18n';
5
4
  import { isMac, matchesShortcuts } from '@sveltia/utils/events';
6
5
  import { isURL } from '@sveltia/utils/string';
@@ -21,7 +20,7 @@
21
20
  import Dialog from '../../dialog/dialog.svelte';
22
21
  import Icon from '../../icon/icon.svelte';
23
22
  import TextInput from '../../text-field/text-input.svelte';
24
- import { AVAILABLE_BUTTONS } from '../constants.js';
23
+ import { AVAILABLE_BUTTONS, OPEN_LINK_EDITOR_COMMAND } from '../constants.js';
25
24
  import { focusEditor, isSafeLinkURL } from '../core.js';
26
25
  import {
27
26
  editRawText,
@@ -32,7 +31,6 @@
32
31
 
33
32
  /**
34
33
  * @import { TextEditorStore } from '../../../typedefs.js';
35
- * @import { RangeSelection } from 'lexical';
36
34
  */
37
35
 
38
36
  const id = $props.id();
@@ -47,8 +45,6 @@
47
45
  const selectionTypeMatches = $derived(editorStore.selection.inlineTypes.includes(type));
48
46
 
49
47
  let openDialog = $state(false);
50
- /** @type {'create' | 'update' | 'remove'} */
51
- let dialogMode = $state('create');
52
48
  let hasAnchor = $state(false);
53
49
  let anchorURL = $state('');
54
50
  let anchorText = $state('');
@@ -66,7 +62,6 @@
66
62
  // Otherwise, it’s just the link text, like a word or phrase.
67
63
  anchorURL = isURL(textContent) && isSafeLinkURL(textContent) ? textContent : '';
68
64
  hasAnchor = !!textContent;
69
- dialogMode = 'create';
70
65
  openDialog = true;
71
66
  };
72
67
 
@@ -94,56 +89,19 @@
94
89
  };
95
90
 
96
91
  /**
97
- * Remove an existing link.
98
- */
99
- const removeLink = () => {
100
- editorStore.editor?.dispatchCommand(TOGGLE_LINK_COMMAND, null);
101
- };
102
-
103
- /**
104
- * Update an existing link.
105
- */
106
- const updateLink = () => {
107
- editorStore.editor?.getEditorState().read(() => {
108
- const _selection = getSelection();
109
-
110
- // This is only called while the selection is reported to be within a link, so the fallbacks
111
- // below are for the unexpected
112
- /* v8 ignore else */
113
- if (isRangeSelection(_selection)) {
114
- const anchor = _selection.anchor.getNode();
115
- /* v8 ignore next */
116
- const parent = anchor instanceof LinkNode ? anchor : getNearestNodeOfType(anchor, LinkNode);
117
- const url = parent?.getURL();
118
-
119
- /* v8 ignore else */
120
- if (url) {
121
- hasAnchor = true;
122
- anchorURL = url;
123
- dialogMode = 'update';
124
- openDialog = true;
125
-
126
- return;
127
- }
128
- }
129
-
130
- // Can’t update for some reason; remove it
131
- /* v8 ignore next */
132
- removeLink();
133
- });
134
- };
135
-
136
- /**
137
- * Handle `click` event fired on the Link button. If a link is selected, update it. Otherwise,
138
- * create a new link.
92
+ * Handle `click` event fired on the Link button. In the rich text mode, the floating link editor
93
+ * takes care of a selected link or text. Otherwise, create a new link with the dialog.
139
94
  */
140
95
  const onButtonClick = () => {
141
96
  // Links are not detected in the plain text mode, so a new one is always created there
142
- if (selectionTypeMatches && editorStore.useRichText) {
143
- updateLink();
144
- } else {
145
- createLink();
97
+ if (
98
+ editorStore.useRichText &&
99
+ editorStore.editor?.dispatchCommand(OPEN_LINK_EDITOR_COMMAND, undefined)
100
+ ) {
101
+ return;
146
102
  }
103
+
104
+ createLink();
147
105
  };
148
106
 
149
107
  /**
@@ -183,7 +141,7 @@
183
141
  return;
184
142
  }
185
143
 
186
- if (event.detail.returnValue !== 'cancel' && dialogMode !== 'remove') {
144
+ if (event.detail.returnValue !== 'cancel') {
187
145
  // The dialog can only be opened from the button, which needs the editor
188
146
  /* v8 ignore next */
189
147
  if (!editorStore.editor) {
@@ -277,12 +235,10 @@
277
235
  </Button>
278
236
 
279
237
  <Dialog
280
- title={dialogMode === 'create'
281
- ? _('_sui.text_editor.insert_link')
282
- : _('_sui.text_editor.update_link')}
238
+ title={_('_sui.text_editor.insert_link')}
283
239
  bind:open={openDialog}
284
240
  okDisabled={!isValidURL}
285
- okLabel={dialogMode === 'create' ? _('_sui.insert') : _('_sui.update')}
241
+ okLabel={_('_sui.insert')}
286
242
  restoreFocus={false}
287
243
  onClose={(event) => {
288
244
  onDialogClose(event);
@@ -317,17 +273,4 @@
317
273
  />
318
274
  </div>
319
275
  {/if}
320
- {#snippet footerExtra()}
321
- {#if dialogMode !== 'create'}
322
- <Button
323
- variant="secondary"
324
- label={_('_sui.remove')}
325
- onclick={() => {
326
- removeLink();
327
- dialogMode = 'remove';
328
- openDialog = false;
329
- }}
330
- />
331
- {/if}
332
- {/snippet}
333
276
  </Dialog>
@@ -64,6 +64,13 @@
64
64
  ]),
65
65
  );
66
66
 
67
+ const isHtml = $derived(editorStore.config.format === 'html');
68
+ /**
69
+ * Whether the formatting buttons are available. They insert Markdown syntax in the plain text
70
+ * mode, so they’re hidden while the HTML source is edited.
71
+ */
72
+ const canFormat = $derived(editorStore.useRichText || !isHtml);
73
+
67
74
  /**
68
75
  * Enabled inline level buttons.
69
76
  * @type {TextEditorInlineType[]}
@@ -78,7 +85,7 @@
78
85
  </script>
79
86
 
80
87
  <ToolbarWrapper disabled={disabled || readonly} ariaLabel={_('_sui.text_editor.text_editor')}>
81
- {#if blockLevelButtons.length > 1}
88
+ {#if canFormat && blockLevelButtons.length > 1}
82
89
  <MenuButton
83
90
  aria-label={_('_sui.text_editor.show_text_style_options')}
84
91
  aria-controls={editorStore.controlId}
@@ -101,7 +108,7 @@
101
108
  {#if editorStore.useRichText && editorStore.selection.blockType === 'code-block'}
102
109
  <Divider orientation="vertical" />
103
110
  <CodeLanguageSwitcher />
104
- {:else}
111
+ {:else if canFormat}
105
112
  {#if inlineLevelButtons.length}
106
113
  <Divider orientation="vertical" />
107
114
  <ButtonGroup>
@@ -130,17 +137,17 @@
130
137
  iconic
131
138
  disabled={editorStore.hasConverterError}
132
139
  pressed={!editorStore.useRichText}
133
- aria-label={_('_sui.text_editor.edit_in_markdown')}
140
+ aria-label={_(`_sui.text_editor.${isHtml ? 'edit_in_html' : 'edit_in_markdown'}`)}
134
141
  onclick={() => {
135
142
  editorStore.useRichText = !editorStore.useRichText;
136
143
 
137
144
  if (editorStore.useRichText) {
138
- editorStore.convertMarkdown();
145
+ editorStore.convertToLexical();
139
146
  }
140
147
  }}
141
148
  >
142
149
  {#snippet startIcon()}
143
- <Icon name="markdown" />
150
+ <Icon name={isHtml ? 'html' : 'markdown'} />
144
151
  {/snippet}
145
152
  </Button>
146
153
  {/if}
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: رابط
123
123
  # Link dialog title
124
124
  insert_link: إدراج رابط
125
- update_link: تحديث الرابط
125
+ # Floating link editor button aria-labels
126
+ edit_link: تعديل الرابط
127
+ remove_link: إزالة الرابط
126
128
  # Link dialog input field labels
127
129
  text: نص
128
130
  url: الرابط
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: التحرير بلغة Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: التحرير بلغة HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: تعذر تمكين وضع النص الغني. يرجى استخدام محرر النصوص البسيط بدلاً من ذلك.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Връзка
123
123
  # Link dialog title
124
124
  insert_link: Вмъкване на връзка
125
- update_link: Обновяване на връзката
125
+ # Floating link editor button aria-labels
126
+ edit_link: Редактиране на връзката
127
+ remove_link: Премахване на връзката
126
128
  # Link dialog input field labels
127
129
  text: Текст
128
130
  url: URL адрес
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Редактиране в Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Редактиране в HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Режимът за форматиран текст не може да бъде включен. Използвайте редактора за обикновен текст.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Enllaç
123
123
  # Link dialog title
124
124
  insert_link: Insereix un enllaç
125
- update_link: Actualitza l’enllaç
125
+ # Floating link editor button aria-labels
126
+ edit_link: Edita l’enllaç
127
+ remove_link: Elimina l’enllaç
126
128
  # Link dialog input field labels
127
129
  text: Text
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Edita en Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Edita en HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: No s’ha pogut habilitar el mode de text enriquit. Useu l’editor de text sense format.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Odkaz
123
123
  # Link dialog title
124
124
  insert_link: Vložit odkaz
125
- update_link: Aktualizovat odkaz
125
+ # Floating link editor button aria-labels
126
+ edit_link: Upravit odkaz
127
+ remove_link: Odebrat odkaz
126
128
  # Link dialog input field labels
127
129
  text: Text
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Upravit v Markdownu
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Upravit v HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Nelze aktivovat režim formátovaného textu. Použijte prosím místo toho editor prostého textu.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Link
123
123
  # Link dialog title
124
124
  insert_link: Indsæt link
125
- update_link: Opdater link
125
+ # Floating link editor button aria-labels
126
+ edit_link: Rediger link
127
+ remove_link: Fjern link
126
128
  # Link dialog input field labels
127
129
  text: Tekst
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Rediger i Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Rediger i HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Formateret tekst kunne ikke slås til. Brug editoren til ren tekst i stedet.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Link
123
123
  # Link dialog title
124
124
  insert_link: Link einfügen
125
- update_link: Link aktualisieren
125
+ # Floating link editor button aria-labels
126
+ edit_link: Link bearbeiten
127
+ remove_link: Link entfernen
126
128
  # Link dialog input field labels
127
129
  text: Text
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: In Markdown bearbeiten
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: In HTML bearbeiten
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Der Rich-Text-Modus konnte nicht aktiviert werden. Bitte verwenden Sie stattdessen den Klartext-Editor.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Σύνδεσμος
123
123
  # Link dialog title
124
124
  insert_link: Εισαγωγή συνδέσμου
125
- update_link: Ενημέρωση συνδέσμου
125
+ # Floating link editor button aria-labels
126
+ edit_link: Επεξεργασία συνδέσμου
127
+ remove_link: Αφαίρεση συνδέσμου
126
128
  # Link dialog input field labels
127
129
  text: Κείμενο
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Επεξεργασία σε Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Επεξεργασία σε HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Δεν ήταν δυνατή η ενεργοποίηση της λειτουργίας εμπλουτισμένου κειμένου. Παρακαλούμε χρησιμοποιήστε τον επεξεργαστή απλού κειμένου.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Link
123
123
  # Link dialog title
124
124
  insert_link: Insert Link
125
- update_link: Update Link
125
+ # Floating link editor button aria-labels
126
+ edit_link: Edit Link
127
+ remove_link: Remove Link
126
128
  # Link dialog input field labels
127
129
  text: Text
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Edit in Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Edit in HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Unable to enable rich text mode. Please use the plain text editor instead.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Link
123
123
  # Link dialog title
124
124
  insert_link: Insert Link
125
- update_link: Update Link
125
+ # Floating link editor button aria-labels
126
+ edit_link: Edit Link
127
+ remove_link: Remove Link
126
128
  # Link dialog input field labels
127
129
  text: Text
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Edit in Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Edit in HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Unable to enable rich text mode. Please use the plain text editor instead.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Link
123
123
  # Link dialog title
124
124
  insert_link: Insert Link
125
- update_link: Update Link
125
+ # Floating link editor button aria-labels
126
+ edit_link: Edit Link
127
+ remove_link: Remove Link
126
128
  # Link dialog input field labels
127
129
  text: Text
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Edit in Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Edit in HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Unable to enable rich text mode. Please use the plain text editor instead.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Enlace
123
123
  # Link dialog title
124
124
  insert_link: Insertar enlace
125
- update_link: Actualizar enlace
125
+ # Floating link editor button aria-labels
126
+ edit_link: Editar enlace
127
+ remove_link: Quitar enlace
126
128
  # Link dialog input field labels
127
129
  text: Texto
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Editar en Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Editar en HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: No se pudo activar el modo de texto enriquecido. Usa el editor de texto sin formato en su lugar.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: پیوند
123
123
  # Link dialog title
124
124
  insert_link: درج پیوند
125
- update_link: به‌روزرسانی پیوند
125
+ # Floating link editor button aria-labels
126
+ edit_link: ویرایش پیوند
127
+ remove_link: حذف پیوند
126
128
  # Link dialog input field labels
127
129
  text: متن
128
130
  url: آدرس (URL)
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: ویرایش در حالت مارک‌داون
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: ویرایش در حالت HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: امکان فعال‌سازی حالت متن غنی وجود ندارد. لطفاً در عوض از ویرایشگر متن ساده استفاده کنید.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Linkki
123
123
  # Link dialog title
124
124
  insert_link: Lisää linkki
125
- update_link: Päivitä linkki
125
+ # Floating link editor button aria-labels
126
+ edit_link: Muokkaa linkkiä
127
+ remove_link: Poista linkki
126
128
  # Link dialog input field labels
127
129
  text: Teksti
128
130
  url: URL-osoite
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Muokkaa Markdown-muodossa
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Muokkaa HTML-muodossa
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Rikastettua tekstimuotoa ei voi ottaa käyttöön. Käytä sen sijaan muotoilemattoman tekstin editoria.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Lien
123
123
  # Link dialog title
124
124
  insert_link: Insérer un lien
125
- update_link: Mettre à jour le lien
125
+ # Floating link editor button aria-labels
126
+ edit_link: Modifier le lien
127
+ remove_link: Supprimer le lien
126
128
  # Link dialog input field labels
127
129
  text: Texte
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Modifier en Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Modifier en HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Impossible d’activer le mode texte enrichi. Utilisez l’éditeur de texte brut.
133
137
  # Language selector aria-label
@@ -127,12 +127,16 @@ text_editor:
127
127
  link: קישור
128
128
  # Link dialog title
129
129
  insert_link: הוספת קישור
130
- update_link: עדכון קישור
130
+ # Floating link editor button aria-labels
131
+ edit_link: עריכת קישור
132
+ remove_link: הסרת קישור
131
133
  # Link dialog input field labels
132
134
  text: טקסט
133
135
  url: כתובת קישור
134
136
  # Markdown mode toggle button aria-label
135
137
  edit_in_markdown: עריכה ב-Markdown
138
+ # HTML mode toggle button aria-label
139
+ edit_in_html: עריכה ב-HTML
136
140
  # Error message when rich text conversion fails
137
141
  converter_error: לא ניתן להפעיל מצב טקסט עשיר. יש להשתמש בעורך טקסט פשוט במקום.
138
142
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Poveznica
123
123
  # Link dialog title
124
124
  insert_link: Umetni poveznicu
125
- update_link: Ažuriraj poveznicu
125
+ # Floating link editor button aria-labels
126
+ edit_link: Uredi poveznicu
127
+ remove_link: Ukloni poveznicu
126
128
  # Link dialog input field labels
127
129
  text: Tekst
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Uredi u Markdownu
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Uredi u HTML-u
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Nije moguće omogućiti način obogaćenog teksta. Umjesto toga upotrijebite uređivač običnog teksta.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Link
123
123
  # Link dialog title
124
124
  insert_link: Inserisci Link
125
- update_link: Aggiorna Link
125
+ # Floating link editor button aria-labels
126
+ edit_link: Modifica Link
127
+ remove_link: Rimuovi Link
126
128
  # Link dialog input field labels
127
129
  text: Testo
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Modifica in Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Modifica in HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Impossibile abilitare la modalità rich text. Usa l’editor di testo semplice.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: リンク
123
123
  # Link dialog title
124
124
  insert_link: リンクを挿入
125
- update_link: リンクを更新
125
+ # Floating link editor button aria-labels
126
+ edit_link: リンクを編集
127
+ remove_link: リンクを削除
126
128
  # Link dialog input field labels
127
129
  text: テキスト
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: マークダウンで編集
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: HTML で編集
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: リッチテキストモードを有効にできませんでした。プレーンテキストエディターを使用してください。
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: 링크
123
123
  # Link dialog title
124
124
  insert_link: 링크 삽입
125
- update_link: 링크 업데이트
125
+ # Floating link editor button aria-labels
126
+ edit_link: 링크 편집
127
+ remove_link: 링크 제거
126
128
  # Link dialog input field labels
127
129
  text: 텍스트
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: 마크다운으로 편집
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: HTML로 편집
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: 리치 텍스트 모드를 사용할 수 없습니다. 일반 텍스트 에디터를 사용하십시오.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Link
123
123
  # Link dialog title
124
124
  insert_link: Link invoegen
125
- update_link: Link bijwerken
125
+ # Floating link editor button aria-labels
126
+ edit_link: Link bewerken
127
+ remove_link: Link verwijderen
126
128
  # Link dialog input field labels
127
129
  text: Tekst
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Bewerken in Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Bewerken in HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: De rich-text-modus kan niet worden ingeschakeld. Gebruik in plaats daarvan de platteteksteditor.
133
137
  # Language selector aria-label
@@ -122,12 +122,16 @@ text_editor:
122
122
  link: Odnośnik
123
123
  # Link dialog title
124
124
  insert_link: Wstaw odnośnik
125
- update_link: Zaktualizuj odnośnik
125
+ # Floating link editor button aria-labels
126
+ edit_link: Edytuj odnośnik
127
+ remove_link: Usuń odnośnik
126
128
  # Link dialog input field labels
127
129
  text: Tekst
128
130
  url: URL
129
131
  # Markdown mode toggle button aria-label
130
132
  edit_in_markdown: Edytuj w Markdown
133
+ # HTML mode toggle button aria-label
134
+ edit_in_html: Edytuj w HTML
131
135
  # Error message when rich text conversion fails
132
136
  converter_error: Nie można włączyć trybu tekstu sformatowanego. Zamiast tego użyj zwykłego edytora tekstu.
133
137
  # Language selector aria-label