@ckeditor/ckeditor5-bookmark 0.0.1 → 44.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (408) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +4 -5
  3. package/README.md +31 -3
  4. package/build/bookmark.js +5 -0
  5. package/build/translations/af.js +1 -0
  6. package/build/translations/ar.js +1 -0
  7. package/build/translations/ast.js +1 -0
  8. package/build/translations/az.js +1 -0
  9. package/build/translations/bg.js +1 -0
  10. package/build/translations/bn.js +1 -0
  11. package/build/translations/bs.js +1 -0
  12. package/build/translations/ca.js +1 -0
  13. package/build/translations/cs.js +1 -0
  14. package/build/translations/da.js +1 -0
  15. package/build/translations/de-ch.js +1 -0
  16. package/build/translations/de.js +1 -0
  17. package/build/translations/el.js +1 -0
  18. package/build/translations/en-au.js +1 -0
  19. package/build/translations/en-gb.js +1 -0
  20. package/build/translations/eo.js +1 -0
  21. package/build/translations/es-co.js +1 -0
  22. package/build/translations/es.js +1 -0
  23. package/build/translations/et.js +1 -0
  24. package/build/translations/eu.js +1 -0
  25. package/build/translations/fa.js +1 -0
  26. package/build/translations/fi.js +1 -0
  27. package/build/translations/fr.js +1 -0
  28. package/build/translations/gl.js +1 -0
  29. package/build/translations/gu.js +1 -0
  30. package/build/translations/he.js +1 -0
  31. package/build/translations/hi.js +1 -0
  32. package/build/translations/hr.js +1 -0
  33. package/build/translations/hu.js +1 -0
  34. package/build/translations/hy.js +1 -0
  35. package/build/translations/id.js +1 -0
  36. package/build/translations/it.js +1 -0
  37. package/build/translations/ja.js +1 -0
  38. package/build/translations/jv.js +1 -0
  39. package/build/translations/kk.js +1 -0
  40. package/build/translations/km.js +1 -0
  41. package/build/translations/kn.js +1 -0
  42. package/build/translations/ko.js +1 -0
  43. package/build/translations/ku.js +1 -0
  44. package/build/translations/lt.js +1 -0
  45. package/build/translations/lv.js +1 -0
  46. package/build/translations/ms.js +1 -0
  47. package/build/translations/nb.js +1 -0
  48. package/build/translations/ne.js +1 -0
  49. package/build/translations/nl.js +1 -0
  50. package/build/translations/no.js +1 -0
  51. package/build/translations/oc.js +1 -0
  52. package/build/translations/pl.js +1 -0
  53. package/build/translations/pt-br.js +1 -0
  54. package/build/translations/pt.js +1 -0
  55. package/build/translations/ro.js +1 -0
  56. package/build/translations/ru.js +1 -0
  57. package/build/translations/si.js +1 -0
  58. package/build/translations/sk.js +1 -0
  59. package/build/translations/sl.js +1 -0
  60. package/build/translations/sq.js +1 -0
  61. package/build/translations/sr-latn.js +1 -0
  62. package/build/translations/sr.js +1 -0
  63. package/build/translations/sv.js +1 -0
  64. package/build/translations/th.js +1 -0
  65. package/build/translations/ti.js +1 -0
  66. package/build/translations/tk.js +1 -0
  67. package/build/translations/tr.js +1 -0
  68. package/build/translations/tt.js +1 -0
  69. package/build/translations/ug.js +1 -0
  70. package/build/translations/uk.js +1 -0
  71. package/build/translations/ur.js +1 -0
  72. package/build/translations/uz.js +1 -0
  73. package/build/translations/vi.js +1 -0
  74. package/build/translations/zh-cn.js +1 -0
  75. package/build/translations/zh.js +1 -0
  76. package/ckeditor5-metadata.json +24 -0
  77. package/dist/augmentation.d.ts +28 -0
  78. package/dist/bookmark.d.ts +34 -0
  79. package/dist/bookmarkconfig.d.ts +52 -0
  80. package/dist/bookmarkediting.d.ts +55 -0
  81. package/dist/bookmarkui.d.ts +170 -0
  82. package/dist/index-content.css +4 -0
  83. package/dist/index-editor.css +150 -0
  84. package/dist/index.css +195 -0
  85. package/dist/index.css.map +1 -0
  86. package/dist/index.d.ts +18 -0
  87. package/dist/index.js +1320 -0
  88. package/dist/index.js.map +1 -0
  89. package/dist/insertbookmarkcommand.d.ts +42 -0
  90. package/dist/translations/af.d.ts +8 -0
  91. package/dist/translations/af.js +5 -0
  92. package/dist/translations/af.umd.js +11 -0
  93. package/dist/translations/ar.d.ts +8 -0
  94. package/dist/translations/ar.js +5 -0
  95. package/dist/translations/ar.umd.js +11 -0
  96. package/dist/translations/ast.d.ts +8 -0
  97. package/dist/translations/ast.js +5 -0
  98. package/dist/translations/ast.umd.js +11 -0
  99. package/dist/translations/az.d.ts +8 -0
  100. package/dist/translations/az.js +5 -0
  101. package/dist/translations/az.umd.js +11 -0
  102. package/dist/translations/bg.d.ts +8 -0
  103. package/dist/translations/bg.js +5 -0
  104. package/dist/translations/bg.umd.js +11 -0
  105. package/dist/translations/bn.d.ts +8 -0
  106. package/dist/translations/bn.js +5 -0
  107. package/dist/translations/bn.umd.js +11 -0
  108. package/dist/translations/bs.d.ts +8 -0
  109. package/dist/translations/bs.js +5 -0
  110. package/dist/translations/bs.umd.js +11 -0
  111. package/dist/translations/ca.d.ts +8 -0
  112. package/dist/translations/ca.js +5 -0
  113. package/dist/translations/ca.umd.js +11 -0
  114. package/dist/translations/cs.d.ts +8 -0
  115. package/dist/translations/cs.js +5 -0
  116. package/dist/translations/cs.umd.js +11 -0
  117. package/dist/translations/da.d.ts +8 -0
  118. package/dist/translations/da.js +5 -0
  119. package/dist/translations/da.umd.js +11 -0
  120. package/dist/translations/de-ch.d.ts +8 -0
  121. package/dist/translations/de-ch.js +5 -0
  122. package/dist/translations/de-ch.umd.js +11 -0
  123. package/dist/translations/de.d.ts +8 -0
  124. package/dist/translations/de.js +5 -0
  125. package/dist/translations/de.umd.js +11 -0
  126. package/dist/translations/el.d.ts +8 -0
  127. package/dist/translations/el.js +5 -0
  128. package/dist/translations/el.umd.js +11 -0
  129. package/dist/translations/en-au.d.ts +8 -0
  130. package/dist/translations/en-au.js +5 -0
  131. package/dist/translations/en-au.umd.js +11 -0
  132. package/dist/translations/en-gb.d.ts +8 -0
  133. package/dist/translations/en-gb.js +5 -0
  134. package/dist/translations/en-gb.umd.js +11 -0
  135. package/dist/translations/en.d.ts +8 -0
  136. package/dist/translations/en.js +5 -0
  137. package/dist/translations/en.umd.js +11 -0
  138. package/dist/translations/eo.d.ts +8 -0
  139. package/dist/translations/eo.js +5 -0
  140. package/dist/translations/eo.umd.js +11 -0
  141. package/dist/translations/es-co.d.ts +8 -0
  142. package/dist/translations/es-co.js +5 -0
  143. package/dist/translations/es-co.umd.js +11 -0
  144. package/dist/translations/es.d.ts +8 -0
  145. package/dist/translations/es.js +5 -0
  146. package/dist/translations/es.umd.js +11 -0
  147. package/dist/translations/et.d.ts +8 -0
  148. package/dist/translations/et.js +5 -0
  149. package/dist/translations/et.umd.js +11 -0
  150. package/dist/translations/eu.d.ts +8 -0
  151. package/dist/translations/eu.js +5 -0
  152. package/dist/translations/eu.umd.js +11 -0
  153. package/dist/translations/fa.d.ts +8 -0
  154. package/dist/translations/fa.js +5 -0
  155. package/dist/translations/fa.umd.js +11 -0
  156. package/dist/translations/fi.d.ts +8 -0
  157. package/dist/translations/fi.js +5 -0
  158. package/dist/translations/fi.umd.js +11 -0
  159. package/dist/translations/fr.d.ts +8 -0
  160. package/dist/translations/fr.js +5 -0
  161. package/dist/translations/fr.umd.js +11 -0
  162. package/dist/translations/gl.d.ts +8 -0
  163. package/dist/translations/gl.js +5 -0
  164. package/dist/translations/gl.umd.js +11 -0
  165. package/dist/translations/gu.d.ts +8 -0
  166. package/dist/translations/gu.js +5 -0
  167. package/dist/translations/gu.umd.js +11 -0
  168. package/dist/translations/he.d.ts +8 -0
  169. package/dist/translations/he.js +5 -0
  170. package/dist/translations/he.umd.js +11 -0
  171. package/dist/translations/hi.d.ts +8 -0
  172. package/dist/translations/hi.js +5 -0
  173. package/dist/translations/hi.umd.js +11 -0
  174. package/dist/translations/hr.d.ts +8 -0
  175. package/dist/translations/hr.js +5 -0
  176. package/dist/translations/hr.umd.js +11 -0
  177. package/dist/translations/hu.d.ts +8 -0
  178. package/dist/translations/hu.js +5 -0
  179. package/dist/translations/hu.umd.js +11 -0
  180. package/dist/translations/hy.d.ts +8 -0
  181. package/dist/translations/hy.js +5 -0
  182. package/dist/translations/hy.umd.js +11 -0
  183. package/dist/translations/id.d.ts +8 -0
  184. package/dist/translations/id.js +5 -0
  185. package/dist/translations/id.umd.js +11 -0
  186. package/dist/translations/it.d.ts +8 -0
  187. package/dist/translations/it.js +5 -0
  188. package/dist/translations/it.umd.js +11 -0
  189. package/dist/translations/ja.d.ts +8 -0
  190. package/dist/translations/ja.js +5 -0
  191. package/dist/translations/ja.umd.js +11 -0
  192. package/dist/translations/jv.d.ts +8 -0
  193. package/dist/translations/jv.js +5 -0
  194. package/dist/translations/jv.umd.js +11 -0
  195. package/dist/translations/kk.d.ts +8 -0
  196. package/dist/translations/kk.js +5 -0
  197. package/dist/translations/kk.umd.js +11 -0
  198. package/dist/translations/km.d.ts +8 -0
  199. package/dist/translations/km.js +5 -0
  200. package/dist/translations/km.umd.js +11 -0
  201. package/dist/translations/kn.d.ts +8 -0
  202. package/dist/translations/kn.js +5 -0
  203. package/dist/translations/kn.umd.js +11 -0
  204. package/dist/translations/ko.d.ts +8 -0
  205. package/dist/translations/ko.js +5 -0
  206. package/dist/translations/ko.umd.js +11 -0
  207. package/dist/translations/ku.d.ts +8 -0
  208. package/dist/translations/ku.js +5 -0
  209. package/dist/translations/ku.umd.js +11 -0
  210. package/dist/translations/lt.d.ts +8 -0
  211. package/dist/translations/lt.js +5 -0
  212. package/dist/translations/lt.umd.js +11 -0
  213. package/dist/translations/lv.d.ts +8 -0
  214. package/dist/translations/lv.js +5 -0
  215. package/dist/translations/lv.umd.js +11 -0
  216. package/dist/translations/ms.d.ts +8 -0
  217. package/dist/translations/ms.js +5 -0
  218. package/dist/translations/ms.umd.js +11 -0
  219. package/dist/translations/nb.d.ts +8 -0
  220. package/dist/translations/nb.js +5 -0
  221. package/dist/translations/nb.umd.js +11 -0
  222. package/dist/translations/ne.d.ts +8 -0
  223. package/dist/translations/ne.js +5 -0
  224. package/dist/translations/ne.umd.js +11 -0
  225. package/dist/translations/nl.d.ts +8 -0
  226. package/dist/translations/nl.js +5 -0
  227. package/dist/translations/nl.umd.js +11 -0
  228. package/dist/translations/no.d.ts +8 -0
  229. package/dist/translations/no.js +5 -0
  230. package/dist/translations/no.umd.js +11 -0
  231. package/dist/translations/oc.d.ts +8 -0
  232. package/dist/translations/oc.js +5 -0
  233. package/dist/translations/oc.umd.js +11 -0
  234. package/dist/translations/pl.d.ts +8 -0
  235. package/dist/translations/pl.js +5 -0
  236. package/dist/translations/pl.umd.js +11 -0
  237. package/dist/translations/pt-br.d.ts +8 -0
  238. package/dist/translations/pt-br.js +5 -0
  239. package/dist/translations/pt-br.umd.js +11 -0
  240. package/dist/translations/pt.d.ts +8 -0
  241. package/dist/translations/pt.js +5 -0
  242. package/dist/translations/pt.umd.js +11 -0
  243. package/dist/translations/ro.d.ts +8 -0
  244. package/dist/translations/ro.js +5 -0
  245. package/dist/translations/ro.umd.js +11 -0
  246. package/dist/translations/ru.d.ts +8 -0
  247. package/dist/translations/ru.js +5 -0
  248. package/dist/translations/ru.umd.js +11 -0
  249. package/dist/translations/si.d.ts +8 -0
  250. package/dist/translations/si.js +5 -0
  251. package/dist/translations/si.umd.js +11 -0
  252. package/dist/translations/sk.d.ts +8 -0
  253. package/dist/translations/sk.js +5 -0
  254. package/dist/translations/sk.umd.js +11 -0
  255. package/dist/translations/sl.d.ts +8 -0
  256. package/dist/translations/sl.js +5 -0
  257. package/dist/translations/sl.umd.js +11 -0
  258. package/dist/translations/sq.d.ts +8 -0
  259. package/dist/translations/sq.js +5 -0
  260. package/dist/translations/sq.umd.js +11 -0
  261. package/dist/translations/sr-latn.d.ts +8 -0
  262. package/dist/translations/sr-latn.js +5 -0
  263. package/dist/translations/sr-latn.umd.js +11 -0
  264. package/dist/translations/sr.d.ts +8 -0
  265. package/dist/translations/sr.js +5 -0
  266. package/dist/translations/sr.umd.js +11 -0
  267. package/dist/translations/sv.d.ts +8 -0
  268. package/dist/translations/sv.js +5 -0
  269. package/dist/translations/sv.umd.js +11 -0
  270. package/dist/translations/th.d.ts +8 -0
  271. package/dist/translations/th.js +5 -0
  272. package/dist/translations/th.umd.js +11 -0
  273. package/dist/translations/ti.d.ts +8 -0
  274. package/dist/translations/ti.js +5 -0
  275. package/dist/translations/ti.umd.js +11 -0
  276. package/dist/translations/tk.d.ts +8 -0
  277. package/dist/translations/tk.js +5 -0
  278. package/dist/translations/tk.umd.js +11 -0
  279. package/dist/translations/tr.d.ts +8 -0
  280. package/dist/translations/tr.js +5 -0
  281. package/dist/translations/tr.umd.js +11 -0
  282. package/dist/translations/tt.d.ts +8 -0
  283. package/dist/translations/tt.js +5 -0
  284. package/dist/translations/tt.umd.js +11 -0
  285. package/dist/translations/ug.d.ts +8 -0
  286. package/dist/translations/ug.js +5 -0
  287. package/dist/translations/ug.umd.js +11 -0
  288. package/dist/translations/uk.d.ts +8 -0
  289. package/dist/translations/uk.js +5 -0
  290. package/dist/translations/uk.umd.js +11 -0
  291. package/dist/translations/ur.d.ts +8 -0
  292. package/dist/translations/ur.js +5 -0
  293. package/dist/translations/ur.umd.js +11 -0
  294. package/dist/translations/uz.d.ts +8 -0
  295. package/dist/translations/uz.js +5 -0
  296. package/dist/translations/uz.umd.js +11 -0
  297. package/dist/translations/vi.d.ts +8 -0
  298. package/dist/translations/vi.js +5 -0
  299. package/dist/translations/vi.umd.js +11 -0
  300. package/dist/translations/zh-cn.d.ts +8 -0
  301. package/dist/translations/zh-cn.js +5 -0
  302. package/dist/translations/zh-cn.umd.js +11 -0
  303. package/dist/translations/zh.d.ts +8 -0
  304. package/dist/translations/zh.js +5 -0
  305. package/dist/translations/zh.umd.js +11 -0
  306. package/dist/ui/bookmarkactionsview.d.ts +106 -0
  307. package/dist/ui/bookmarkformview.d.ts +122 -0
  308. package/dist/updatebookmarkcommand.d.ts +46 -0
  309. package/dist/utils.d.ts +15 -0
  310. package/lang/contexts.json +13 -0
  311. package/lang/translations/af.po +56 -0
  312. package/lang/translations/ar.po +56 -0
  313. package/lang/translations/ast.po +56 -0
  314. package/lang/translations/az.po +56 -0
  315. package/lang/translations/bg.po +56 -0
  316. package/lang/translations/bn.po +56 -0
  317. package/lang/translations/bs.po +56 -0
  318. package/lang/translations/ca.po +56 -0
  319. package/lang/translations/cs.po +56 -0
  320. package/lang/translations/da.po +56 -0
  321. package/lang/translations/de-ch.po +56 -0
  322. package/lang/translations/de.po +56 -0
  323. package/lang/translations/el.po +56 -0
  324. package/lang/translations/en-au.po +56 -0
  325. package/lang/translations/en-gb.po +56 -0
  326. package/lang/translations/en.po +56 -0
  327. package/lang/translations/eo.po +56 -0
  328. package/lang/translations/es-co.po +56 -0
  329. package/lang/translations/es.po +56 -0
  330. package/lang/translations/et.po +56 -0
  331. package/lang/translations/eu.po +56 -0
  332. package/lang/translations/fa.po +56 -0
  333. package/lang/translations/fi.po +56 -0
  334. package/lang/translations/fr.po +56 -0
  335. package/lang/translations/gl.po +56 -0
  336. package/lang/translations/gu.po +56 -0
  337. package/lang/translations/he.po +56 -0
  338. package/lang/translations/hi.po +56 -0
  339. package/lang/translations/hr.po +56 -0
  340. package/lang/translations/hu.po +56 -0
  341. package/lang/translations/hy.po +56 -0
  342. package/lang/translations/id.po +56 -0
  343. package/lang/translations/it.po +56 -0
  344. package/lang/translations/ja.po +56 -0
  345. package/lang/translations/jv.po +56 -0
  346. package/lang/translations/kk.po +56 -0
  347. package/lang/translations/km.po +56 -0
  348. package/lang/translations/kn.po +56 -0
  349. package/lang/translations/ko.po +56 -0
  350. package/lang/translations/ku.po +56 -0
  351. package/lang/translations/lt.po +56 -0
  352. package/lang/translations/lv.po +56 -0
  353. package/lang/translations/ms.po +56 -0
  354. package/lang/translations/nb.po +56 -0
  355. package/lang/translations/ne.po +56 -0
  356. package/lang/translations/nl.po +56 -0
  357. package/lang/translations/no.po +56 -0
  358. package/lang/translations/oc.po +56 -0
  359. package/lang/translations/pl.po +56 -0
  360. package/lang/translations/pt-br.po +56 -0
  361. package/lang/translations/pt.po +56 -0
  362. package/lang/translations/ro.po +56 -0
  363. package/lang/translations/ru.po +56 -0
  364. package/lang/translations/si.po +56 -0
  365. package/lang/translations/sk.po +56 -0
  366. package/lang/translations/sl.po +56 -0
  367. package/lang/translations/sq.po +56 -0
  368. package/lang/translations/sr-latn.po +56 -0
  369. package/lang/translations/sr.po +56 -0
  370. package/lang/translations/sv.po +56 -0
  371. package/lang/translations/th.po +56 -0
  372. package/lang/translations/ti.po +56 -0
  373. package/lang/translations/tk.po +56 -0
  374. package/lang/translations/tr.po +56 -0
  375. package/lang/translations/tt.po +56 -0
  376. package/lang/translations/ug.po +56 -0
  377. package/lang/translations/uk.po +56 -0
  378. package/lang/translations/ur.po +56 -0
  379. package/lang/translations/uz.po +56 -0
  380. package/lang/translations/vi.po +56 -0
  381. package/lang/translations/zh-cn.po +56 -0
  382. package/lang/translations/zh.po +56 -0
  383. package/package.json +32 -3
  384. package/src/augmentation.d.ts +24 -0
  385. package/src/augmentation.js +5 -0
  386. package/src/bookmark.d.ts +30 -0
  387. package/src/bookmark.js +36 -0
  388. package/src/bookmarkconfig.d.ts +48 -0
  389. package/src/bookmarkconfig.js +5 -0
  390. package/src/bookmarkediting.d.ts +51 -0
  391. package/src/bookmarkediting.js +211 -0
  392. package/src/bookmarkui.d.ts +166 -0
  393. package/src/bookmarkui.js +582 -0
  394. package/src/index.d.ts +14 -0
  395. package/src/index.js +13 -0
  396. package/src/insertbookmarkcommand.d.ts +38 -0
  397. package/src/insertbookmarkcommand.js +113 -0
  398. package/src/ui/bookmarkactionsview.d.ts +102 -0
  399. package/src/ui/bookmarkactionsview.js +154 -0
  400. package/src/ui/bookmarkformview.d.ts +118 -0
  401. package/src/ui/bookmarkformview.js +203 -0
  402. package/src/updatebookmarkcommand.d.ts +42 -0
  403. package/src/updatebookmarkcommand.js +75 -0
  404. package/src/utils.d.ts +11 -0
  405. package/src/utils.js +19 -0
  406. package/theme/bookmark.css +50 -0
  407. package/theme/bookmarkactions.css +44 -0
  408. package/theme/bookmarkform.css +42 -0
@@ -0,0 +1,56 @@
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: uk\n"
11
+ "Plural-Forms: nplurals=3; plural=(n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2);\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "The label of the bookmark toolbar button. Also, a bookmark form header."
15
+ msgid "Bookmark"
16
+ msgstr ""
17
+
18
+ msgctxt "The button in the bookmark insert form."
19
+ msgid "Insert"
20
+ msgstr ""
21
+
22
+ msgctxt "The button in the bookmark update form."
23
+ msgid "Update"
24
+ msgstr ""
25
+
26
+ msgctxt "Button opening the Bookmark editing balloon."
27
+ msgid "Edit bookmark"
28
+ msgstr ""
29
+
30
+ msgctxt "Toolbar button tooltip for bookmark remove button."
31
+ msgid "Remove bookmark"
32
+ msgstr ""
33
+
34
+ msgctxt "The label of the input in the bookmark insert and update form. Also, the tooltip for the bookmark name in the bookmark preview."
35
+ msgid "Bookmark name"
36
+ msgstr ""
37
+
38
+ msgctxt "The description of bookmark input in the bookmark insert form."
39
+ msgid "Enter the bookmark name without spaces."
40
+ msgstr ""
41
+
42
+ msgctxt "The error message. Displayed when the bookmark name is empty."
43
+ msgid "Bookmark must not be empty."
44
+ msgstr ""
45
+
46
+ msgctxt "The error message. Displayed when provided name includes spaces."
47
+ msgid "Bookmark name cannot contain space characters."
48
+ msgstr ""
49
+
50
+ msgctxt "The error message. Displayed when provided name already exists."
51
+ msgid "Bookmark name already exists."
52
+ msgstr ""
53
+
54
+ msgctxt "The label for the bookmark widget."
55
+ msgid "bookmark widget"
56
+ msgstr ""
@@ -0,0 +1,56 @@
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: ur\n"
11
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "The label of the bookmark toolbar button. Also, a bookmark form header."
15
+ msgid "Bookmark"
16
+ msgstr ""
17
+
18
+ msgctxt "The button in the bookmark insert form."
19
+ msgid "Insert"
20
+ msgstr ""
21
+
22
+ msgctxt "The button in the bookmark update form."
23
+ msgid "Update"
24
+ msgstr ""
25
+
26
+ msgctxt "Button opening the Bookmark editing balloon."
27
+ msgid "Edit bookmark"
28
+ msgstr ""
29
+
30
+ msgctxt "Toolbar button tooltip for bookmark remove button."
31
+ msgid "Remove bookmark"
32
+ msgstr ""
33
+
34
+ msgctxt "The label of the input in the bookmark insert and update form. Also, the tooltip for the bookmark name in the bookmark preview."
35
+ msgid "Bookmark name"
36
+ msgstr ""
37
+
38
+ msgctxt "The description of bookmark input in the bookmark insert form."
39
+ msgid "Enter the bookmark name without spaces."
40
+ msgstr ""
41
+
42
+ msgctxt "The error message. Displayed when the bookmark name is empty."
43
+ msgid "Bookmark must not be empty."
44
+ msgstr ""
45
+
46
+ msgctxt "The error message. Displayed when provided name includes spaces."
47
+ msgid "Bookmark name cannot contain space characters."
48
+ msgstr ""
49
+
50
+ msgctxt "The error message. Displayed when provided name already exists."
51
+ msgid "Bookmark name already exists."
52
+ msgstr ""
53
+
54
+ msgctxt "The label for the bookmark widget."
55
+ msgid "bookmark widget"
56
+ msgstr ""
@@ -0,0 +1,56 @@
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: uz\n"
11
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "The label of the bookmark toolbar button. Also, a bookmark form header."
15
+ msgid "Bookmark"
16
+ msgstr ""
17
+
18
+ msgctxt "The button in the bookmark insert form."
19
+ msgid "Insert"
20
+ msgstr ""
21
+
22
+ msgctxt "The button in the bookmark update form."
23
+ msgid "Update"
24
+ msgstr ""
25
+
26
+ msgctxt "Button opening the Bookmark editing balloon."
27
+ msgid "Edit bookmark"
28
+ msgstr ""
29
+
30
+ msgctxt "Toolbar button tooltip for bookmark remove button."
31
+ msgid "Remove bookmark"
32
+ msgstr ""
33
+
34
+ msgctxt "The label of the input in the bookmark insert and update form. Also, the tooltip for the bookmark name in the bookmark preview."
35
+ msgid "Bookmark name"
36
+ msgstr ""
37
+
38
+ msgctxt "The description of bookmark input in the bookmark insert form."
39
+ msgid "Enter the bookmark name without spaces."
40
+ msgstr ""
41
+
42
+ msgctxt "The error message. Displayed when the bookmark name is empty."
43
+ msgid "Bookmark must not be empty."
44
+ msgstr ""
45
+
46
+ msgctxt "The error message. Displayed when provided name includes spaces."
47
+ msgid "Bookmark name cannot contain space characters."
48
+ msgstr ""
49
+
50
+ msgctxt "The error message. Displayed when provided name already exists."
51
+ msgid "Bookmark name already exists."
52
+ msgstr ""
53
+
54
+ msgctxt "The label for the bookmark widget."
55
+ msgid "bookmark widget"
56
+ msgstr ""
@@ -0,0 +1,56 @@
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: vi\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "The label of the bookmark toolbar button. Also, a bookmark form header."
15
+ msgid "Bookmark"
16
+ msgstr ""
17
+
18
+ msgctxt "The button in the bookmark insert form."
19
+ msgid "Insert"
20
+ msgstr ""
21
+
22
+ msgctxt "The button in the bookmark update form."
23
+ msgid "Update"
24
+ msgstr ""
25
+
26
+ msgctxt "Button opening the Bookmark editing balloon."
27
+ msgid "Edit bookmark"
28
+ msgstr ""
29
+
30
+ msgctxt "Toolbar button tooltip for bookmark remove button."
31
+ msgid "Remove bookmark"
32
+ msgstr ""
33
+
34
+ msgctxt "The label of the input in the bookmark insert and update form. Also, the tooltip for the bookmark name in the bookmark preview."
35
+ msgid "Bookmark name"
36
+ msgstr ""
37
+
38
+ msgctxt "The description of bookmark input in the bookmark insert form."
39
+ msgid "Enter the bookmark name without spaces."
40
+ msgstr ""
41
+
42
+ msgctxt "The error message. Displayed when the bookmark name is empty."
43
+ msgid "Bookmark must not be empty."
44
+ msgstr ""
45
+
46
+ msgctxt "The error message. Displayed when provided name includes spaces."
47
+ msgid "Bookmark name cannot contain space characters."
48
+ msgstr ""
49
+
50
+ msgctxt "The error message. Displayed when provided name already exists."
51
+ msgid "Bookmark name already exists."
52
+ msgstr ""
53
+
54
+ msgctxt "The label for the bookmark widget."
55
+ msgid "bookmark widget"
56
+ msgstr ""
@@ -0,0 +1,56 @@
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: zh_CN\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "The label of the bookmark toolbar button. Also, a bookmark form header."
15
+ msgid "Bookmark"
16
+ msgstr ""
17
+
18
+ msgctxt "The button in the bookmark insert form."
19
+ msgid "Insert"
20
+ msgstr ""
21
+
22
+ msgctxt "The button in the bookmark update form."
23
+ msgid "Update"
24
+ msgstr ""
25
+
26
+ msgctxt "Button opening the Bookmark editing balloon."
27
+ msgid "Edit bookmark"
28
+ msgstr ""
29
+
30
+ msgctxt "Toolbar button tooltip for bookmark remove button."
31
+ msgid "Remove bookmark"
32
+ msgstr ""
33
+
34
+ msgctxt "The label of the input in the bookmark insert and update form. Also, the tooltip for the bookmark name in the bookmark preview."
35
+ msgid "Bookmark name"
36
+ msgstr ""
37
+
38
+ msgctxt "The description of bookmark input in the bookmark insert form."
39
+ msgid "Enter the bookmark name without spaces."
40
+ msgstr ""
41
+
42
+ msgctxt "The error message. Displayed when the bookmark name is empty."
43
+ msgid "Bookmark must not be empty."
44
+ msgstr ""
45
+
46
+ msgctxt "The error message. Displayed when provided name includes spaces."
47
+ msgid "Bookmark name cannot contain space characters."
48
+ msgstr ""
49
+
50
+ msgctxt "The error message. Displayed when provided name already exists."
51
+ msgid "Bookmark name already exists."
52
+ msgstr ""
53
+
54
+ msgctxt "The label for the bookmark widget."
55
+ msgid "bookmark widget"
56
+ msgstr ""
@@ -0,0 +1,56 @@
1
+ # Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
2
+ #
3
+ # Want to contribute to this file? Submit your changes via a GitHub Pull Request.
4
+ #
5
+ # Check out the official contributor's guide:
6
+ # https://ckeditor.com/docs/ckeditor5/latest/framework/guides/contributing/contributing.html
7
+ #
8
+ msgid ""
9
+ msgstr ""
10
+ "Language: zh_TW\n"
11
+ "Plural-Forms: nplurals=1; plural=0;\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+
14
+ msgctxt "The label of the bookmark toolbar button. Also, a bookmark form header."
15
+ msgid "Bookmark"
16
+ msgstr ""
17
+
18
+ msgctxt "The button in the bookmark insert form."
19
+ msgid "Insert"
20
+ msgstr ""
21
+
22
+ msgctxt "The button in the bookmark update form."
23
+ msgid "Update"
24
+ msgstr ""
25
+
26
+ msgctxt "Button opening the Bookmark editing balloon."
27
+ msgid "Edit bookmark"
28
+ msgstr ""
29
+
30
+ msgctxt "Toolbar button tooltip for bookmark remove button."
31
+ msgid "Remove bookmark"
32
+ msgstr ""
33
+
34
+ msgctxt "The label of the input in the bookmark insert and update form. Also, the tooltip for the bookmark name in the bookmark preview."
35
+ msgid "Bookmark name"
36
+ msgstr ""
37
+
38
+ msgctxt "The description of bookmark input in the bookmark insert form."
39
+ msgid "Enter the bookmark name without spaces."
40
+ msgstr ""
41
+
42
+ msgctxt "The error message. Displayed when the bookmark name is empty."
43
+ msgid "Bookmark must not be empty."
44
+ msgstr ""
45
+
46
+ msgctxt "The error message. Displayed when provided name includes spaces."
47
+ msgid "Bookmark name cannot contain space characters."
48
+ msgstr ""
49
+
50
+ msgctxt "The error message. Displayed when provided name already exists."
51
+ msgid "Bookmark name already exists."
52
+ msgstr ""
53
+
54
+ msgctxt "The label for the bookmark widget."
55
+ msgid "bookmark widget"
56
+ msgstr ""
package/package.json CHANGED
@@ -1,14 +1,43 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-bookmark",
3
- "version": "0.0.1",
3
+ "version": "44.0.0-alpha.0",
4
+ "description": "Bookmark feature for CKEditor 5.",
4
5
  "keywords": [
5
6
  "ckeditor",
6
7
  "ckeditor5",
7
8
  "ckeditor 5",
8
- "ckeditor5-lib"
9
+ "ckeditor5-feature",
10
+ "ckeditor5-plugin",
11
+ "ckeditor5-dll"
9
12
  ],
13
+ "type": "module",
14
+ "main": "src/index.js",
15
+ "dependencies": {
16
+ "ckeditor5": "44.0.0-alpha.0",
17
+ "@ckeditor/ckeditor5-core": "44.0.0-alpha.0",
18
+ "@ckeditor/ckeditor5-engine": "44.0.0-alpha.0",
19
+ "@ckeditor/ckeditor5-widget": "44.0.0-alpha.0",
20
+ "@ckeditor/ckeditor5-utils": "44.0.0-alpha.0",
21
+ "@ckeditor/ckeditor5-ui": "44.0.0-alpha.0"
22
+ },
10
23
  "author": "CKSource (http://cksource.com/)",
11
24
  "license": "GPL-2.0-or-later",
12
25
  "homepage": "https://ckeditor.com/ckeditor-5",
13
- "bugs": "https://github.com/ckeditor/ckeditor5/issues"
26
+ "bugs": "https://github.com/ckeditor/ckeditor5/issues",
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/ckeditor/ckeditor5.git",
30
+ "directory": "packages/ckeditor5-bookmark"
31
+ },
32
+ "files": [
33
+ "dist",
34
+ "lang",
35
+ "src/**/*.js",
36
+ "src/**/*.d.ts",
37
+ "theme",
38
+ "build",
39
+ "ckeditor5-metadata.json",
40
+ "CHANGELOG.md"
41
+ ],
42
+ "types": "src/index.d.ts"
14
43
  }
@@ -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 { Bookmark, BookmarkEditing, BookmarkUI, InsertBookmarkCommand, UpdateBookmarkCommand, BookmarkConfig } from './index.js';
6
+ declare module '@ckeditor/ckeditor5-core' {
7
+ interface EditorConfig {
8
+ /**
9
+ * The configuration of the {@link module:bookmark/bookmark~Bookmark} feature.
10
+ *
11
+ * Read more in {@link module:bookmark/bookmarkconfig~BookmarkConfig}.
12
+ */
13
+ bookmark?: BookmarkConfig;
14
+ }
15
+ interface PluginsMap {
16
+ [Bookmark.pluginName]: Bookmark;
17
+ [BookmarkEditing.pluginName]: BookmarkEditing;
18
+ [BookmarkUI.pluginName]: BookmarkUI;
19
+ }
20
+ interface CommandsMap {
21
+ insertBookmark: InsertBookmarkCommand;
22
+ updateBookmark: UpdateBookmarkCommand;
23
+ }
24
+ }
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,30 @@
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 bookmark/bookmark
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Widget } from 'ckeditor5/src/widget.js';
10
+ import BookmarkUI from './bookmarkui.js';
11
+ import BookmarkEditing from './bookmarkediting.js';
12
+ /**
13
+ * The bookmark feature.
14
+ *
15
+ * For a detailed overview, check the {@glink features/bookmarks Bookmarks} feature guide.
16
+ */
17
+ export default class Bookmark extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName(): "Bookmark";
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get requires(): readonly [typeof BookmarkEditing, typeof BookmarkUI, typeof Widget];
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get isOfficialPlugin(): true;
30
+ }
@@ -0,0 +1,36 @@
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 bookmark/bookmark
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import { Widget } from 'ckeditor5/src/widget.js';
10
+ import BookmarkUI from './bookmarkui.js';
11
+ import BookmarkEditing from './bookmarkediting.js';
12
+ /**
13
+ * The bookmark feature.
14
+ *
15
+ * For a detailed overview, check the {@glink features/bookmarks Bookmarks} feature guide.
16
+ */
17
+ export default class Bookmark extends Plugin {
18
+ /**
19
+ * @inheritDoc
20
+ */
21
+ static get pluginName() {
22
+ return 'Bookmark';
23
+ }
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get requires() {
28
+ return [BookmarkEditing, BookmarkUI, Widget];
29
+ }
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ static get isOfficialPlugin() {
34
+ return true;
35
+ }
36
+ }
@@ -0,0 +1,48 @@
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 bookmark/bookmarkconfig
7
+ */
8
+ /**
9
+ * The configuration of the bookmark feature.
10
+ *
11
+ * The properties defined in this config are set in the `config.bookmark` namespace.
12
+ *
13
+ * ```ts
14
+ * ClassicEditor
15
+ * .create( editorElement, {
16
+ * bookmark: {
17
+ * // Bookmark configuration.
18
+ * }
19
+ * } )
20
+ * .then( ... )
21
+ * .catch( ... );
22
+ * ```
23
+ *
24
+ * See {@link module:core/editor/editorconfig~EditorConfig all editor options}.
25
+ */
26
+ export interface BookmarkConfig {
27
+ /**
28
+ * Allows to convert into bookmarks non-empty anchor elements.
29
+ *
30
+ * With this option enabled you will have all non-empty anchors converted into bookmakrs.
31
+ * For example:
32
+ *
33
+ *```html
34
+ * <a id="bookmark">Bookmark</a>
35
+ *```
36
+ *
37
+ * will be converted into:
38
+ *
39
+ *```html
40
+ * <a id="bookmark"></a>Bookmark
41
+ *```
42
+ *
43
+ * **Note:** This is enabled by default.
44
+ *
45
+ * @default true
46
+ */
47
+ enableNonEmptyAnchorConversion?: boolean;
48
+ }
@@ -0,0 +1,5 @@
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
+ export {};
@@ -0,0 +1,51 @@
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 bookmark/bookmarkediting
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import type { Element } from 'ckeditor5/src/engine.js';
10
+ import '../theme/bookmark.css';
11
+ /**
12
+ * The bookmark editing plugin.
13
+ */
14
+ export default class BookmarkEditing extends Plugin {
15
+ /**
16
+ * A collection of bookmarks elements in the document.
17
+ */
18
+ private _bookmarkElements;
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ static get pluginName(): "BookmarkEditing";
23
+ /**
24
+ * @inheritDoc
25
+ */
26
+ static get isOfficialPlugin(): true;
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ init(): void;
31
+ /**
32
+ * Returns the model element for the given bookmark ID if it exists.
33
+ */
34
+ getElementForBookmarkId(bookmarkId: string): Element | null;
35
+ /**
36
+ * Defines the schema for the bookmark feature.
37
+ */
38
+ private _defineSchema;
39
+ /**
40
+ * Defines the converters for the bookmark feature.
41
+ */
42
+ private _defineConverters;
43
+ /**
44
+ * Creates a UI element for the `bookmark` representation in editing view.
45
+ */
46
+ private _createBookmarkUIElement;
47
+ /**
48
+ * Tracking the added or removed bookmark elements.
49
+ */
50
+ private _trackBookmarkElements;
51
+ }