@ckeditor/ckeditor5-find-and-replace 40.1.0 → 41.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/build/find-and-replace.js +3 -3
- package/build/translations/af.js +1 -1
- package/build/translations/ar.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/bs.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fa.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/jv.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/ug.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/ckeditor5-metadata.json +1 -1
- package/lang/contexts.json +1 -1
- package/lang/translations/af.po +4 -4
- package/lang/translations/ar.po +4 -4
- package/lang/translations/bg.po +4 -4
- package/lang/translations/bn.po +4 -4
- package/lang/translations/bs.po +4 -4
- package/lang/translations/ca.po +4 -4
- package/lang/translations/cs.po +4 -4
- package/lang/translations/da.po +4 -4
- package/lang/translations/de.po +4 -4
- package/lang/translations/el.po +4 -4
- package/lang/translations/en-au.po +4 -4
- package/lang/translations/en.po +4 -4
- package/lang/translations/es.po +4 -4
- package/lang/translations/et.po +4 -4
- package/lang/translations/fa.po +4 -4
- package/lang/translations/fi.po +4 -4
- package/lang/translations/fr.po +4 -4
- package/lang/translations/gl.po +4 -4
- package/lang/translations/he.po +4 -4
- package/lang/translations/hi.po +4 -4
- package/lang/translations/hr.po +4 -4
- package/lang/translations/hu.po +4 -4
- package/lang/translations/id.po +4 -4
- package/lang/translations/it.po +4 -4
- package/lang/translations/ja.po +4 -4
- package/lang/translations/jv.po +4 -4
- package/lang/translations/ko.po +4 -4
- package/lang/translations/lt.po +4 -4
- package/lang/translations/lv.po +4 -4
- package/lang/translations/ms.po +4 -4
- package/lang/translations/nl.po +4 -4
- package/lang/translations/no.po +4 -4
- package/lang/translations/pl.po +4 -4
- package/lang/translations/pt-br.po +4 -4
- package/lang/translations/pt.po +4 -4
- package/lang/translations/ro.po +4 -4
- package/lang/translations/ru.po +4 -4
- package/lang/translations/sk.po +4 -4
- package/lang/translations/sr-latn.po +4 -4
- package/lang/translations/sr.po +4 -4
- package/lang/translations/sv.po +4 -4
- package/lang/translations/th.po +4 -4
- package/lang/translations/tr.po +4 -4
- package/lang/translations/tt.po +3 -3
- package/lang/translations/ug.po +4 -4
- package/lang/translations/uk.po +4 -4
- package/lang/translations/ur.po +4 -4
- package/lang/translations/vi.po +4 -4
- package/lang/translations/zh-cn.po +4 -4
- package/lang/translations/zh.po +4 -4
- package/package.json +4 -3
- package/src/augmentation.d.ts +2 -2
- package/src/augmentation.js +1 -1
- package/src/findandreplace.d.ts +5 -5
- package/src/findandreplace.js +4 -4
- package/src/findandreplaceconfig.d.ts +31 -0
- package/src/findandreplaceconfig.js +5 -0
- package/src/findandreplaceediting.d.ts +7 -7
- package/src/findandreplaceediting.js +10 -10
- package/src/findandreplacestate.d.ts +6 -6
- package/src/findandreplacestate.js +2 -2
- package/src/findandreplaceui.d.ts +18 -6
- package/src/findandreplaceui.js +130 -41
- package/src/findandreplaceutils.d.ts +5 -5
- package/src/findandreplaceutils.js +3 -3
- package/src/findcommand.d.ts +6 -6
- package/src/findcommand.js +2 -2
- package/src/findnextcommand.d.ts +3 -3
- package/src/findnextcommand.js +2 -2
- package/src/findpreviouscommand.d.ts +2 -2
- package/src/findpreviouscommand.js +2 -2
- package/src/index.d.ts +12 -11
- package/src/index.js +11 -11
- package/src/replaceallcommand.d.ts +4 -4
- package/src/replaceallcommand.js +3 -3
- package/src/replacecommand.d.ts +3 -3
- package/src/replacecommand.js +2 -2
- package/src/replacecommandbase.d.ts +4 -4
- package/src/replacecommandbase.js +2 -2
- package/src/ui/findandreplaceformview.d.ts +38 -17
- package/src/ui/findandreplaceformview.js +117 -98
- package/theme/findandreplace.css +1 -1
- package/theme/findandreplaceform.css +4 -4
package/lang/translations/pt.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "Dica: Encontre algum texto primeiro para poder substituí-lo."
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr "Opções avançadas"
|
package/lang/translations/ro.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "Sfat: Mai întâi găsiți textul pentru a-l înlocui."
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr "Opțiuni avansate"
|
package/lang/translations/ru.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "Совет: сначала найдите текст, чтобы заменить его."
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr "Дополнительные параметры"
|
package/lang/translations/sk.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "Tip: Najskôr vyhľadajte text, ktorý následne môžete nahradiť."
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr "Pokročilé nastavenia"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "Savet: Prvo pronađjite neki tekst da biste ga zamenili."
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr ""
|
package/lang/translations/sr.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "Савет: Прво пронађите неки текст да бисте га заменили. "
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr "Napredne opcije"
|
package/lang/translations/sv.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "Tips: Hitta någon text först för att ersätta den."
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr "Avancerade alternativ"
|
package/lang/translations/th.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "เคล็ดลับ: ค้นหาข้อความบางอย่างก่อนจึงจะแทนที่ได้"
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr "ตัวเลือกขั้นสูง"
|
package/lang/translations/tr.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "İpucu: Değiştirmek için önce bir metin bul."
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr "Gelişmiş seçenekler"
|
package/lang/translations/tt.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr ""
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
70
|
msgstr ""
|
package/lang/translations/ug.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "ئەسكەرتىش: ئاۋال ئىزدەپ ئاندىن ئالماشتۇرىدۇ."
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr ""
|
package/lang/translations/uk.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "Порада: спочатку знайдіть текст, щоб замінити його."
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr "Розширені опції"
|
package/lang/translations/ur.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "نکتہ: تبدیل کرنے کے لیے پہلے متن کو تلاش کریں۔"
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr ""
|
package/lang/translations/vi.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "Mẹo: Tìm một đoạn văn bản trước để thay thế."
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr "Tùy chọn nâng cao"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "提示:先查找文本再替换"
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr "高级选项"
|
package/lang/translations/zh.po
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2003-
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
2
|
#
|
|
3
3
|
# !!! IMPORTANT !!!
|
|
4
4
|
#
|
|
@@ -65,6 +65,6 @@ msgctxt "A message displayed next to the replace field when disabled but user tr
|
|
|
65
65
|
msgid "Tip: Find some text first in order to replace it."
|
|
66
66
|
msgstr "提示:先查找字串再取代"
|
|
67
67
|
|
|
68
|
-
msgctxt "The label and
|
|
69
|
-
msgid "
|
|
70
|
-
msgstr "
|
|
68
|
+
msgctxt "The label and the tooltip of the options dropdown button in the find and replace form."
|
|
69
|
+
msgid "Advanced options"
|
|
70
|
+
msgstr "進階選項"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-find-and-replace",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "41.0.0",
|
|
4
4
|
"description": "Find and replace feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -10,10 +10,11 @@
|
|
|
10
10
|
"ckeditor5-plugin",
|
|
11
11
|
"ckeditor5-dll"
|
|
12
12
|
],
|
|
13
|
+
"type": "module",
|
|
13
14
|
"main": "src/index.js",
|
|
14
15
|
"dependencies": {
|
|
15
|
-
"@ckeditor/ckeditor5-ui": "
|
|
16
|
-
"ckeditor5": "
|
|
16
|
+
"@ckeditor/ckeditor5-ui": "41.0.0",
|
|
17
|
+
"ckeditor5": "41.0.0",
|
|
17
18
|
"lodash-es": "4.17.21"
|
|
18
19
|
},
|
|
19
20
|
"author": "CKSource (http://cksource.com/)",
|
package/src/augmentation.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import type { FindAndReplace, FindAndReplaceEditing, FindAndReplaceUI, FindAndReplaceUtils, FindCommand, FindNextCommand, FindPreviousCommand, ReplaceAllCommand, ReplaceCommand } from './index';
|
|
5
|
+
import type { FindAndReplace, FindAndReplaceEditing, FindAndReplaceUI, FindAndReplaceUtils, FindCommand, FindNextCommand, FindPreviousCommand, ReplaceAllCommand, ReplaceCommand } from './index.js';
|
|
6
6
|
declare module '@ckeditor/ckeditor5-core' {
|
|
7
7
|
interface PluginsMap {
|
|
8
8
|
[FindAndReplace.pluginName]: FindAndReplace;
|
package/src/augmentation.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
export {};
|
package/src/findandreplace.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module find-and-replace/findandreplace
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import FindAndReplaceUI from './findandreplaceui';
|
|
10
|
-
import FindAndReplaceEditing from './findandreplaceediting';
|
|
11
|
-
import type { Marker } from 'ckeditor5/src/engine';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import FindAndReplaceUI from './findandreplaceui.js';
|
|
10
|
+
import FindAndReplaceEditing from './findandreplaceediting.js';
|
|
11
|
+
import type { Marker } from 'ckeditor5/src/engine.js';
|
|
12
12
|
export type ResultType = {
|
|
13
13
|
id?: string;
|
|
14
14
|
label?: string;
|
package/src/findandreplace.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module find-and-replace/findandreplace
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import FindAndReplaceUI from './findandreplaceui';
|
|
10
|
-
import FindAndReplaceEditing from './findandreplaceediting';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import FindAndReplaceUI from './findandreplaceui.js';
|
|
10
|
+
import FindAndReplaceEditing from './findandreplaceediting.js';
|
|
11
11
|
/**
|
|
12
12
|
* The find and replace plugin.
|
|
13
13
|
*
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module find-and-replace/findandreplaceconfig
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* The configuration of the find and replace feature.
|
|
10
|
+
* The option is used by the {@link module:find-and-replace/findandreplace~FindAndReplace} feature.
|
|
11
|
+
*
|
|
12
|
+
* ```ts
|
|
13
|
+
* ClassicEditor
|
|
14
|
+
* .create( {
|
|
15
|
+
* findAndReplace: ... // Find and replace feature config.
|
|
16
|
+
* } )
|
|
17
|
+
* .then( ... )
|
|
18
|
+
* .catch( ... );
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
22
|
+
*/
|
|
23
|
+
export interface FindAndReplaceConfig {
|
|
24
|
+
/**
|
|
25
|
+
* The type of the find and replace UI opened by the `'findAndReplace'` button registered in the
|
|
26
|
+
* editor's {@link module:ui/componentfactory~ComponentFactory component factory}
|
|
27
|
+
*
|
|
28
|
+
* The default value is `'dialog'`.
|
|
29
|
+
*/
|
|
30
|
+
uiType?: 'dialog' | 'dropdown';
|
|
31
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module find-and-replace/findandreplaceediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import type { Item } from 'ckeditor5/src/engine';
|
|
10
|
-
import { type Collection } from 'ckeditor5/src/utils';
|
|
11
|
-
import FindAndReplaceState from './findandreplacestate';
|
|
12
|
-
import FindAndReplaceUtils from './findandreplaceutils';
|
|
13
|
-
import type { ResultType } from './findandreplace';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import type { Item } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import { type Collection } from 'ckeditor5/src/utils.js';
|
|
11
|
+
import FindAndReplaceState from './findandreplacestate.js';
|
|
12
|
+
import FindAndReplaceUtils from './findandreplaceutils.js';
|
|
13
|
+
import type { ResultType } from './findandreplace.js';
|
|
14
14
|
import '../theme/findandreplace.css';
|
|
15
15
|
/**
|
|
16
16
|
* Implements the editing part for find and replace plugin. For example conversion, commands etc.
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module find-and-replace/findandreplaceediting
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { scrollViewportToShowTarget } from 'ckeditor5/src/utils';
|
|
10
|
-
import FindCommand from './findcommand';
|
|
11
|
-
import ReplaceCommand from './replacecommand';
|
|
12
|
-
import ReplaceAllCommand from './replaceallcommand';
|
|
13
|
-
import FindNextCommand from './findnextcommand';
|
|
14
|
-
import FindPreviousCommand from './findpreviouscommand';
|
|
15
|
-
import FindAndReplaceState from './findandreplacestate';
|
|
16
|
-
import FindAndReplaceUtils from './findandreplaceutils';
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { scrollViewportToShowTarget } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import FindCommand from './findcommand.js';
|
|
11
|
+
import ReplaceCommand from './replacecommand.js';
|
|
12
|
+
import ReplaceAllCommand from './replaceallcommand.js';
|
|
13
|
+
import FindNextCommand from './findnextcommand.js';
|
|
14
|
+
import FindPreviousCommand from './findpreviouscommand.js';
|
|
15
|
+
import FindAndReplaceState from './findandreplacestate.js';
|
|
16
|
+
import FindAndReplaceUtils from './findandreplaceutils.js';
|
|
17
17
|
import { debounce } from 'lodash-es';
|
|
18
18
|
import '../theme/findandreplace.css';
|
|
19
19
|
const HIGHLIGHT_CLASS = 'ck-find-result_selected';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module find-and-replace/findandreplacestate
|
|
7
7
|
*/
|
|
8
|
-
import type { Model } from 'ckeditor5/src/engine';
|
|
9
|
-
import { Collection } from 'ckeditor5/src/utils';
|
|
10
|
-
import type { ResultType } from './findandreplace';
|
|
8
|
+
import type { Model } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import { Collection } from 'ckeditor5/src/utils.js';
|
|
10
|
+
import type { ResultType } from './findandreplace.js';
|
|
11
11
|
declare const FindAndReplaceState_base: {
|
|
12
|
-
new (): import("ckeditor5/src/utils").Observable;
|
|
13
|
-
prototype: import("ckeditor5/src/utils").Observable;
|
|
12
|
+
new (): import("ckeditor5/src/utils.js").Observable;
|
|
13
|
+
prototype: import("ckeditor5/src/utils.js").Observable;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* The object storing find and replace plugin state for a given editor instance.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
|
-
import { ObservableMixin, Collection } from 'ckeditor5/src/utils';
|
|
5
|
+
import { ObservableMixin, Collection } from 'ckeditor5/src/utils.js';
|
|
6
6
|
/**
|
|
7
7
|
* The object storing find and replace plugin state for a given editor instance.
|
|
8
8
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Copyright (c) 2003-
|
|
2
|
+
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* @module find-and-replace/findandreplaceui
|
|
7
7
|
*/
|
|
8
|
-
import { type Editor, Plugin } from 'ckeditor5/src/core';
|
|
9
|
-
import { type ViewWithCssTransitionDisabler } from 'ckeditor5/src/ui';
|
|
10
|
-
import FindAndReplaceFormView from './ui/findandreplaceformview';
|
|
8
|
+
import { type Editor, Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { Dialog, type ViewWithCssTransitionDisabler } from 'ckeditor5/src/ui.js';
|
|
10
|
+
import FindAndReplaceFormView from './ui/findandreplaceformview.js';
|
|
11
11
|
/**
|
|
12
12
|
* The default find and replace UI.
|
|
13
13
|
*
|
|
@@ -15,6 +15,10 @@ import FindAndReplaceFormView from './ui/findandreplaceformview';
|
|
|
15
15
|
* that uses the {@link module:find-and-replace/findandreplace~FindAndReplace FindAndReplace} plugin API.
|
|
16
16
|
*/
|
|
17
17
|
export default class FindAndReplaceUI extends Plugin {
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get requires(): readonly [typeof Dialog];
|
|
18
22
|
/**
|
|
19
23
|
* @inheritDoc
|
|
20
24
|
*/
|
|
@@ -32,14 +36,22 @@ export default class FindAndReplaceUI extends Plugin {
|
|
|
32
36
|
*/
|
|
33
37
|
init(): void;
|
|
34
38
|
/**
|
|
35
|
-
*
|
|
39
|
+
* Creates a dropdown containing the find and replace form.
|
|
36
40
|
*/
|
|
37
|
-
private
|
|
41
|
+
private _createDropdown;
|
|
42
|
+
/**
|
|
43
|
+
* Creates a button that opens a dialog with the find and replace form.
|
|
44
|
+
*/
|
|
45
|
+
private _createDialogButton;
|
|
38
46
|
/**
|
|
39
47
|
* Sets up the form view for the find and replace.
|
|
40
48
|
*
|
|
41
49
|
* @param formView A related form view.
|
|
42
50
|
*/
|
|
51
|
+
private _createFormView;
|
|
52
|
+
/**
|
|
53
|
+
* Clears the find and replace form and focuses the search text field.
|
|
54
|
+
*/
|
|
43
55
|
private _setupFormView;
|
|
44
56
|
}
|
|
45
57
|
/**
|