@ckeditor/ckeditor5-html-embed 0.0.0-internal-20241017.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/CHANGELOG.md +4 -0
- package/LICENSE.md +17 -0
- package/README.md +26 -0
- package/build/html-embed.js +5 -0
- package/build/translations/ar.js +1 -0
- package/build/translations/bg.js +1 -0
- package/build/translations/bn.js +1 -0
- package/build/translations/bs.js +1 -0
- package/build/translations/ca.js +1 -0
- package/build/translations/cs.js +1 -0
- package/build/translations/da.js +1 -0
- package/build/translations/de-ch.js +1 -0
- package/build/translations/de.js +1 -0
- package/build/translations/el.js +1 -0
- package/build/translations/en-au.js +1 -0
- package/build/translations/es.js +1 -0
- package/build/translations/et.js +1 -0
- package/build/translations/fa.js +1 -0
- package/build/translations/fi.js +1 -0
- package/build/translations/fr.js +1 -0
- package/build/translations/gl.js +1 -0
- package/build/translations/he.js +1 -0
- package/build/translations/hi.js +1 -0
- package/build/translations/hr.js +1 -0
- package/build/translations/hu.js +1 -0
- package/build/translations/id.js +1 -0
- package/build/translations/it.js +1 -0
- package/build/translations/ja.js +1 -0
- package/build/translations/jv.js +1 -0
- package/build/translations/ko.js +1 -0
- package/build/translations/lt.js +1 -0
- package/build/translations/lv.js +1 -0
- package/build/translations/ms.js +1 -0
- package/build/translations/nl.js +1 -0
- package/build/translations/no.js +1 -0
- package/build/translations/pl.js +1 -0
- package/build/translations/pt-br.js +1 -0
- package/build/translations/pt.js +1 -0
- package/build/translations/ro.js +1 -0
- package/build/translations/ru.js +1 -0
- package/build/translations/sk.js +1 -0
- package/build/translations/sl.js +1 -0
- package/build/translations/sr-latn.js +1 -0
- package/build/translations/sr.js +1 -0
- package/build/translations/sv.js +1 -0
- package/build/translations/th.js +1 -0
- package/build/translations/tr.js +1 -0
- package/build/translations/uk.js +1 -0
- package/build/translations/ur.js +1 -0
- package/build/translations/uz.js +1 -0
- package/build/translations/vi.js +1 -0
- package/build/translations/zh-cn.js +1 -0
- package/build/translations/zh.js +1 -0
- package/ckeditor5-metadata.json +31 -0
- package/dist/augmentation.d.ts +28 -0
- package/dist/htmlembed.d.ts +36 -0
- package/dist/htmlembedcommand.d.ts +48 -0
- package/dist/htmlembedconfig.d.ts +90 -0
- package/dist/htmlembedediting.d.ts +48 -0
- package/dist/htmlembedui.d.ts +33 -0
- package/dist/index-content.css +4 -0
- package/dist/index-editor.css +44 -0
- package/dist/index.css +68 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +530 -0
- package/dist/index.js.map +1 -0
- package/dist/translations/ar.d.ts +8 -0
- package/dist/translations/ar.js +5 -0
- package/dist/translations/ar.umd.js +11 -0
- package/dist/translations/bg.d.ts +8 -0
- package/dist/translations/bg.js +5 -0
- package/dist/translations/bg.umd.js +11 -0
- package/dist/translations/bn.d.ts +8 -0
- package/dist/translations/bn.js +5 -0
- package/dist/translations/bn.umd.js +11 -0
- package/dist/translations/bs.d.ts +8 -0
- package/dist/translations/bs.js +5 -0
- package/dist/translations/bs.umd.js +11 -0
- package/dist/translations/ca.d.ts +8 -0
- package/dist/translations/ca.js +5 -0
- package/dist/translations/ca.umd.js +11 -0
- package/dist/translations/cs.d.ts +8 -0
- package/dist/translations/cs.js +5 -0
- package/dist/translations/cs.umd.js +11 -0
- package/dist/translations/da.d.ts +8 -0
- package/dist/translations/da.js +5 -0
- package/dist/translations/da.umd.js +11 -0
- package/dist/translations/de-ch.d.ts +8 -0
- package/dist/translations/de-ch.js +5 -0
- package/dist/translations/de-ch.umd.js +11 -0
- package/dist/translations/de.d.ts +8 -0
- package/dist/translations/de.js +5 -0
- package/dist/translations/de.umd.js +11 -0
- package/dist/translations/el.d.ts +8 -0
- package/dist/translations/el.js +5 -0
- package/dist/translations/el.umd.js +11 -0
- package/dist/translations/en-au.d.ts +8 -0
- package/dist/translations/en-au.js +5 -0
- package/dist/translations/en-au.umd.js +11 -0
- package/dist/translations/en.d.ts +8 -0
- package/dist/translations/en.js +5 -0
- package/dist/translations/en.umd.js +11 -0
- package/dist/translations/es.d.ts +8 -0
- package/dist/translations/es.js +5 -0
- package/dist/translations/es.umd.js +11 -0
- package/dist/translations/et.d.ts +8 -0
- package/dist/translations/et.js +5 -0
- package/dist/translations/et.umd.js +11 -0
- package/dist/translations/fa.d.ts +8 -0
- package/dist/translations/fa.js +5 -0
- package/dist/translations/fa.umd.js +11 -0
- package/dist/translations/fi.d.ts +8 -0
- package/dist/translations/fi.js +5 -0
- package/dist/translations/fi.umd.js +11 -0
- package/dist/translations/fr.d.ts +8 -0
- package/dist/translations/fr.js +5 -0
- package/dist/translations/fr.umd.js +11 -0
- package/dist/translations/gl.d.ts +8 -0
- package/dist/translations/gl.js +5 -0
- package/dist/translations/gl.umd.js +11 -0
- package/dist/translations/he.d.ts +8 -0
- package/dist/translations/he.js +5 -0
- package/dist/translations/he.umd.js +11 -0
- package/dist/translations/hi.d.ts +8 -0
- package/dist/translations/hi.js +5 -0
- package/dist/translations/hi.umd.js +11 -0
- package/dist/translations/hr.d.ts +8 -0
- package/dist/translations/hr.js +5 -0
- package/dist/translations/hr.umd.js +11 -0
- package/dist/translations/hu.d.ts +8 -0
- package/dist/translations/hu.js +5 -0
- package/dist/translations/hu.umd.js +11 -0
- package/dist/translations/id.d.ts +8 -0
- package/dist/translations/id.js +5 -0
- package/dist/translations/id.umd.js +11 -0
- package/dist/translations/it.d.ts +8 -0
- package/dist/translations/it.js +5 -0
- package/dist/translations/it.umd.js +11 -0
- package/dist/translations/ja.d.ts +8 -0
- package/dist/translations/ja.js +5 -0
- package/dist/translations/ja.umd.js +11 -0
- package/dist/translations/jv.d.ts +8 -0
- package/dist/translations/jv.js +5 -0
- package/dist/translations/jv.umd.js +11 -0
- package/dist/translations/ko.d.ts +8 -0
- package/dist/translations/ko.js +5 -0
- package/dist/translations/ko.umd.js +11 -0
- package/dist/translations/lt.d.ts +8 -0
- package/dist/translations/lt.js +5 -0
- package/dist/translations/lt.umd.js +11 -0
- package/dist/translations/lv.d.ts +8 -0
- package/dist/translations/lv.js +5 -0
- package/dist/translations/lv.umd.js +11 -0
- package/dist/translations/ms.d.ts +8 -0
- package/dist/translations/ms.js +5 -0
- package/dist/translations/ms.umd.js +11 -0
- package/dist/translations/nl.d.ts +8 -0
- package/dist/translations/nl.js +5 -0
- package/dist/translations/nl.umd.js +11 -0
- package/dist/translations/no.d.ts +8 -0
- package/dist/translations/no.js +5 -0
- package/dist/translations/no.umd.js +11 -0
- package/dist/translations/pl.d.ts +8 -0
- package/dist/translations/pl.js +5 -0
- package/dist/translations/pl.umd.js +11 -0
- package/dist/translations/pt-br.d.ts +8 -0
- package/dist/translations/pt-br.js +5 -0
- package/dist/translations/pt-br.umd.js +11 -0
- package/dist/translations/pt.d.ts +8 -0
- package/dist/translations/pt.js +5 -0
- package/dist/translations/pt.umd.js +11 -0
- package/dist/translations/ro.d.ts +8 -0
- package/dist/translations/ro.js +5 -0
- package/dist/translations/ro.umd.js +11 -0
- package/dist/translations/ru.d.ts +8 -0
- package/dist/translations/ru.js +5 -0
- package/dist/translations/ru.umd.js +11 -0
- package/dist/translations/sk.d.ts +8 -0
- package/dist/translations/sk.js +5 -0
- package/dist/translations/sk.umd.js +11 -0
- package/dist/translations/sl.d.ts +8 -0
- package/dist/translations/sl.js +5 -0
- package/dist/translations/sl.umd.js +11 -0
- package/dist/translations/sr-latn.d.ts +8 -0
- package/dist/translations/sr-latn.js +5 -0
- package/dist/translations/sr-latn.umd.js +11 -0
- package/dist/translations/sr.d.ts +8 -0
- package/dist/translations/sr.js +5 -0
- package/dist/translations/sr.umd.js +11 -0
- package/dist/translations/sv.d.ts +8 -0
- package/dist/translations/sv.js +5 -0
- package/dist/translations/sv.umd.js +11 -0
- package/dist/translations/th.d.ts +8 -0
- package/dist/translations/th.js +5 -0
- package/dist/translations/th.umd.js +11 -0
- package/dist/translations/tr.d.ts +8 -0
- package/dist/translations/tr.js +5 -0
- package/dist/translations/tr.umd.js +11 -0
- package/dist/translations/uk.d.ts +8 -0
- package/dist/translations/uk.js +5 -0
- package/dist/translations/uk.umd.js +11 -0
- package/dist/translations/ur.d.ts +8 -0
- package/dist/translations/ur.js +5 -0
- package/dist/translations/ur.umd.js +11 -0
- package/dist/translations/uz.d.ts +8 -0
- package/dist/translations/uz.js +5 -0
- package/dist/translations/uz.umd.js +11 -0
- package/dist/translations/vi.d.ts +8 -0
- package/dist/translations/vi.js +5 -0
- package/dist/translations/vi.umd.js +11 -0
- package/dist/translations/zh-cn.d.ts +8 -0
- package/dist/translations/zh-cn.js +5 -0
- package/dist/translations/zh-cn.umd.js +11 -0
- package/dist/translations/zh.d.ts +8 -0
- package/dist/translations/zh.js +5 -0
- package/dist/translations/zh.umd.js +11 -0
- package/lang/contexts.json +9 -0
- package/lang/translations/ar.po +46 -0
- package/lang/translations/bg.po +46 -0
- package/lang/translations/bn.po +46 -0
- package/lang/translations/bs.po +46 -0
- package/lang/translations/ca.po +46 -0
- package/lang/translations/cs.po +46 -0
- package/lang/translations/da.po +46 -0
- package/lang/translations/de-ch.po +46 -0
- package/lang/translations/de.po +46 -0
- package/lang/translations/el.po +46 -0
- package/lang/translations/en-au.po +46 -0
- package/lang/translations/en.po +46 -0
- package/lang/translations/es.po +46 -0
- package/lang/translations/et.po +46 -0
- package/lang/translations/fa.po +46 -0
- package/lang/translations/fi.po +46 -0
- package/lang/translations/fr.po +46 -0
- package/lang/translations/gl.po +46 -0
- package/lang/translations/he.po +46 -0
- package/lang/translations/hi.po +46 -0
- package/lang/translations/hr.po +46 -0
- package/lang/translations/hu.po +46 -0
- package/lang/translations/id.po +46 -0
- package/lang/translations/it.po +46 -0
- package/lang/translations/ja.po +46 -0
- package/lang/translations/jv.po +46 -0
- package/lang/translations/ko.po +46 -0
- package/lang/translations/lt.po +46 -0
- package/lang/translations/lv.po +46 -0
- package/lang/translations/ms.po +46 -0
- package/lang/translations/nl.po +46 -0
- package/lang/translations/no.po +46 -0
- package/lang/translations/pl.po +46 -0
- package/lang/translations/pt-br.po +46 -0
- package/lang/translations/pt.po +46 -0
- package/lang/translations/ro.po +46 -0
- package/lang/translations/ru.po +46 -0
- package/lang/translations/sk.po +46 -0
- package/lang/translations/sl.po +46 -0
- package/lang/translations/sr-latn.po +46 -0
- package/lang/translations/sr.po +46 -0
- package/lang/translations/sv.po +46 -0
- package/lang/translations/th.po +46 -0
- package/lang/translations/tr.po +46 -0
- package/lang/translations/uk.po +46 -0
- package/lang/translations/ur.po +46 -0
- package/lang/translations/uz.po +46 -0
- package/lang/translations/vi.po +46 -0
- package/lang/translations/zh-cn.po +46 -0
- package/lang/translations/zh.po +46 -0
- package/package.json +42 -0
- package/src/augmentation.d.ts +24 -0
- package/src/augmentation.js +5 -0
- package/src/htmlembed.d.ts +32 -0
- package/src/htmlembed.js +38 -0
- package/src/htmlembedcommand.d.ts +44 -0
- package/src/htmlembedcommand.js +95 -0
- package/src/htmlembedconfig.d.ts +86 -0
- package/src/htmlembedconfig.js +5 -0
- package/src/htmlembedediting.d.ts +44 -0
- package/src/htmlembedediting.js +333 -0
- package/src/htmlembedui.d.ts +29 -0
- package/src/htmlembedui.js +72 -0
- package/src/index.d.ts +13 -0
- package/src/index.js +11 -0
- package/theme/htmlembed.css +68 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Swedish (https://app.transifex.com/ckeditor/teams/11143/sv/)\n"
|
|
16
|
+
"Language: sv\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
|
+
|
|
20
|
+
msgctxt "Toolbar button tooltip for the HTML embed feature."
|
|
21
|
+
msgid "Insert HTML"
|
|
22
|
+
msgstr "Infoga HTML"
|
|
23
|
+
|
|
24
|
+
msgctxt "The HTML snippet."
|
|
25
|
+
msgid "HTML snippet"
|
|
26
|
+
msgstr "HTML-kodsnutt"
|
|
27
|
+
|
|
28
|
+
msgctxt "A placeholder that will be displayed in the raw HTML textarea field."
|
|
29
|
+
msgid "Paste raw HTML here..."
|
|
30
|
+
msgstr "Klistra in rå HTML här ..."
|
|
31
|
+
|
|
32
|
+
msgctxt "A label of a button that switches the HTML embed to the source editing mode."
|
|
33
|
+
msgid "Edit source"
|
|
34
|
+
msgstr "Redigera källa"
|
|
35
|
+
|
|
36
|
+
msgctxt "A label of a button that saves the HTML embed content and navigates back to the preview."
|
|
37
|
+
msgid "Save changes"
|
|
38
|
+
msgstr "Spara ändringar"
|
|
39
|
+
|
|
40
|
+
msgctxt "An information displayed in the HTML embed preview if the content is not previewable."
|
|
41
|
+
msgid "No preview available"
|
|
42
|
+
msgstr "Ingen förhandsvisning tillgänglig"
|
|
43
|
+
|
|
44
|
+
msgctxt "An information displayed in the HTML embed preview if the HTML snippet has no content."
|
|
45
|
+
msgid "Empty snippet content"
|
|
46
|
+
msgstr "Töm snuttinnehåll"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Thai (https://app.transifex.com/ckeditor/teams/11143/th/)\n"
|
|
16
|
+
"Language: th\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
|
+
|
|
20
|
+
msgctxt "Toolbar button tooltip for the HTML embed feature."
|
|
21
|
+
msgid "Insert HTML"
|
|
22
|
+
msgstr "แทรก HTML"
|
|
23
|
+
|
|
24
|
+
msgctxt "The HTML snippet."
|
|
25
|
+
msgid "HTML snippet"
|
|
26
|
+
msgstr "ส่วนย่อยของ HTML"
|
|
27
|
+
|
|
28
|
+
msgctxt "A placeholder that will be displayed in the raw HTML textarea field."
|
|
29
|
+
msgid "Paste raw HTML here..."
|
|
30
|
+
msgstr "วาง HTML ดิบที่นี่..."
|
|
31
|
+
|
|
32
|
+
msgctxt "A label of a button that switches the HTML embed to the source editing mode."
|
|
33
|
+
msgid "Edit source"
|
|
34
|
+
msgstr "แก้ไขซอร์ส"
|
|
35
|
+
|
|
36
|
+
msgctxt "A label of a button that saves the HTML embed content and navigates back to the preview."
|
|
37
|
+
msgid "Save changes"
|
|
38
|
+
msgstr "บันทึกการเปลี่ยนแปลง"
|
|
39
|
+
|
|
40
|
+
msgctxt "An information displayed in the HTML embed preview if the content is not previewable."
|
|
41
|
+
msgid "No preview available"
|
|
42
|
+
msgstr "ไม่มีภาพตัวอย่างให้ใช้งาน"
|
|
43
|
+
|
|
44
|
+
msgctxt "An information displayed in the HTML embed preview if the HTML snippet has no content."
|
|
45
|
+
msgid "Empty snippet content"
|
|
46
|
+
msgstr "เนื้อหาส่วนย่อยว่างเปล่า"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Turkish (https://app.transifex.com/ckeditor/teams/11143/tr/)\n"
|
|
16
|
+
"Language: tr\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
|
+
|
|
20
|
+
msgctxt "Toolbar button tooltip for the HTML embed feature."
|
|
21
|
+
msgid "Insert HTML"
|
|
22
|
+
msgstr "HTML ekle"
|
|
23
|
+
|
|
24
|
+
msgctxt "The HTML snippet."
|
|
25
|
+
msgid "HTML snippet"
|
|
26
|
+
msgstr "HTML snippet'i"
|
|
27
|
+
|
|
28
|
+
msgctxt "A placeholder that will be displayed in the raw HTML textarea field."
|
|
29
|
+
msgid "Paste raw HTML here..."
|
|
30
|
+
msgstr "Ham HTML'yi buraya yapıştırın..."
|
|
31
|
+
|
|
32
|
+
msgctxt "A label of a button that switches the HTML embed to the source editing mode."
|
|
33
|
+
msgid "Edit source"
|
|
34
|
+
msgstr "Kaynağı düzenle"
|
|
35
|
+
|
|
36
|
+
msgctxt "A label of a button that saves the HTML embed content and navigates back to the preview."
|
|
37
|
+
msgid "Save changes"
|
|
38
|
+
msgstr "Değişiklikleri kaydet"
|
|
39
|
+
|
|
40
|
+
msgctxt "An information displayed in the HTML embed preview if the content is not previewable."
|
|
41
|
+
msgid "No preview available"
|
|
42
|
+
msgstr "Önizleme yok"
|
|
43
|
+
|
|
44
|
+
msgctxt "An information displayed in the HTML embed preview if the HTML snippet has no content."
|
|
45
|
+
msgid "Empty snippet content"
|
|
46
|
+
msgstr "Snippet içeriği boş"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Ukrainian (https://app.transifex.com/ckeditor/teams/11143/uk/)\n"
|
|
16
|
+
"Language: uk\n"
|
|
17
|
+
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
|
+
|
|
20
|
+
msgctxt "Toolbar button tooltip for the HTML embed feature."
|
|
21
|
+
msgid "Insert HTML"
|
|
22
|
+
msgstr "Вставити HTML"
|
|
23
|
+
|
|
24
|
+
msgctxt "The HTML snippet."
|
|
25
|
+
msgid "HTML snippet"
|
|
26
|
+
msgstr "Фрагмент HTML"
|
|
27
|
+
|
|
28
|
+
msgctxt "A placeholder that will be displayed in the raw HTML textarea field."
|
|
29
|
+
msgid "Paste raw HTML here..."
|
|
30
|
+
msgstr "Вставте сюди необроблений HTML..."
|
|
31
|
+
|
|
32
|
+
msgctxt "A label of a button that switches the HTML embed to the source editing mode."
|
|
33
|
+
msgid "Edit source"
|
|
34
|
+
msgstr "Редагувати джерело"
|
|
35
|
+
|
|
36
|
+
msgctxt "A label of a button that saves the HTML embed content and navigates back to the preview."
|
|
37
|
+
msgid "Save changes"
|
|
38
|
+
msgstr "Зберегти зміни"
|
|
39
|
+
|
|
40
|
+
msgctxt "An information displayed in the HTML embed preview if the content is not previewable."
|
|
41
|
+
msgid "No preview available"
|
|
42
|
+
msgstr "Попередній перегляд недоступний"
|
|
43
|
+
|
|
44
|
+
msgctxt "An information displayed in the HTML embed preview if the HTML snippet has no content."
|
|
45
|
+
msgid "Empty snippet content"
|
|
46
|
+
msgstr "Порожній вміст"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Urdu (https://app.transifex.com/ckeditor/teams/11143/ur/)\n"
|
|
16
|
+
"Language: ur\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
|
+
|
|
20
|
+
msgctxt "Toolbar button tooltip for the HTML embed feature."
|
|
21
|
+
msgid "Insert HTML"
|
|
22
|
+
msgstr "ایچ ٹی ایم ایل نصب کریں"
|
|
23
|
+
|
|
24
|
+
msgctxt "The HTML snippet."
|
|
25
|
+
msgid "HTML snippet"
|
|
26
|
+
msgstr "ایچ ٹی ایم ایل تراشہ"
|
|
27
|
+
|
|
28
|
+
msgctxt "A placeholder that will be displayed in the raw HTML textarea field."
|
|
29
|
+
msgid "Paste raw HTML here..."
|
|
30
|
+
msgstr "خام ایچ ٹی ایم ایل یہاں چسپاں کریں۔۔۔"
|
|
31
|
+
|
|
32
|
+
msgctxt "A label of a button that switches the HTML embed to the source editing mode."
|
|
33
|
+
msgid "Edit source"
|
|
34
|
+
msgstr "ماخذ کی تدوین"
|
|
35
|
+
|
|
36
|
+
msgctxt "A label of a button that saves the HTML embed content and navigates back to the preview."
|
|
37
|
+
msgid "Save changes"
|
|
38
|
+
msgstr "تبدیلیاں محفوظ کریں"
|
|
39
|
+
|
|
40
|
+
msgctxt "An information displayed in the HTML embed preview if the content is not previewable."
|
|
41
|
+
msgid "No preview available"
|
|
42
|
+
msgstr "نمائش دستیاب نہیں"
|
|
43
|
+
|
|
44
|
+
msgctxt "An information displayed in the HTML embed preview if the HTML snippet has no content."
|
|
45
|
+
msgid "Empty snippet content"
|
|
46
|
+
msgstr "مندرجاتِ تراشہ خالی ہیں"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Uzbek (https://app.transifex.com/ckeditor/teams/11143/uz/)\n"
|
|
16
|
+
"Language: uz\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
|
+
|
|
20
|
+
msgctxt "Toolbar button tooltip for the HTML embed feature."
|
|
21
|
+
msgid "Insert HTML"
|
|
22
|
+
msgstr "HTML kiritish"
|
|
23
|
+
|
|
24
|
+
msgctxt "The HTML snippet."
|
|
25
|
+
msgid "HTML snippet"
|
|
26
|
+
msgstr "HTML snippet"
|
|
27
|
+
|
|
28
|
+
msgctxt "A placeholder that will be displayed in the raw HTML textarea field."
|
|
29
|
+
msgid "Paste raw HTML here..."
|
|
30
|
+
msgstr "HTML kodini shu yerga joylashtiring..."
|
|
31
|
+
|
|
32
|
+
msgctxt "A label of a button that switches the HTML embed to the source editing mode."
|
|
33
|
+
msgid "Edit source"
|
|
34
|
+
msgstr "Kodni o'zgartirish"
|
|
35
|
+
|
|
36
|
+
msgctxt "A label of a button that saves the HTML embed content and navigates back to the preview."
|
|
37
|
+
msgid "Save changes"
|
|
38
|
+
msgstr "O'zgarishlarni saqlash"
|
|
39
|
+
|
|
40
|
+
msgctxt "An information displayed in the HTML embed preview if the content is not previewable."
|
|
41
|
+
msgid "No preview available"
|
|
42
|
+
msgstr ""
|
|
43
|
+
|
|
44
|
+
msgctxt "An information displayed in the HTML embed preview if the HTML snippet has no content."
|
|
45
|
+
msgid "Empty snippet content"
|
|
46
|
+
msgstr ""
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Vietnamese (https://app.transifex.com/ckeditor/teams/11143/vi/)\n"
|
|
16
|
+
"Language: vi\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
|
+
|
|
20
|
+
msgctxt "Toolbar button tooltip for the HTML embed feature."
|
|
21
|
+
msgid "Insert HTML"
|
|
22
|
+
msgstr "Chèn HTML"
|
|
23
|
+
|
|
24
|
+
msgctxt "The HTML snippet."
|
|
25
|
+
msgid "HTML snippet"
|
|
26
|
+
msgstr "Mẫu HTML"
|
|
27
|
+
|
|
28
|
+
msgctxt "A placeholder that will be displayed in the raw HTML textarea field."
|
|
29
|
+
msgid "Paste raw HTML here..."
|
|
30
|
+
msgstr "Dán mã HTML nguyên bản tại đây..."
|
|
31
|
+
|
|
32
|
+
msgctxt "A label of a button that switches the HTML embed to the source editing mode."
|
|
33
|
+
msgid "Edit source"
|
|
34
|
+
msgstr "Sửa nguồn"
|
|
35
|
+
|
|
36
|
+
msgctxt "A label of a button that saves the HTML embed content and navigates back to the preview."
|
|
37
|
+
msgid "Save changes"
|
|
38
|
+
msgstr "Lưu thay đổi"
|
|
39
|
+
|
|
40
|
+
msgctxt "An information displayed in the HTML embed preview if the content is not previewable."
|
|
41
|
+
msgid "No preview available"
|
|
42
|
+
msgstr "Không có sẵn bản xem trước"
|
|
43
|
+
|
|
44
|
+
msgctxt "An information displayed in the HTML embed preview if the HTML snippet has no content."
|
|
45
|
+
msgid "Empty snippet content"
|
|
46
|
+
msgstr "Nội dung đoạn mã trống"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Chinese (China) (https://app.transifex.com/ckeditor/teams/11143/zh_CN/)\n"
|
|
16
|
+
"Language: zh_CN\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
|
+
|
|
20
|
+
msgctxt "Toolbar button tooltip for the HTML embed feature."
|
|
21
|
+
msgid "Insert HTML"
|
|
22
|
+
msgstr "插入 HTML"
|
|
23
|
+
|
|
24
|
+
msgctxt "The HTML snippet."
|
|
25
|
+
msgid "HTML snippet"
|
|
26
|
+
msgstr "HTML 代码片段"
|
|
27
|
+
|
|
28
|
+
msgctxt "A placeholder that will be displayed in the raw HTML textarea field."
|
|
29
|
+
msgid "Paste raw HTML here..."
|
|
30
|
+
msgstr "在这里粘贴 HTML 源代码"
|
|
31
|
+
|
|
32
|
+
msgctxt "A label of a button that switches the HTML embed to the source editing mode."
|
|
33
|
+
msgid "Edit source"
|
|
34
|
+
msgstr "编辑源代码"
|
|
35
|
+
|
|
36
|
+
msgctxt "A label of a button that saves the HTML embed content and navigates back to the preview."
|
|
37
|
+
msgid "Save changes"
|
|
38
|
+
msgstr "保存更改"
|
|
39
|
+
|
|
40
|
+
msgctxt "An information displayed in the HTML embed preview if the content is not previewable."
|
|
41
|
+
msgid "No preview available"
|
|
42
|
+
msgstr "预览不可用"
|
|
43
|
+
|
|
44
|
+
msgctxt "An information displayed in the HTML embed preview if the HTML snippet has no content."
|
|
45
|
+
msgid "Empty snippet content"
|
|
46
|
+
msgstr "空片段内容"
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
2
|
+
#
|
|
3
|
+
# !!! IMPORTANT !!!
|
|
4
|
+
#
|
|
5
|
+
# Before you edit this file, please keep in mind that contributing to the project
|
|
6
|
+
# translations is possible ONLY via the Transifex online service.
|
|
7
|
+
#
|
|
8
|
+
# To submit your translations, visit https://www.transifex.com/ckeditor/ckeditor5.
|
|
9
|
+
#
|
|
10
|
+
# To learn more, check out the official contributor's guide:
|
|
11
|
+
# https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
|
|
12
|
+
#
|
|
13
|
+
msgid ""
|
|
14
|
+
msgstr ""
|
|
15
|
+
"Language-Team: Chinese (Taiwan) (https://app.transifex.com/ckeditor/teams/11143/zh_TW/)\n"
|
|
16
|
+
"Language: zh_TW\n"
|
|
17
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
|
18
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
19
|
+
|
|
20
|
+
msgctxt "Toolbar button tooltip for the HTML embed feature."
|
|
21
|
+
msgid "Insert HTML"
|
|
22
|
+
msgstr "輸入HTML"
|
|
23
|
+
|
|
24
|
+
msgctxt "The HTML snippet."
|
|
25
|
+
msgid "HTML snippet"
|
|
26
|
+
msgstr "HTML標籤"
|
|
27
|
+
|
|
28
|
+
msgctxt "A placeholder that will be displayed in the raw HTML textarea field."
|
|
29
|
+
msgid "Paste raw HTML here..."
|
|
30
|
+
msgstr "在此貼上純HTML"
|
|
31
|
+
|
|
32
|
+
msgctxt "A label of a button that switches the HTML embed to the source editing mode."
|
|
33
|
+
msgid "Edit source"
|
|
34
|
+
msgstr "編輯HTML"
|
|
35
|
+
|
|
36
|
+
msgctxt "A label of a button that saves the HTML embed content and navigates back to the preview."
|
|
37
|
+
msgid "Save changes"
|
|
38
|
+
msgstr "儲存變更"
|
|
39
|
+
|
|
40
|
+
msgctxt "An information displayed in the HTML embed preview if the content is not previewable."
|
|
41
|
+
msgid "No preview available"
|
|
42
|
+
msgstr "無法顯示預覽"
|
|
43
|
+
|
|
44
|
+
msgctxt "An information displayed in the HTML embed preview if the HTML snippet has no content."
|
|
45
|
+
msgid "Empty snippet content"
|
|
46
|
+
msgstr "HTML標籤中無內容"
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ckeditor/ckeditor5-html-embed",
|
|
3
|
+
"version": "0.0.0-internal-20241017.0",
|
|
4
|
+
"description": "HTML embed feature for CKEditor 5.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ckeditor",
|
|
7
|
+
"ckeditor5",
|
|
8
|
+
"ckeditor 5",
|
|
9
|
+
"ckeditor5-feature",
|
|
10
|
+
"ckeditor5-plugin",
|
|
11
|
+
"ckeditor5-dll"
|
|
12
|
+
],
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "src/index.js",
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@ckeditor/ckeditor5-core": "0.0.0-internal-20241017.0",
|
|
17
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-internal-20241017.0",
|
|
18
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-internal-20241017.0",
|
|
19
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-internal-20241017.0",
|
|
20
|
+
"ckeditor5": "0.0.0-internal-20241017.0"
|
|
21
|
+
},
|
|
22
|
+
"author": "CKSource (http://cksource.com/)",
|
|
23
|
+
"license": "GPL-2.0-or-later",
|
|
24
|
+
"homepage": "https://ckeditor.com",
|
|
25
|
+
"bugs": "https://github.com/ckeditor/ckeditor5/issues",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/ckeditor/ckeditor5.git",
|
|
29
|
+
"directory": "packages/ckeditor5-html-embed"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"lang",
|
|
34
|
+
"src/**/*.js",
|
|
35
|
+
"src/**/*.d.ts",
|
|
36
|
+
"theme",
|
|
37
|
+
"build",
|
|
38
|
+
"ckeditor5-metadata.json",
|
|
39
|
+
"CHANGELOG.md"
|
|
40
|
+
],
|
|
41
|
+
"types": "src/index.d.ts"
|
|
42
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
import type { HtmlEmbed, HtmlEmbedCommand, HtmlEmbedConfig, HtmlEmbedEditing, HtmlEmbedUI } from './index.js';
|
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
+
interface EditorConfig {
|
|
8
|
+
/**
|
|
9
|
+
* The configuration of the HTML embed feature. Introduced by the {@link module:html-embed/htmlembedediting~HtmlEmbedEditing}
|
|
10
|
+
* feature.
|
|
11
|
+
*
|
|
12
|
+
* Read more in {@link module:core/editor/editorconfig~EditorConfig all editor options}.
|
|
13
|
+
*/
|
|
14
|
+
htmlEmbed?: HtmlEmbedConfig;
|
|
15
|
+
}
|
|
16
|
+
interface PluginsMap {
|
|
17
|
+
[HtmlEmbed.pluginName]: HtmlEmbed;
|
|
18
|
+
[HtmlEmbedEditing.pluginName]: HtmlEmbedEditing;
|
|
19
|
+
[HtmlEmbedUI.pluginName]: HtmlEmbedUI;
|
|
20
|
+
}
|
|
21
|
+
interface CommandsMap {
|
|
22
|
+
htmlEmbed: HtmlEmbedCommand;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 html-embed/htmlembed
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { Widget } from 'ckeditor5/src/widget.js';
|
|
10
|
+
import HtmlEmbedEditing from './htmlembedediting.js';
|
|
11
|
+
import HtmlEmbedUI from './htmlembedui.js';
|
|
12
|
+
/**
|
|
13
|
+
* The HTML embed feature.
|
|
14
|
+
*
|
|
15
|
+
* It allows inserting HTML snippets directly into the editor.
|
|
16
|
+
*
|
|
17
|
+
* For a detailed overview, check the {@glink features/html/html-embed HTML embed feature} documentation.
|
|
18
|
+
*/
|
|
19
|
+
export default class HtmlEmbed extends Plugin {
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires(): readonly [typeof HtmlEmbedEditing, typeof HtmlEmbedUI, typeof Widget];
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get pluginName(): "HtmlEmbed";
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get isOfficialPlugin(): true;
|
|
32
|
+
}
|
package/src/htmlembed.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
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 html-embed/htmlembed
|
|
7
|
+
*/
|
|
8
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
9
|
+
import { Widget } from 'ckeditor5/src/widget.js';
|
|
10
|
+
import HtmlEmbedEditing from './htmlembedediting.js';
|
|
11
|
+
import HtmlEmbedUI from './htmlembedui.js';
|
|
12
|
+
/**
|
|
13
|
+
* The HTML embed feature.
|
|
14
|
+
*
|
|
15
|
+
* It allows inserting HTML snippets directly into the editor.
|
|
16
|
+
*
|
|
17
|
+
* For a detailed overview, check the {@glink features/html/html-embed HTML embed feature} documentation.
|
|
18
|
+
*/
|
|
19
|
+
export default class HtmlEmbed extends Plugin {
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get requires() {
|
|
24
|
+
return [HtmlEmbedEditing, HtmlEmbedUI, Widget];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
static get pluginName() {
|
|
30
|
+
return 'HtmlEmbed';
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
static get isOfficialPlugin() {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import { Command } from 'ckeditor5/src/core.js';
|
|
6
|
+
/**
|
|
7
|
+
* The insert HTML embed element command.
|
|
8
|
+
*
|
|
9
|
+
* The command is registered by {@link module:html-embed/htmlembedediting~HtmlEmbedEditing} as `'htmlEmbed'`.
|
|
10
|
+
*
|
|
11
|
+
* To insert an empty HTML embed element at the current selection, execute the command:
|
|
12
|
+
*
|
|
13
|
+
* ```ts
|
|
14
|
+
* editor.execute( 'htmlEmbed' );
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* You can specify the initial content of a new HTML embed in the argument:
|
|
18
|
+
*
|
|
19
|
+
* ```ts
|
|
20
|
+
* editor.execute( 'htmlEmbed', '<b>Initial content.</b>' );
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* To update the content of the HTML embed, select it in the model and pass the content in the argument:
|
|
24
|
+
*
|
|
25
|
+
* ```ts
|
|
26
|
+
* editor.execute( 'htmlEmbed', '<b>New content of an existing embed.</b>' );
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export default class HtmlEmbedCommand extends Command {
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
refresh(): void;
|
|
34
|
+
/**
|
|
35
|
+
* Executes the command, which either:
|
|
36
|
+
*
|
|
37
|
+
* * creates and inserts a new HTML embed element if none was selected,
|
|
38
|
+
* * updates the content of the HTML embed if one was selected.
|
|
39
|
+
*
|
|
40
|
+
* @fires execute
|
|
41
|
+
* @param value When passed, the value (content) will be set on a new embed or a selected one.
|
|
42
|
+
*/
|
|
43
|
+
execute(value?: string): void;
|
|
44
|
+
}
|