wds-editor 1.1.0 → 1.2.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/dist/lang/pt.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*! WDS Editor language: pt | MIT */
2
2
  (function (g) {
3
- var m = {"undo":"Desfazer","redo":"Refazer","blockType":"Estilo de texto","paragraph":"Parágrafo","heading1":"Título 1","heading2":"Título 2","heading3":"Título 3","heading4":"Título 4","codeBlock":"Bloco de código","bold":"Negrito","italic":"Itálico","underline":"Sublinhado","strike":"Tachado","code":"Código em linha","link":"Inserir link","blockquote":"Citação","bulletList":"Lista com marcadores","orderedList":"Lista numerada","indent":"Aumentar recuo","outdent":"Diminuir recuo","alignLeft":"Alinhar à esquerda","alignCenter":"Centralizar","alignRight":"Alinhar à direita","alignJustify":"Justificar","hr":"Linha horizontal","clear":"Limpar formatação","source":"Código-fonte","fullscreen":"Tela cheia","linkUrl":"URL","linkText":"Texto para exibição","linkTitle":"Título","linkNewTab":"Abrir em uma nova guia","linkInvalid":"Digite um endereço da web, um endereço de e-mail ou um URL relativo válido.","save":"Salvar","cancel":"Cancelar","remove":"Remover link","close":"Fechar","words":"palavras","characters":"caracteres","poweredBy":"Desenvolvido com","editorLabel":"Editor de texto formatado","toolbarLabel":"Barra de ferramentas do editor","sourceLabel":"Código-fonte HTML","image":"Inserir imagem","file":"Inserir arquivo","imageEdit":"Imagem","imageUrl":"URL da imagem","imageAlt":"Texto alternativo","imageAltHint":"Descreva a imagem para leitores de tela e mecanismos de pesquisa.","imageWidth":"Largura (px)","imageAlign":"Alinhamento","alignNone":"Nenhum","alignLeftShort":"Esquerda","alignCenterShort":"Centro","alignRightShort":"Direita","imageInvalid":"Digite um endereço de imagem válido (https:// ou um URL relativo).","insert":"Inserir","fmTitle":"Gerenciador de arquivos","fmRoot":"Arquivos","fmBreadcrumb":"Pastas","fmSearch":"Pesquisar arquivos","fmSort":"Ordenar","fmSortNewest":"Mais recentes primeiro","fmSortName":"Nome","fmSortLargest":"Maiores primeiro","fmGrid":"Visualização em grade","fmList":"Visualização em lista","fmUpload":"Enviar","fmDrop":"Solte os arquivos para enviar","fmLoading":"Carregando…","fmEmpty":"Ainda não há arquivos aqui.","fmNoResults":"Nenhum arquivo corresponde à sua pesquisa.","fmLoadMore":"Carregar mais","fmRetry":"Tentar novamente","fmDelete":"Excluir","fmDeleteConfirm":"Excluir “{name}”? Esta ação não pode ser desfeita.","fmFromUrl":"Inserir a partir de URL","fmLinkText":"Texto do link","fmFolder":"Pasta","fmNoSelection":"Selecione um arquivo para ver os detalhes.","fmNotAllowed":"{name}: este tipo de arquivo não é permitido aqui.","fmUploadFailed":"{name}: falha no envio. {error}","fmListFailed":"Não foi possível carregar a lista de arquivos. {error}","fmDeleteFailed":"Não foi possível excluir o arquivo. {error}","fmUploading":"Enviando {name}","fmNetworkError":"Verifique sua conexão e tente novamente.","fmInvalidResponse":"O servidor enviou uma resposta inesperada.","table":"Tabela","tableInsert":"Inserir tabela","tableSize":"Tabela {rows} × {cols}","rowAbove":"Inserir linha acima","rowBelow":"Inserir linha abaixo","colLeft":"Inserir coluna à esquerda","colRight":"Inserir coluna à direita","deleteRow":"Excluir linha","deleteCol":"Excluir coluna","headerRow":"Alternar linha de cabeçalho","headerCol":"Alternar coluna de cabeçalho","mergeCells":"Mesclar células","splitCell":"Dividir célula","deleteTable":"Excluir tabela","caption":"Mostrar legenda","captionPlaceholder":"Escreva uma legenda…","resizeImage":"Arraste para redimensionar","pasteText":"Colar como texto simples","textColor":"Cor do texto","highlight":"Realçar","removeColor":"Cor padrão","removeHighlight":"Sem realce","colorRed":"Vermelho","colorOrange":"Laranja","colorAmber":"Âmbar","colorYellow":"Amarelo","colorGreen":"Verde","colorTeal":"Verde-azulado","colorBlue":"Azul","colorPurple":"Roxo","colorPink":"Rosa","colorSlate":"Ardósia","colorGray":"Cinza"};
3
+ var m = {"undo":"Desfazer","redo":"Refazer","blockType":"Estilo de texto","paragraph":"Parágrafo","heading1":"Título 1","heading2":"Título 2","heading3":"Título 3","heading4":"Título 4","codeBlock":"Bloco de código","bold":"Negrito","italic":"Itálico","underline":"Sublinhado","strike":"Tachado","code":"Código em linha","link":"Inserir link","blockquote":"Citação","bulletList":"Lista com marcadores","orderedList":"Lista numerada","indent":"Aumentar recuo","outdent":"Diminuir recuo","alignLeft":"Alinhar à esquerda","alignCenter":"Centralizar","alignRight":"Alinhar à direita","alignJustify":"Justificar","hr":"Linha horizontal","clear":"Limpar formatação","source":"Código-fonte","fullscreen":"Tela cheia","linkUrl":"URL","linkText":"Texto para exibição","linkTitle":"Título","linkNewTab":"Abrir em uma nova guia","linkInvalid":"Digite um endereço da web, um endereço de e-mail ou um URL relativo válido.","save":"Salvar","cancel":"Cancelar","remove":"Remover link","close":"Fechar","words":"palavras","characters":"caracteres","poweredBy":"Desenvolvido com","editorLabel":"Editor de texto formatado","toolbarLabel":"Barra de ferramentas do editor","sourceLabel":"Código-fonte HTML","image":"Inserir imagem","file":"Inserir arquivo","imageEdit":"Imagem","imageUrl":"URL da imagem","imageAlt":"Texto alternativo","imageAltHint":"Descreva a imagem para leitores de tela e mecanismos de pesquisa.","imageWidth":"Largura (px)","imageAlign":"Alinhamento","alignNone":"Nenhum","alignLeftShort":"Esquerda","alignCenterShort":"Centro","alignRightShort":"Direita","imageInvalid":"Digite um endereço de imagem válido (https:// ou um URL relativo).","insert":"Inserir","fmTitle":"Gerenciador de arquivos","fmRoot":"Arquivos","fmBreadcrumb":"Pastas","fmSearch":"Pesquisar arquivos","fmSort":"Ordenar","fmSortNewest":"Mais recentes primeiro","fmSortName":"Nome","fmSortLargest":"Maiores primeiro","fmGrid":"Visualização em grade","fmList":"Visualização em lista","fmUpload":"Enviar","fmDrop":"Solte os arquivos para enviar","fmLoading":"Carregando…","fmEmpty":"Ainda não há arquivos aqui.","fmNoResults":"Nenhum arquivo corresponde à sua pesquisa.","fmLoadMore":"Carregar mais","fmRetry":"Tentar novamente","fmDelete":"Excluir","fmDeleteConfirm":"Excluir “{name}”? Esta ação não pode ser desfeita.","fmFromUrl":"Inserir a partir de URL","fmLinkText":"Texto do link","fmFolder":"Pasta","fmNoSelection":"Selecione um arquivo para ver os detalhes.","fmNotAllowed":"{name}: este tipo de arquivo não é permitido aqui.","fmUploadFailed":"{name}: falha no envio. {error}","fmListFailed":"Não foi possível carregar a lista de arquivos. {error}","fmDeleteFailed":"Não foi possível excluir o arquivo. {error}","fmUploading":"Enviando {name}","fmNetworkError":"Verifique sua conexão e tente novamente.","fmInvalidResponse":"O servidor enviou uma resposta inesperada.","table":"Tabela","tableInsert":"Inserir tabela","tableSize":"Tabela {rows} × {cols}","rowAbove":"Inserir linha acima","rowBelow":"Inserir linha abaixo","colLeft":"Inserir coluna à esquerda","colRight":"Inserir coluna à direita","deleteRow":"Excluir linha","deleteCol":"Excluir coluna","headerRow":"Alternar linha de cabeçalho","headerCol":"Alternar coluna de cabeçalho","mergeCells":"Mesclar células","splitCell":"Dividir célula","deleteTable":"Excluir tabela","caption":"Mostrar legenda","captionPlaceholder":"Escreva uma legenda…","resizeImage":"Arraste para redimensionar","pasteText":"Colar como texto simples","textColor":"Cor do texto","highlight":"Realçar","removeColor":"Cor padrão","removeHighlight":"Sem realce","colorRed":"Vermelho","colorOrange":"Laranja","colorAmber":"Âmbar","colorYellow":"Amarelo","colorGreen":"Verde","colorTeal":"Verde-azulado","colorBlue":"Azul","colorPurple":"Roxo","colorPink":"Rosa","colorSlate":"Ardósia","colorGray":"Cinza","video":"Vídeo","videoEdit":"Editar vídeo","videoUrl":"Endereço do YouTube ou Vimeo","videoHint":"Cole o link da página do vídeo ou o código de incorporação.","videoTitle":"Título (lido por leitores de tela)","videoInvalid":"Digite um endereço de vídeo do YouTube ou Vimeo.","findReplace":"Localizar e substituir","find":"Localizar","replaceWith":"Substituir por","findNext":"Próxima correspondência","findPrevious":"Correspondência anterior","replace":"Substituir","replaceAll":"Substituir tudo","matchCase":"Diferenciar maiúsculas de minúsculas","matchCount":"{current} de {total}","noMatches":"Nenhum resultado","replacedCount":"Substituições: {count}","draftFound":"Foi encontrado um rascunho não salvo de {time}.","draftRestore":"Restaurar rascunho","draftDiscard":"Descartar"};
4
4
  (g.WDSEditorLang = g.WDSEditorLang || {})["pt"] = m;
5
5
  if (g.WDSEditor && g.WDSEditor.addLanguage) g.WDSEditor.addLanguage("pt", m);
6
6
  })(typeof globalThis !== 'undefined' ? globalThis : window);
package/dist/lang/pt.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! WDS Editor language: pt | MIT */
2
- export default {"undo":"Desfazer","redo":"Refazer","blockType":"Estilo de texto","paragraph":"Parágrafo","heading1":"Título 1","heading2":"Título 2","heading3":"Título 3","heading4":"Título 4","codeBlock":"Bloco de código","bold":"Negrito","italic":"Itálico","underline":"Sublinhado","strike":"Tachado","code":"Código em linha","link":"Inserir link","blockquote":"Citação","bulletList":"Lista com marcadores","orderedList":"Lista numerada","indent":"Aumentar recuo","outdent":"Diminuir recuo","alignLeft":"Alinhar à esquerda","alignCenter":"Centralizar","alignRight":"Alinhar à direita","alignJustify":"Justificar","hr":"Linha horizontal","clear":"Limpar formatação","source":"Código-fonte","fullscreen":"Tela cheia","linkUrl":"URL","linkText":"Texto para exibição","linkTitle":"Título","linkNewTab":"Abrir em uma nova guia","linkInvalid":"Digite um endereço da web, um endereço de e-mail ou um URL relativo válido.","save":"Salvar","cancel":"Cancelar","remove":"Remover link","close":"Fechar","words":"palavras","characters":"caracteres","poweredBy":"Desenvolvido com","editorLabel":"Editor de texto formatado","toolbarLabel":"Barra de ferramentas do editor","sourceLabel":"Código-fonte HTML","image":"Inserir imagem","file":"Inserir arquivo","imageEdit":"Imagem","imageUrl":"URL da imagem","imageAlt":"Texto alternativo","imageAltHint":"Descreva a imagem para leitores de tela e mecanismos de pesquisa.","imageWidth":"Largura (px)","imageAlign":"Alinhamento","alignNone":"Nenhum","alignLeftShort":"Esquerda","alignCenterShort":"Centro","alignRightShort":"Direita","imageInvalid":"Digite um endereço de imagem válido (https:// ou um URL relativo).","insert":"Inserir","fmTitle":"Gerenciador de arquivos","fmRoot":"Arquivos","fmBreadcrumb":"Pastas","fmSearch":"Pesquisar arquivos","fmSort":"Ordenar","fmSortNewest":"Mais recentes primeiro","fmSortName":"Nome","fmSortLargest":"Maiores primeiro","fmGrid":"Visualização em grade","fmList":"Visualização em lista","fmUpload":"Enviar","fmDrop":"Solte os arquivos para enviar","fmLoading":"Carregando…","fmEmpty":"Ainda não há arquivos aqui.","fmNoResults":"Nenhum arquivo corresponde à sua pesquisa.","fmLoadMore":"Carregar mais","fmRetry":"Tentar novamente","fmDelete":"Excluir","fmDeleteConfirm":"Excluir “{name}”? Esta ação não pode ser desfeita.","fmFromUrl":"Inserir a partir de URL","fmLinkText":"Texto do link","fmFolder":"Pasta","fmNoSelection":"Selecione um arquivo para ver os detalhes.","fmNotAllowed":"{name}: este tipo de arquivo não é permitido aqui.","fmUploadFailed":"{name}: falha no envio. {error}","fmListFailed":"Não foi possível carregar a lista de arquivos. {error}","fmDeleteFailed":"Não foi possível excluir o arquivo. {error}","fmUploading":"Enviando {name}","fmNetworkError":"Verifique sua conexão e tente novamente.","fmInvalidResponse":"O servidor enviou uma resposta inesperada.","table":"Tabela","tableInsert":"Inserir tabela","tableSize":"Tabela {rows} × {cols}","rowAbove":"Inserir linha acima","rowBelow":"Inserir linha abaixo","colLeft":"Inserir coluna à esquerda","colRight":"Inserir coluna à direita","deleteRow":"Excluir linha","deleteCol":"Excluir coluna","headerRow":"Alternar linha de cabeçalho","headerCol":"Alternar coluna de cabeçalho","mergeCells":"Mesclar células","splitCell":"Dividir célula","deleteTable":"Excluir tabela","caption":"Mostrar legenda","captionPlaceholder":"Escreva uma legenda…","resizeImage":"Arraste para redimensionar","pasteText":"Colar como texto simples","textColor":"Cor do texto","highlight":"Realçar","removeColor":"Cor padrão","removeHighlight":"Sem realce","colorRed":"Vermelho","colorOrange":"Laranja","colorAmber":"Âmbar","colorYellow":"Amarelo","colorGreen":"Verde","colorTeal":"Verde-azulado","colorBlue":"Azul","colorPurple":"Roxo","colorPink":"Rosa","colorSlate":"Ardósia","colorGray":"Cinza"};
2
+ export default {"undo":"Desfazer","redo":"Refazer","blockType":"Estilo de texto","paragraph":"Parágrafo","heading1":"Título 1","heading2":"Título 2","heading3":"Título 3","heading4":"Título 4","codeBlock":"Bloco de código","bold":"Negrito","italic":"Itálico","underline":"Sublinhado","strike":"Tachado","code":"Código em linha","link":"Inserir link","blockquote":"Citação","bulletList":"Lista com marcadores","orderedList":"Lista numerada","indent":"Aumentar recuo","outdent":"Diminuir recuo","alignLeft":"Alinhar à esquerda","alignCenter":"Centralizar","alignRight":"Alinhar à direita","alignJustify":"Justificar","hr":"Linha horizontal","clear":"Limpar formatação","source":"Código-fonte","fullscreen":"Tela cheia","linkUrl":"URL","linkText":"Texto para exibição","linkTitle":"Título","linkNewTab":"Abrir em uma nova guia","linkInvalid":"Digite um endereço da web, um endereço de e-mail ou um URL relativo válido.","save":"Salvar","cancel":"Cancelar","remove":"Remover link","close":"Fechar","words":"palavras","characters":"caracteres","poweredBy":"Desenvolvido com","editorLabel":"Editor de texto formatado","toolbarLabel":"Barra de ferramentas do editor","sourceLabel":"Código-fonte HTML","image":"Inserir imagem","file":"Inserir arquivo","imageEdit":"Imagem","imageUrl":"URL da imagem","imageAlt":"Texto alternativo","imageAltHint":"Descreva a imagem para leitores de tela e mecanismos de pesquisa.","imageWidth":"Largura (px)","imageAlign":"Alinhamento","alignNone":"Nenhum","alignLeftShort":"Esquerda","alignCenterShort":"Centro","alignRightShort":"Direita","imageInvalid":"Digite um endereço de imagem válido (https:// ou um URL relativo).","insert":"Inserir","fmTitle":"Gerenciador de arquivos","fmRoot":"Arquivos","fmBreadcrumb":"Pastas","fmSearch":"Pesquisar arquivos","fmSort":"Ordenar","fmSortNewest":"Mais recentes primeiro","fmSortName":"Nome","fmSortLargest":"Maiores primeiro","fmGrid":"Visualização em grade","fmList":"Visualização em lista","fmUpload":"Enviar","fmDrop":"Solte os arquivos para enviar","fmLoading":"Carregando…","fmEmpty":"Ainda não há arquivos aqui.","fmNoResults":"Nenhum arquivo corresponde à sua pesquisa.","fmLoadMore":"Carregar mais","fmRetry":"Tentar novamente","fmDelete":"Excluir","fmDeleteConfirm":"Excluir “{name}”? Esta ação não pode ser desfeita.","fmFromUrl":"Inserir a partir de URL","fmLinkText":"Texto do link","fmFolder":"Pasta","fmNoSelection":"Selecione um arquivo para ver os detalhes.","fmNotAllowed":"{name}: este tipo de arquivo não é permitido aqui.","fmUploadFailed":"{name}: falha no envio. {error}","fmListFailed":"Não foi possível carregar a lista de arquivos. {error}","fmDeleteFailed":"Não foi possível excluir o arquivo. {error}","fmUploading":"Enviando {name}","fmNetworkError":"Verifique sua conexão e tente novamente.","fmInvalidResponse":"O servidor enviou uma resposta inesperada.","table":"Tabela","tableInsert":"Inserir tabela","tableSize":"Tabela {rows} × {cols}","rowAbove":"Inserir linha acima","rowBelow":"Inserir linha abaixo","colLeft":"Inserir coluna à esquerda","colRight":"Inserir coluna à direita","deleteRow":"Excluir linha","deleteCol":"Excluir coluna","headerRow":"Alternar linha de cabeçalho","headerCol":"Alternar coluna de cabeçalho","mergeCells":"Mesclar células","splitCell":"Dividir célula","deleteTable":"Excluir tabela","caption":"Mostrar legenda","captionPlaceholder":"Escreva uma legenda…","resizeImage":"Arraste para redimensionar","pasteText":"Colar como texto simples","textColor":"Cor do texto","highlight":"Realçar","removeColor":"Cor padrão","removeHighlight":"Sem realce","colorRed":"Vermelho","colorOrange":"Laranja","colorAmber":"Âmbar","colorYellow":"Amarelo","colorGreen":"Verde","colorTeal":"Verde-azulado","colorBlue":"Azul","colorPurple":"Roxo","colorPink":"Rosa","colorSlate":"Ardósia","colorGray":"Cinza","video":"Vídeo","videoEdit":"Editar vídeo","videoUrl":"Endereço do YouTube ou Vimeo","videoHint":"Cole o link da página do vídeo ou o código de incorporação.","videoTitle":"Título (lido por leitores de tela)","videoInvalid":"Digite um endereço de vídeo do YouTube ou Vimeo.","findReplace":"Localizar e substituir","find":"Localizar","replaceWith":"Substituir por","findNext":"Próxima correspondência","findPrevious":"Correspondência anterior","replace":"Substituir","replaceAll":"Substituir tudo","matchCase":"Diferenciar maiúsculas de minúsculas","matchCount":"{current} de {total}","noMatches":"Nenhum resultado","replacedCount":"Substituições: {count}","draftFound":"Foi encontrado um rascunho não salvo de {time}.","draftRestore":"Restaurar rascunho","draftDiscard":"Descartar"};
package/dist/lang/ru.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*! WDS Editor language: ru | MIT */
2
2
  (function (g) {
3
- var m = {"undo":"Отменить","redo":"Повторить","blockType":"Стиль текста","paragraph":"Абзац","heading1":"Заголовок 1","heading2":"Заголовок 2","heading3":"Заголовок 3","heading4":"Заголовок 4","codeBlock":"Блок кода","bold":"Полужирный","italic":"Курсив","underline":"Подчёркнутый","strike":"Зачёркнутый","code":"Встроенный код","link":"Вставить ссылку","blockquote":"Цитата","bulletList":"Маркированный список","orderedList":"Нумерованный список","indent":"Увеличить отступ","outdent":"Уменьшить отступ","alignLeft":"По левому краю","alignCenter":"По центру","alignRight":"По правому краю","alignJustify":"По ширине","hr":"Горизонтальная линия","clear":"Очистить форматирование","source":"Исходный код","fullscreen":"Во весь экран","linkUrl":"URL","linkText":"Отображаемый текст","linkTitle":"Заголовок","linkNewTab":"Открывать в новой вкладке","linkInvalid":"Введите корректный веб-адрес, адрес электронной почты или относительный URL.","save":"Сохранить","cancel":"Отмена","remove":"Удалить ссылку","close":"Закрыть","words":"слов","characters":"символов","poweredBy":"Работает на","editorLabel":"Визуальный редактор","toolbarLabel":"Панель инструментов редактора","sourceLabel":"Исходный код HTML","image":"Вставить изображение","file":"Вставить файл","imageEdit":"Изображение","imageUrl":"URL изображения","imageAlt":"Альтернативный текст","imageAltHint":"Опишите изображение для программ чтения с экрана и поисковых систем.","imageWidth":"Ширина (px)","imageAlign":"Выравнивание","alignNone":"Нет","alignLeftShort":"Слева","alignCenterShort":"По центру","alignRightShort":"Справа","imageInvalid":"Введите корректный адрес изображения (https:// или относительный URL).","insert":"Вставить","fmTitle":"Файловый менеджер","fmRoot":"Файлы","fmBreadcrumb":"Папки","fmSearch":"Поиск файлов","fmSort":"Сортировка","fmSortNewest":"Сначала новые","fmSortName":"По имени","fmSortLargest":"Сначала большие","fmGrid":"Плитка","fmList":"Список","fmUpload":"Загрузить","fmDrop":"Перетащите файлы сюда, чтобы загрузить их","fmLoading":"Загрузка…","fmEmpty":"Здесь пока нет файлов.","fmNoResults":"По вашему запросу файлов не найдено.","fmLoadMore":"Показать ещё","fmRetry":"Повторить попытку","fmDelete":"Удалить","fmDeleteConfirm":"Удалить «{name}»? Это действие нельзя отменить.","fmFromUrl":"Вставить по URL","fmLinkText":"Текст ссылки","fmFolder":"Папка","fmNoSelection":"Выберите файл, чтобы просмотреть сведения о нём.","fmNotAllowed":"{name}: файлы этого типа здесь не разрешены.","fmUploadFailed":"{name}: не удалось загрузить. {error}","fmListFailed":"Не удалось загрузить список файлов. {error}","fmDeleteFailed":"Не удалось удалить файл. {error}","fmUploading":"Загрузка {name}","fmNetworkError":"Проверьте подключение и повторите попытку.","fmInvalidResponse":"Сервер вернул непредвиденный ответ.","table":"Таблица","tableInsert":"Вставить таблицу","tableSize":"Таблица {rows} × {cols}","rowAbove":"Вставить строку выше","rowBelow":"Вставить строку ниже","colLeft":"Вставить столбец слева","colRight":"Вставить столбец справа","deleteRow":"Удалить строку","deleteCol":"Удалить столбец","headerRow":"Строка заголовков вкл./выкл.","headerCol":"Столбец заголовков вкл./выкл.","mergeCells":"Объединить ячейки","splitCell":"Разделить ячейку","deleteTable":"Удалить таблицу","caption":"Показывать подпись","captionPlaceholder":"Введите подпись…","resizeImage":"Перетащите, чтобы изменить размер","pasteText":"Вставлять как обычный текст","textColor":"Цвет текста","highlight":"Цвет выделения","removeColor":"Цвет по умолчанию","removeHighlight":"Без выделения","colorRed":"Красный","colorOrange":"Оранжевый","colorAmber":"Янтарный","colorYellow":"Жёлтый","colorGreen":"Зелёный","colorTeal":"Бирюзовый","colorBlue":"Синий","colorPurple":"Фиолетовый","colorPink":"Розовый","colorSlate":"Грифельный","colorGray":"Серый"};
3
+ var m = {"undo":"Отменить","redo":"Повторить","blockType":"Стиль текста","paragraph":"Абзац","heading1":"Заголовок 1","heading2":"Заголовок 2","heading3":"Заголовок 3","heading4":"Заголовок 4","codeBlock":"Блок кода","bold":"Полужирный","italic":"Курсив","underline":"Подчёркнутый","strike":"Зачёркнутый","code":"Встроенный код","link":"Вставить ссылку","blockquote":"Цитата","bulletList":"Маркированный список","orderedList":"Нумерованный список","indent":"Увеличить отступ","outdent":"Уменьшить отступ","alignLeft":"По левому краю","alignCenter":"По центру","alignRight":"По правому краю","alignJustify":"По ширине","hr":"Горизонтальная линия","clear":"Очистить форматирование","source":"Исходный код","fullscreen":"Во весь экран","linkUrl":"URL","linkText":"Отображаемый текст","linkTitle":"Заголовок","linkNewTab":"Открывать в новой вкладке","linkInvalid":"Введите корректный веб-адрес, адрес электронной почты или относительный URL.","save":"Сохранить","cancel":"Отмена","remove":"Удалить ссылку","close":"Закрыть","words":"слов","characters":"символов","poweredBy":"Работает на","editorLabel":"Визуальный редактор","toolbarLabel":"Панель инструментов редактора","sourceLabel":"Исходный код HTML","image":"Вставить изображение","file":"Вставить файл","imageEdit":"Изображение","imageUrl":"URL изображения","imageAlt":"Альтернативный текст","imageAltHint":"Опишите изображение для программ чтения с экрана и поисковых систем.","imageWidth":"Ширина (px)","imageAlign":"Выравнивание","alignNone":"Нет","alignLeftShort":"Слева","alignCenterShort":"По центру","alignRightShort":"Справа","imageInvalid":"Введите корректный адрес изображения (https:// или относительный URL).","insert":"Вставить","fmTitle":"Файловый менеджер","fmRoot":"Файлы","fmBreadcrumb":"Папки","fmSearch":"Поиск файлов","fmSort":"Сортировка","fmSortNewest":"Сначала новые","fmSortName":"По имени","fmSortLargest":"Сначала большие","fmGrid":"Плитка","fmList":"Список","fmUpload":"Загрузить","fmDrop":"Перетащите файлы сюда, чтобы загрузить их","fmLoading":"Загрузка…","fmEmpty":"Здесь пока нет файлов.","fmNoResults":"По вашему запросу файлов не найдено.","fmLoadMore":"Показать ещё","fmRetry":"Повторить попытку","fmDelete":"Удалить","fmDeleteConfirm":"Удалить «{name}»? Это действие нельзя отменить.","fmFromUrl":"Вставить по URL","fmLinkText":"Текст ссылки","fmFolder":"Папка","fmNoSelection":"Выберите файл, чтобы просмотреть сведения о нём.","fmNotAllowed":"{name}: файлы этого типа здесь не разрешены.","fmUploadFailed":"{name}: не удалось загрузить. {error}","fmListFailed":"Не удалось загрузить список файлов. {error}","fmDeleteFailed":"Не удалось удалить файл. {error}","fmUploading":"Загрузка {name}","fmNetworkError":"Проверьте подключение и повторите попытку.","fmInvalidResponse":"Сервер вернул непредвиденный ответ.","table":"Таблица","tableInsert":"Вставить таблицу","tableSize":"Таблица {rows} × {cols}","rowAbove":"Вставить строку выше","rowBelow":"Вставить строку ниже","colLeft":"Вставить столбец слева","colRight":"Вставить столбец справа","deleteRow":"Удалить строку","deleteCol":"Удалить столбец","headerRow":"Строка заголовков вкл./выкл.","headerCol":"Столбец заголовков вкл./выкл.","mergeCells":"Объединить ячейки","splitCell":"Разделить ячейку","deleteTable":"Удалить таблицу","caption":"Показывать подпись","captionPlaceholder":"Введите подпись…","resizeImage":"Перетащите, чтобы изменить размер","pasteText":"Вставлять как обычный текст","textColor":"Цвет текста","highlight":"Цвет выделения","removeColor":"Цвет по умолчанию","removeHighlight":"Без выделения","colorRed":"Красный","colorOrange":"Оранжевый","colorAmber":"Янтарный","colorYellow":"Жёлтый","colorGreen":"Зелёный","colorTeal":"Бирюзовый","colorBlue":"Синий","colorPurple":"Фиолетовый","colorPink":"Розовый","colorSlate":"Грифельный","colorGray":"Серый","video":"Видео","videoEdit":"Изменить видео","videoUrl":"Адрес YouTube или Vimeo","videoHint":"Вставьте ссылку на страницу видео или его код для вставки.","videoTitle":"Название (читается программами экранного доступа)","videoInvalid":"Введите адрес видео на YouTube или Vimeo.","findReplace":"Найти и заменить","find":"Найти","replaceWith":"Заменить на","findNext":"Следующее совпадение","findPrevious":"Предыдущее совпадение","replace":"Заменить","replaceAll":"Заменить все","matchCase":"Учитывать регистр","matchCount":"{current} из {total}","noMatches":"Нет результатов","replacedCount":"Заменено: {count}","draftFound":"Найден несохранённый черновик от {time}.","draftRestore":"Восстановить черновик","draftDiscard":"Удалить"};
4
4
  (g.WDSEditorLang = g.WDSEditorLang || {})["ru"] = m;
5
5
  if (g.WDSEditor && g.WDSEditor.addLanguage) g.WDSEditor.addLanguage("ru", m);
6
6
  })(typeof globalThis !== 'undefined' ? globalThis : window);
package/dist/lang/ru.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! WDS Editor language: ru | MIT */
2
- export default {"undo":"Отменить","redo":"Повторить","blockType":"Стиль текста","paragraph":"Абзац","heading1":"Заголовок 1","heading2":"Заголовок 2","heading3":"Заголовок 3","heading4":"Заголовок 4","codeBlock":"Блок кода","bold":"Полужирный","italic":"Курсив","underline":"Подчёркнутый","strike":"Зачёркнутый","code":"Встроенный код","link":"Вставить ссылку","blockquote":"Цитата","bulletList":"Маркированный список","orderedList":"Нумерованный список","indent":"Увеличить отступ","outdent":"Уменьшить отступ","alignLeft":"По левому краю","alignCenter":"По центру","alignRight":"По правому краю","alignJustify":"По ширине","hr":"Горизонтальная линия","clear":"Очистить форматирование","source":"Исходный код","fullscreen":"Во весь экран","linkUrl":"URL","linkText":"Отображаемый текст","linkTitle":"Заголовок","linkNewTab":"Открывать в новой вкладке","linkInvalid":"Введите корректный веб-адрес, адрес электронной почты или относительный URL.","save":"Сохранить","cancel":"Отмена","remove":"Удалить ссылку","close":"Закрыть","words":"слов","characters":"символов","poweredBy":"Работает на","editorLabel":"Визуальный редактор","toolbarLabel":"Панель инструментов редактора","sourceLabel":"Исходный код HTML","image":"Вставить изображение","file":"Вставить файл","imageEdit":"Изображение","imageUrl":"URL изображения","imageAlt":"Альтернативный текст","imageAltHint":"Опишите изображение для программ чтения с экрана и поисковых систем.","imageWidth":"Ширина (px)","imageAlign":"Выравнивание","alignNone":"Нет","alignLeftShort":"Слева","alignCenterShort":"По центру","alignRightShort":"Справа","imageInvalid":"Введите корректный адрес изображения (https:// или относительный URL).","insert":"Вставить","fmTitle":"Файловый менеджер","fmRoot":"Файлы","fmBreadcrumb":"Папки","fmSearch":"Поиск файлов","fmSort":"Сортировка","fmSortNewest":"Сначала новые","fmSortName":"По имени","fmSortLargest":"Сначала большие","fmGrid":"Плитка","fmList":"Список","fmUpload":"Загрузить","fmDrop":"Перетащите файлы сюда, чтобы загрузить их","fmLoading":"Загрузка…","fmEmpty":"Здесь пока нет файлов.","fmNoResults":"По вашему запросу файлов не найдено.","fmLoadMore":"Показать ещё","fmRetry":"Повторить попытку","fmDelete":"Удалить","fmDeleteConfirm":"Удалить «{name}»? Это действие нельзя отменить.","fmFromUrl":"Вставить по URL","fmLinkText":"Текст ссылки","fmFolder":"Папка","fmNoSelection":"Выберите файл, чтобы просмотреть сведения о нём.","fmNotAllowed":"{name}: файлы этого типа здесь не разрешены.","fmUploadFailed":"{name}: не удалось загрузить. {error}","fmListFailed":"Не удалось загрузить список файлов. {error}","fmDeleteFailed":"Не удалось удалить файл. {error}","fmUploading":"Загрузка {name}","fmNetworkError":"Проверьте подключение и повторите попытку.","fmInvalidResponse":"Сервер вернул непредвиденный ответ.","table":"Таблица","tableInsert":"Вставить таблицу","tableSize":"Таблица {rows} × {cols}","rowAbove":"Вставить строку выше","rowBelow":"Вставить строку ниже","colLeft":"Вставить столбец слева","colRight":"Вставить столбец справа","deleteRow":"Удалить строку","deleteCol":"Удалить столбец","headerRow":"Строка заголовков вкл./выкл.","headerCol":"Столбец заголовков вкл./выкл.","mergeCells":"Объединить ячейки","splitCell":"Разделить ячейку","deleteTable":"Удалить таблицу","caption":"Показывать подпись","captionPlaceholder":"Введите подпись…","resizeImage":"Перетащите, чтобы изменить размер","pasteText":"Вставлять как обычный текст","textColor":"Цвет текста","highlight":"Цвет выделения","removeColor":"Цвет по умолчанию","removeHighlight":"Без выделения","colorRed":"Красный","colorOrange":"Оранжевый","colorAmber":"Янтарный","colorYellow":"Жёлтый","colorGreen":"Зелёный","colorTeal":"Бирюзовый","colorBlue":"Синий","colorPurple":"Фиолетовый","colorPink":"Розовый","colorSlate":"Грифельный","colorGray":"Серый"};
2
+ export default {"undo":"Отменить","redo":"Повторить","blockType":"Стиль текста","paragraph":"Абзац","heading1":"Заголовок 1","heading2":"Заголовок 2","heading3":"Заголовок 3","heading4":"Заголовок 4","codeBlock":"Блок кода","bold":"Полужирный","italic":"Курсив","underline":"Подчёркнутый","strike":"Зачёркнутый","code":"Встроенный код","link":"Вставить ссылку","blockquote":"Цитата","bulletList":"Маркированный список","orderedList":"Нумерованный список","indent":"Увеличить отступ","outdent":"Уменьшить отступ","alignLeft":"По левому краю","alignCenter":"По центру","alignRight":"По правому краю","alignJustify":"По ширине","hr":"Горизонтальная линия","clear":"Очистить форматирование","source":"Исходный код","fullscreen":"Во весь экран","linkUrl":"URL","linkText":"Отображаемый текст","linkTitle":"Заголовок","linkNewTab":"Открывать в новой вкладке","linkInvalid":"Введите корректный веб-адрес, адрес электронной почты или относительный URL.","save":"Сохранить","cancel":"Отмена","remove":"Удалить ссылку","close":"Закрыть","words":"слов","characters":"символов","poweredBy":"Работает на","editorLabel":"Визуальный редактор","toolbarLabel":"Панель инструментов редактора","sourceLabel":"Исходный код HTML","image":"Вставить изображение","file":"Вставить файл","imageEdit":"Изображение","imageUrl":"URL изображения","imageAlt":"Альтернативный текст","imageAltHint":"Опишите изображение для программ чтения с экрана и поисковых систем.","imageWidth":"Ширина (px)","imageAlign":"Выравнивание","alignNone":"Нет","alignLeftShort":"Слева","alignCenterShort":"По центру","alignRightShort":"Справа","imageInvalid":"Введите корректный адрес изображения (https:// или относительный URL).","insert":"Вставить","fmTitle":"Файловый менеджер","fmRoot":"Файлы","fmBreadcrumb":"Папки","fmSearch":"Поиск файлов","fmSort":"Сортировка","fmSortNewest":"Сначала новые","fmSortName":"По имени","fmSortLargest":"Сначала большие","fmGrid":"Плитка","fmList":"Список","fmUpload":"Загрузить","fmDrop":"Перетащите файлы сюда, чтобы загрузить их","fmLoading":"Загрузка…","fmEmpty":"Здесь пока нет файлов.","fmNoResults":"По вашему запросу файлов не найдено.","fmLoadMore":"Показать ещё","fmRetry":"Повторить попытку","fmDelete":"Удалить","fmDeleteConfirm":"Удалить «{name}»? Это действие нельзя отменить.","fmFromUrl":"Вставить по URL","fmLinkText":"Текст ссылки","fmFolder":"Папка","fmNoSelection":"Выберите файл, чтобы просмотреть сведения о нём.","fmNotAllowed":"{name}: файлы этого типа здесь не разрешены.","fmUploadFailed":"{name}: не удалось загрузить. {error}","fmListFailed":"Не удалось загрузить список файлов. {error}","fmDeleteFailed":"Не удалось удалить файл. {error}","fmUploading":"Загрузка {name}","fmNetworkError":"Проверьте подключение и повторите попытку.","fmInvalidResponse":"Сервер вернул непредвиденный ответ.","table":"Таблица","tableInsert":"Вставить таблицу","tableSize":"Таблица {rows} × {cols}","rowAbove":"Вставить строку выше","rowBelow":"Вставить строку ниже","colLeft":"Вставить столбец слева","colRight":"Вставить столбец справа","deleteRow":"Удалить строку","deleteCol":"Удалить столбец","headerRow":"Строка заголовков вкл./выкл.","headerCol":"Столбец заголовков вкл./выкл.","mergeCells":"Объединить ячейки","splitCell":"Разделить ячейку","deleteTable":"Удалить таблицу","caption":"Показывать подпись","captionPlaceholder":"Введите подпись…","resizeImage":"Перетащите, чтобы изменить размер","pasteText":"Вставлять как обычный текст","textColor":"Цвет текста","highlight":"Цвет выделения","removeColor":"Цвет по умолчанию","removeHighlight":"Без выделения","colorRed":"Красный","colorOrange":"Оранжевый","colorAmber":"Янтарный","colorYellow":"Жёлтый","colorGreen":"Зелёный","colorTeal":"Бирюзовый","colorBlue":"Синий","colorPurple":"Фиолетовый","colorPink":"Розовый","colorSlate":"Грифельный","colorGray":"Серый","video":"Видео","videoEdit":"Изменить видео","videoUrl":"Адрес YouTube или Vimeo","videoHint":"Вставьте ссылку на страницу видео или его код для вставки.","videoTitle":"Название (читается программами экранного доступа)","videoInvalid":"Введите адрес видео на YouTube или Vimeo.","findReplace":"Найти и заменить","find":"Найти","replaceWith":"Заменить на","findNext":"Следующее совпадение","findPrevious":"Предыдущее совпадение","replace":"Заменить","replaceAll":"Заменить все","matchCase":"Учитывать регистр","matchCount":"{current} из {total}","noMatches":"Нет результатов","replacedCount":"Заменено: {count}","draftFound":"Найден несохранённый черновик от {time}.","draftRestore":"Восстановить черновик","draftDiscard":"Удалить"};
package/dist/lang/zh.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*! WDS Editor language: zh | MIT */
2
2
  (function (g) {
3
- var m = {"undo":"撤销","redo":"重做","blockType":"文本样式","paragraph":"正文","heading1":"标题 1","heading2":"标题 2","heading3":"标题 3","heading4":"标题 4","codeBlock":"代码块","bold":"粗体","italic":"斜体","underline":"下划线","strike":"删除线","code":"行内代码","link":"插入链接","blockquote":"引用","bulletList":"项目符号列表","orderedList":"编号列表","indent":"增加缩进","outdent":"减少缩进","alignLeft":"左对齐","alignCenter":"居中对齐","alignRight":"右对齐","alignJustify":"两端对齐","hr":"水平线","clear":"清除格式","source":"源代码","fullscreen":"全屏","linkUrl":"URL","linkText":"要显示的文字","linkTitle":"标题","linkNewTab":"在新标签页中打开","linkInvalid":"请输入有效的网址、电子邮件地址或相对 URL。","save":"保存","cancel":"取消","remove":"删除链接","close":"关闭","words":"字","characters":"字符","poweredBy":"技术支持:","editorLabel":"富文本编辑器","toolbarLabel":"编辑器工具栏","sourceLabel":"HTML 源代码","image":"插入图片","file":"插入文件","imageEdit":"图片","imageUrl":"图片 URL","imageAlt":"替代文本","imageAltHint":"为屏幕阅读器和搜索引擎描述这张图片。","imageWidth":"宽度(px)","imageAlign":"对齐方式","alignNone":"无","alignLeftShort":"左","alignCenterShort":"居中","alignRightShort":"右","imageInvalid":"请输入有效的图片地址(https:// 或相对 URL)。","insert":"插入","fmTitle":"文件管理器","fmRoot":"文件","fmBreadcrumb":"文件夹","fmSearch":"搜索文件","fmSort":"排序","fmSortNewest":"最新优先","fmSortName":"名称","fmSortLargest":"最大优先","fmGrid":"网格视图","fmList":"列表视图","fmUpload":"上传","fmDrop":"拖放文件以上传","fmLoading":"正在加载……","fmEmpty":"这里还没有文件。","fmNoResults":"没有与搜索内容匹配的文件。","fmLoadMore":"加载更多","fmRetry":"重试","fmDelete":"删除","fmDeleteConfirm":"确定要删除“{name}”吗?此操作无法撤销。","fmFromUrl":"从 URL 插入","fmLinkText":"链接文字","fmFolder":"文件夹","fmNoSelection":"选择一个文件以查看其详细信息。","fmNotAllowed":"{name}:此处不允许使用该文件类型。","fmUploadFailed":"{name}:上传失败。{error}","fmListFailed":"无法加载文件列表。{error}","fmDeleteFailed":"无法删除该文件。{error}","fmUploading":"正在上传 {name}","fmNetworkError":"请检查网络连接后重试。","fmInvalidResponse":"服务器返回了意外的响应。","table":"表格","tableInsert":"插入表格","tableSize":"{rows} × {cols} 表格","rowAbove":"在上方插入行","rowBelow":"在下方插入行","colLeft":"在左侧插入列","colRight":"在右侧插入列","deleteRow":"删除行","deleteCol":"删除列","headerRow":"切换标题行","headerCol":"切换标题列","mergeCells":"合并单元格","splitCell":"拆分单元格","deleteTable":"删除表格","caption":"显示题注","captionPlaceholder":"输入题注……","resizeImage":"拖动以调整大小","pasteText":"粘贴为纯文本","textColor":"文字颜色","highlight":"突出显示","removeColor":"默认颜色","removeHighlight":"无突出显示","colorRed":"红色","colorOrange":"橙色","colorAmber":"琥珀色","colorYellow":"黄色","colorGreen":"绿色","colorTeal":"青色","colorBlue":"蓝色","colorPurple":"紫色","colorPink":"粉色","colorSlate":"石板灰","colorGray":"灰色"};
3
+ var m = {"undo":"撤销","redo":"重做","blockType":"文本样式","paragraph":"正文","heading1":"标题 1","heading2":"标题 2","heading3":"标题 3","heading4":"标题 4","codeBlock":"代码块","bold":"粗体","italic":"斜体","underline":"下划线","strike":"删除线","code":"行内代码","link":"插入链接","blockquote":"引用","bulletList":"项目符号列表","orderedList":"编号列表","indent":"增加缩进","outdent":"减少缩进","alignLeft":"左对齐","alignCenter":"居中对齐","alignRight":"右对齐","alignJustify":"两端对齐","hr":"水平线","clear":"清除格式","source":"源代码","fullscreen":"全屏","linkUrl":"URL","linkText":"要显示的文字","linkTitle":"标题","linkNewTab":"在新标签页中打开","linkInvalid":"请输入有效的网址、电子邮件地址或相对 URL。","save":"保存","cancel":"取消","remove":"删除链接","close":"关闭","words":"字","characters":"字符","poweredBy":"技术支持:","editorLabel":"富文本编辑器","toolbarLabel":"编辑器工具栏","sourceLabel":"HTML 源代码","image":"插入图片","file":"插入文件","imageEdit":"图片","imageUrl":"图片 URL","imageAlt":"替代文本","imageAltHint":"为屏幕阅读器和搜索引擎描述这张图片。","imageWidth":"宽度(px)","imageAlign":"对齐方式","alignNone":"无","alignLeftShort":"左","alignCenterShort":"居中","alignRightShort":"右","imageInvalid":"请输入有效的图片地址(https:// 或相对 URL)。","insert":"插入","fmTitle":"文件管理器","fmRoot":"文件","fmBreadcrumb":"文件夹","fmSearch":"搜索文件","fmSort":"排序","fmSortNewest":"最新优先","fmSortName":"名称","fmSortLargest":"最大优先","fmGrid":"网格视图","fmList":"列表视图","fmUpload":"上传","fmDrop":"拖放文件以上传","fmLoading":"正在加载……","fmEmpty":"这里还没有文件。","fmNoResults":"没有与搜索内容匹配的文件。","fmLoadMore":"加载更多","fmRetry":"重试","fmDelete":"删除","fmDeleteConfirm":"确定要删除“{name}”吗?此操作无法撤销。","fmFromUrl":"从 URL 插入","fmLinkText":"链接文字","fmFolder":"文件夹","fmNoSelection":"选择一个文件以查看其详细信息。","fmNotAllowed":"{name}:此处不允许使用该文件类型。","fmUploadFailed":"{name}:上传失败。{error}","fmListFailed":"无法加载文件列表。{error}","fmDeleteFailed":"无法删除该文件。{error}","fmUploading":"正在上传 {name}","fmNetworkError":"请检查网络连接后重试。","fmInvalidResponse":"服务器返回了意外的响应。","table":"表格","tableInsert":"插入表格","tableSize":"{rows} × {cols} 表格","rowAbove":"在上方插入行","rowBelow":"在下方插入行","colLeft":"在左侧插入列","colRight":"在右侧插入列","deleteRow":"删除行","deleteCol":"删除列","headerRow":"切换标题行","headerCol":"切换标题列","mergeCells":"合并单元格","splitCell":"拆分单元格","deleteTable":"删除表格","caption":"显示题注","captionPlaceholder":"输入题注……","resizeImage":"拖动以调整大小","pasteText":"粘贴为纯文本","textColor":"文字颜色","highlight":"突出显示","removeColor":"默认颜色","removeHighlight":"无突出显示","colorRed":"红色","colorOrange":"橙色","colorAmber":"琥珀色","colorYellow":"黄色","colorGreen":"绿色","colorTeal":"青色","colorBlue":"蓝色","colorPurple":"紫色","colorPink":"粉色","colorSlate":"石板灰","colorGray":"灰色","video":"视频","videoEdit":"编辑视频","videoUrl":"YouTube 或 Vimeo 地址","videoHint":"粘贴视频页面的链接或嵌入代码。","videoTitle":"标题(供屏幕阅读器朗读)","videoInvalid":"请输入 YouTube 或 Vimeo 视频地址。","findReplace":"查找和替换","find":"查找","replaceWith":"替换为","findNext":"下一个","findPrevious":"上一个","replace":"替换","replaceAll":"全部替换","matchCase":"区分大小写","matchCount":"第 {current} 项,共 {total} 项","noMatches":"未找到结果","replacedCount":"已替换 {count} 处","draftFound":"发现 {time} 的未保存草稿。","draftRestore":"恢复草稿","draftDiscard":"放弃"};
4
4
  (g.WDSEditorLang = g.WDSEditorLang || {})["zh"] = m;
5
5
  if (g.WDSEditor && g.WDSEditor.addLanguage) g.WDSEditor.addLanguage("zh", m);
6
6
  })(typeof globalThis !== 'undefined' ? globalThis : window);
package/dist/lang/zh.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! WDS Editor language: zh | MIT */
2
- export default {"undo":"撤销","redo":"重做","blockType":"文本样式","paragraph":"正文","heading1":"标题 1","heading2":"标题 2","heading3":"标题 3","heading4":"标题 4","codeBlock":"代码块","bold":"粗体","italic":"斜体","underline":"下划线","strike":"删除线","code":"行内代码","link":"插入链接","blockquote":"引用","bulletList":"项目符号列表","orderedList":"编号列表","indent":"增加缩进","outdent":"减少缩进","alignLeft":"左对齐","alignCenter":"居中对齐","alignRight":"右对齐","alignJustify":"两端对齐","hr":"水平线","clear":"清除格式","source":"源代码","fullscreen":"全屏","linkUrl":"URL","linkText":"要显示的文字","linkTitle":"标题","linkNewTab":"在新标签页中打开","linkInvalid":"请输入有效的网址、电子邮件地址或相对 URL。","save":"保存","cancel":"取消","remove":"删除链接","close":"关闭","words":"字","characters":"字符","poweredBy":"技术支持:","editorLabel":"富文本编辑器","toolbarLabel":"编辑器工具栏","sourceLabel":"HTML 源代码","image":"插入图片","file":"插入文件","imageEdit":"图片","imageUrl":"图片 URL","imageAlt":"替代文本","imageAltHint":"为屏幕阅读器和搜索引擎描述这张图片。","imageWidth":"宽度(px)","imageAlign":"对齐方式","alignNone":"无","alignLeftShort":"左","alignCenterShort":"居中","alignRightShort":"右","imageInvalid":"请输入有效的图片地址(https:// 或相对 URL)。","insert":"插入","fmTitle":"文件管理器","fmRoot":"文件","fmBreadcrumb":"文件夹","fmSearch":"搜索文件","fmSort":"排序","fmSortNewest":"最新优先","fmSortName":"名称","fmSortLargest":"最大优先","fmGrid":"网格视图","fmList":"列表视图","fmUpload":"上传","fmDrop":"拖放文件以上传","fmLoading":"正在加载……","fmEmpty":"这里还没有文件。","fmNoResults":"没有与搜索内容匹配的文件。","fmLoadMore":"加载更多","fmRetry":"重试","fmDelete":"删除","fmDeleteConfirm":"确定要删除“{name}”吗?此操作无法撤销。","fmFromUrl":"从 URL 插入","fmLinkText":"链接文字","fmFolder":"文件夹","fmNoSelection":"选择一个文件以查看其详细信息。","fmNotAllowed":"{name}:此处不允许使用该文件类型。","fmUploadFailed":"{name}:上传失败。{error}","fmListFailed":"无法加载文件列表。{error}","fmDeleteFailed":"无法删除该文件。{error}","fmUploading":"正在上传 {name}","fmNetworkError":"请检查网络连接后重试。","fmInvalidResponse":"服务器返回了意外的响应。","table":"表格","tableInsert":"插入表格","tableSize":"{rows} × {cols} 表格","rowAbove":"在上方插入行","rowBelow":"在下方插入行","colLeft":"在左侧插入列","colRight":"在右侧插入列","deleteRow":"删除行","deleteCol":"删除列","headerRow":"切换标题行","headerCol":"切换标题列","mergeCells":"合并单元格","splitCell":"拆分单元格","deleteTable":"删除表格","caption":"显示题注","captionPlaceholder":"输入题注……","resizeImage":"拖动以调整大小","pasteText":"粘贴为纯文本","textColor":"文字颜色","highlight":"突出显示","removeColor":"默认颜色","removeHighlight":"无突出显示","colorRed":"红色","colorOrange":"橙色","colorAmber":"琥珀色","colorYellow":"黄色","colorGreen":"绿色","colorTeal":"青色","colorBlue":"蓝色","colorPurple":"紫色","colorPink":"粉色","colorSlate":"石板灰","colorGray":"灰色"};
2
+ export default {"undo":"撤销","redo":"重做","blockType":"文本样式","paragraph":"正文","heading1":"标题 1","heading2":"标题 2","heading3":"标题 3","heading4":"标题 4","codeBlock":"代码块","bold":"粗体","italic":"斜体","underline":"下划线","strike":"删除线","code":"行内代码","link":"插入链接","blockquote":"引用","bulletList":"项目符号列表","orderedList":"编号列表","indent":"增加缩进","outdent":"减少缩进","alignLeft":"左对齐","alignCenter":"居中对齐","alignRight":"右对齐","alignJustify":"两端对齐","hr":"水平线","clear":"清除格式","source":"源代码","fullscreen":"全屏","linkUrl":"URL","linkText":"要显示的文字","linkTitle":"标题","linkNewTab":"在新标签页中打开","linkInvalid":"请输入有效的网址、电子邮件地址或相对 URL。","save":"保存","cancel":"取消","remove":"删除链接","close":"关闭","words":"字","characters":"字符","poweredBy":"技术支持:","editorLabel":"富文本编辑器","toolbarLabel":"编辑器工具栏","sourceLabel":"HTML 源代码","image":"插入图片","file":"插入文件","imageEdit":"图片","imageUrl":"图片 URL","imageAlt":"替代文本","imageAltHint":"为屏幕阅读器和搜索引擎描述这张图片。","imageWidth":"宽度(px)","imageAlign":"对齐方式","alignNone":"无","alignLeftShort":"左","alignCenterShort":"居中","alignRightShort":"右","imageInvalid":"请输入有效的图片地址(https:// 或相对 URL)。","insert":"插入","fmTitle":"文件管理器","fmRoot":"文件","fmBreadcrumb":"文件夹","fmSearch":"搜索文件","fmSort":"排序","fmSortNewest":"最新优先","fmSortName":"名称","fmSortLargest":"最大优先","fmGrid":"网格视图","fmList":"列表视图","fmUpload":"上传","fmDrop":"拖放文件以上传","fmLoading":"正在加载……","fmEmpty":"这里还没有文件。","fmNoResults":"没有与搜索内容匹配的文件。","fmLoadMore":"加载更多","fmRetry":"重试","fmDelete":"删除","fmDeleteConfirm":"确定要删除“{name}”吗?此操作无法撤销。","fmFromUrl":"从 URL 插入","fmLinkText":"链接文字","fmFolder":"文件夹","fmNoSelection":"选择一个文件以查看其详细信息。","fmNotAllowed":"{name}:此处不允许使用该文件类型。","fmUploadFailed":"{name}:上传失败。{error}","fmListFailed":"无法加载文件列表。{error}","fmDeleteFailed":"无法删除该文件。{error}","fmUploading":"正在上传 {name}","fmNetworkError":"请检查网络连接后重试。","fmInvalidResponse":"服务器返回了意外的响应。","table":"表格","tableInsert":"插入表格","tableSize":"{rows} × {cols} 表格","rowAbove":"在上方插入行","rowBelow":"在下方插入行","colLeft":"在左侧插入列","colRight":"在右侧插入列","deleteRow":"删除行","deleteCol":"删除列","headerRow":"切换标题行","headerCol":"切换标题列","mergeCells":"合并单元格","splitCell":"拆分单元格","deleteTable":"删除表格","caption":"显示题注","captionPlaceholder":"输入题注……","resizeImage":"拖动以调整大小","pasteText":"粘贴为纯文本","textColor":"文字颜色","highlight":"突出显示","removeColor":"默认颜色","removeHighlight":"无突出显示","colorRed":"红色","colorOrange":"橙色","colorAmber":"琥珀色","colorYellow":"黄色","colorGreen":"绿色","colorTeal":"青色","colorBlue":"蓝色","colorPurple":"紫色","colorPink":"粉色","colorSlate":"石板灰","colorGray":"灰色","video":"视频","videoEdit":"编辑视频","videoUrl":"YouTube 或 Vimeo 地址","videoHint":"粘贴视频页面的链接或嵌入代码。","videoTitle":"标题(供屏幕阅读器朗读)","videoInvalid":"请输入 YouTube 或 Vimeo 视频地址。","findReplace":"查找和替换","find":"查找","replaceWith":"替换为","findNext":"下一个","findPrevious":"上一个","replace":"替换","replaceAll":"全部替换","matchCase":"区分大小写","matchCount":"第 {current} 项,共 {total} 项","noMatches":"未找到结果","replacedCount":"已替换 {count} 处","draftFound":"发现 {time} 的未保存草稿。","draftRestore":"恢复草稿","draftDiscard":"放弃"};
@@ -0,0 +1,37 @@
1
+ import type { Messages } from './i18n';
2
+ export interface AutosaveOptions {
3
+ /** Storage key; use one per document (e.g. "post-42"). Default: page path + element id or name. */
4
+ key?: string;
5
+ /** Milliseconds to wait after the last change before saving. Default 1000. */
6
+ delay?: number;
7
+ /** Drafts older than this many days are ignored and removed. Default 7. */
8
+ expires?: number;
9
+ }
10
+ /**
11
+ * Keeps a draft of the content in localStorage. When the page is opened again with a different content,
12
+ * a bar offers to restore or discard the draft. Submitting the form removes it.
13
+ */
14
+ export declare class Autosave {
15
+ private readonly host;
16
+ private readonly before;
17
+ private readonly t;
18
+ private readonly restore;
19
+ readonly key: string;
20
+ private readonly delay;
21
+ private readonly expires;
22
+ private timer;
23
+ private pending;
24
+ private bar;
25
+ private readonly onPageHide;
26
+ constructor(options: AutosaveOptions, fallbackKey: string, host: HTMLElement, before: HTMLElement, t: Messages, restore: (html: string) => void);
27
+ /** Shows the restore bar when a saved draft differs from the content the editor started with. */
28
+ check(currentHtml: string): void;
29
+ /** Called on every content change. While the restore bar is open the old draft is kept. */
30
+ schedule(html: string): void;
31
+ flush(): void;
32
+ /** Removes the draft (after the content was saved on the server). */
33
+ clear(): void;
34
+ destroy(): void;
35
+ private hideBar;
36
+ private read;
37
+ }
@@ -33,6 +33,11 @@ export declare function linkRange(state: EditorState): {
33
33
  target: string | null;
34
34
  } | null;
35
35
  /** The selected image or figure (click on an image selects it). */
36
+ /** The selected video node, if any. */
37
+ export declare function selectedVideo(state: EditorState): {
38
+ pos: number;
39
+ node: PMNode;
40
+ } | null;
36
41
  export declare function selectedImage(state: EditorState): {
37
42
  pos: number;
38
43
  attrs: Record<string, unknown>;
@@ -0,0 +1,24 @@
1
+ export interface SiteStyleOptions {
2
+ /** Stylesheet URLs. They are fetched with CORS (same origin or a CDN such as jsDelivr). @import rules are skipped. */
3
+ css?: string | string[];
4
+ /** CSS text, scoped the same way. */
5
+ style?: string;
6
+ }
7
+ interface Entry {
8
+ className: string;
9
+ ready: Promise<void>;
10
+ }
11
+ /** Splits a selector list at top-level commas: "a, :is(b, c)" -> ["a", ":is(b, c)"]. */
12
+ export declare function splitSelectors(list: string): string[];
13
+ /**
14
+ * Scopes a selector list to the element around the editor content. The document roots (:root, html, body, :host)
15
+ * become that element: "body" -> scope, "html body > p" -> "scope > p", "h2, .h2" -> "scope h2, scope .h2".
16
+ */
17
+ export declare function scopeSelector(selectorList: string, scope: string): string;
18
+ export declare const supportsSiteStyles: () => boolean;
19
+ /**
20
+ * Loads (once per set of stylesheets) and returns the class to put on the element around the content.
21
+ * Editors with the same contentCss and contentStyle share the scoped sheets.
22
+ */
23
+ export declare function siteStyles(options: SiteStyleOptions): Entry | null;
24
+ export {};
@@ -5,7 +5,8 @@ import { type ImageAlign } from './schema';
5
5
  import { type Swatch } from './color';
6
6
  import { addLanguage, type Messages } from './i18n';
7
7
  import { type FileItem, type FileManagerOptions } from './filemanager/api';
8
- export type { FileManagerOptions, FileItem };
8
+ import { type AutosaveOptions } from './autosave';
9
+ export type { FileManagerOptions, FileItem, AutosaveOptions };
9
10
  export type Theme = 'light' | 'dark' | 'auto';
10
11
  export interface WDSEditorOptions {
11
12
  /** CSS selector or element: a <textarea> (recommended, keeps forms working) or any container element. */
@@ -37,8 +38,22 @@ export interface WDSEditorOptions {
37
38
  text?: Array<string | Swatch>;
38
39
  highlight?: Array<string | Swatch>;
39
40
  };
41
+ /**
42
+ * Stylesheet URLs of the site where the HTML is published (your site CSS, Bootstrap from a CDN, a compiled Tailwind file).
43
+ * The content area is shown with them and the rest of the page is not affected. See README "Site styles".
44
+ */
45
+ contentCss?: string | string[];
46
+ /** CSS text for the content area, scoped like contentCss. */
47
+ contentStyle?: string;
48
+ /** Classes for the content element: "prose" for Tailwind Typography, or the class your site puts around articles. */
49
+ contentClass?: string;
40
50
  /** Enables the file manager (image / file buttons, paste and drop uploads). See README "File manager". */
41
51
  fileManager?: FileManagerOptions;
52
+ /**
53
+ * Keeps a draft in localStorage and offers to restore it when the page is opened again.
54
+ * true, or { key, delay, expires }. Submitting the form removes the draft. See README "Autosave".
55
+ */
56
+ autosave?: boolean | AutosaveOptions;
42
57
  onChange?: (html: string, editor: WDSEditor) => void;
43
58
  }
44
59
  export type EditorEvent = 'change' | 'focus' | 'blur' | 'init' | 'destroy' | 'upload' | 'fileSelect';
@@ -77,6 +92,8 @@ export declare class WDSEditor {
77
92
  private readonly listeners;
78
93
  private readonly originalContent;
79
94
  private readonly fileManager;
95
+ private readonly findPanel;
96
+ private readonly autosave;
80
97
  private notice;
81
98
  private noticeTimer;
82
99
  private readonly onFormSubmit;
@@ -104,10 +121,26 @@ export declare class WDSEditor {
104
121
  redo(): void;
105
122
  isSourceMode(): boolean;
106
123
  toggleSource(): void;
124
+ /** Removes the autosave draft, e.g. after saving with fetch instead of a form submit. */
125
+ clearDraft(): void;
126
+ /** Opens the find and replace bar (Ctrl+F / Cmd+F inside the editor). */
127
+ openFind(): void;
128
+ closeFind(): void;
129
+ isFindOpen(): boolean;
107
130
  isFullscreen(): boolean;
108
131
  toggleFullscreen(): void;
109
132
  openLinkDialog(): void;
110
133
  removeLink(): void;
134
+ /**
135
+ * Inserts a YouTube or Vimeo video (watch page, short link or embed URL) at the cursor.
136
+ * Returns false for other addresses.
137
+ */
138
+ insertVideo(url: string, options?: {
139
+ title?: string;
140
+ width?: number | null;
141
+ }): boolean;
142
+ /** Video button: edits the selected video or asks for a YouTube / Vimeo address. */
143
+ openVideoDialog(): void;
111
144
  /** True when a file manager (listUrl) is configured. */
112
145
  hasFileManager(): boolean;
113
146
  /** Inserts an image at the cursor (replacing the selection). caption: true wraps it in <figure>. Unsafe sources are ignored. */
@@ -0,0 +1,38 @@
1
+ import { Plugin, PluginKey, type EditorState } from 'prosemirror-state';
2
+ import { type EditorView } from 'prosemirror-view';
3
+ import type { Node as PMNode } from 'prosemirror-model';
4
+ import type { Messages } from './i18n';
5
+ export interface Match {
6
+ from: number;
7
+ to: number;
8
+ }
9
+ interface FindState {
10
+ query: string;
11
+ caseSensitive: boolean;
12
+ matches: Match[];
13
+ /** Index of the current match, -1 when there is none. */
14
+ current: number;
15
+ }
16
+ export declare const findKey: PluginKey<FindState>;
17
+ /** Finds the text in every textblock. Matches never cross blocks; inline nodes (images, breaks) split the text. */
18
+ export declare function findMatches(doc: PMNode, query: string, caseSensitive: boolean): Match[];
19
+ export declare function findPlugin(): Plugin<FindState>;
20
+ /** Find and replace bar shown between the toolbar and the content. */
21
+ export declare class FindPanel {
22
+ private readonly view;
23
+ private readonly t;
24
+ private readonly onClose;
25
+ readonly element: HTMLElement;
26
+ private readonly findInput;
27
+ private readonly replaceInput;
28
+ private readonly caseInput;
29
+ private readonly count;
30
+ private readonly buttons;
31
+ constructor(view: EditorView, t: Messages, onClose: () => void);
32
+ get isOpen(): boolean;
33
+ open(): void;
34
+ close(): void;
35
+ /** Updates the "3 of 10" counter and the button states after every transaction. */
36
+ update(state: EditorState, editable: boolean): void;
37
+ }
38
+ export {};
@@ -119,6 +119,26 @@ export declare const en: {
119
119
  colorPink: string;
120
120
  colorSlate: string;
121
121
  colorGray: string;
122
+ video: string;
123
+ videoEdit: string;
124
+ videoUrl: string;
125
+ videoHint: string;
126
+ videoTitle: string;
127
+ videoInvalid: string;
128
+ findReplace: string;
129
+ find: string;
130
+ replaceWith: string;
131
+ findNext: string;
132
+ findPrevious: string;
133
+ replace: string;
134
+ replaceAll: string;
135
+ matchCase: string;
136
+ matchCount: string;
137
+ noMatches: string;
138
+ replacedCount: string;
139
+ draftFound: string;
140
+ draftRestore: string;
141
+ draftDiscard: string;
122
142
  };
123
143
  export type Messages = typeof en;
124
144
  export type MessageKey = keyof Messages;
@@ -131,4 +151,4 @@ export declare function resolveMessages(language: string | Partial<Messages> | u
131
151
  /** True for right-to-left languages such as Arabic, Hebrew and Persian. */
132
152
  export declare function isRtl(code: string): boolean;
133
153
  /** Fills {placeholders} in a message. */
134
- export declare function format(message: string, values: Record<string, string>): string;
154
+ export declare function format(message: string, values: Record<string, string | number>): string;
@@ -0,0 +1,20 @@
1
+ import type { NodeSpec, Node as PMNode } from 'prosemirror-model';
2
+ import type { EditorView, NodeView } from 'prosemirror-view';
3
+ /**
4
+ * Turns a YouTube or Vimeo address (watch page, short link, Shorts, embed URL or a pasted <iframe> code)
5
+ * into the player URL, or returns null.
6
+ */
7
+ export declare function videoEmbedUrl(input: string | null | undefined): string | null;
8
+ export declare function videoDomAttrs(attrs: Record<string, unknown>): Record<string, string>;
9
+ export declare const videoNode: NodeSpec;
10
+ /** In the editor the player is shown but not clickable, so a click selects the video (drag, delete, edit). */
11
+ export declare class VideoView implements NodeView {
12
+ private onEdit;
13
+ dom: HTMLElement;
14
+ private iframe;
15
+ constructor(node: PMNode, onEdit: () => void, _view?: EditorView);
16
+ private render;
17
+ update(node: PMNode): boolean;
18
+ stopEvent(): boolean;
19
+ ignoreMutation(): boolean;
20
+ }