trusty-cms 7.0.40 → 7.0.41

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.
@@ -41926,7 +41926,6 @@ Original error: ${originalError.name}: ${originalError.message}` : "";
41926
41926
  var settings = '<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.734 6.375H1.75a.75.75 0 0 1 0-1.5h1.984a2.626 2.626 0 0 1 5.032 0h9.48a.75.75 0 0 1 0 1.5h-9.48a2.626 2.626 0 0 1-5.032 0Zm1.141-.75a1.375 1.375 0 1 1 2.75 0 1.375 1.375 0 0 1-2.75 0ZM16.263 14.625h1.983a.75.75 0 0 1 0 1.5h-1.983a2.626 2.626 0 0 1-5.033 0H1.75a.75.75 0 0 1 0-1.5h9.48a2.626 2.626 0 0 1 5.033 0Zm-1.142.75a1.375 1.375 0 1 1-2.75 0 1.375 1.375 0 0 1 2.75 0Z"/></svg>\n';
41927
41927
  var showBlocks = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m6.395 9.196 2.545-.007V6.498a.6.6 0 0 1 .598-.598h.299a.6.6 0 0 1 .598.598v6.877a.6.6 0 0 1-.598.598h-.299a.6.6 0 0 1-.598-.598v-2.691l-2.545.007v2.691a.6.6 0 0 1-.598.598h-.299a.6.6 0 0 1-.598-.598V6.505a.6.6 0 0 1 .598-.598h.299a.6.6 0 0 1 .598.598zm8.699 4.221V6.462a.56.56 0 0 0-.562-.562h-.782a1 1 0 0 0-.39.08l-1.017.43a.56.56 0 0 0-.343.517v.197c0 .4.406.67.775.519l.819-.337v6.111c0 .31.251.562.561.562h.377c.31 0 .562-.251.562-.562M0 15.417v1.5h1.5v-1.5zm18.5 0v1.5H20v-1.5zm0-3.084v1.5H20v-1.5zm0-3.083v1.5H20v-1.5zm0-3.083v1.5H20v-1.5zM0 18.5v.5a1 1 0 0 0 1 1h.5v-1.5zm3.083 0V20h1.5v-1.5zm3.084 0V20h1.5v-1.5zm3.083 0V20h1.5v-1.5zm3.083 0V20h1.5v-1.5zm3.084 0V20h1.5v-1.5zm3.083 0V20h.5a1 1 0 0 0 1-1v-.5z"/><path d="M0 1a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v3.583h-1.5V1.5h-17v12.333H0z" clip-rule="evenodd"/></svg>';
41928
41928
  var source = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m12.5 0 5 4.5v15.003h-16V0zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0"/></svg>';
41929
- var specialCharacters = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M10 2.5a7.47 7.47 0 0 1 4.231 1.31 7.27 7.27 0 0 1 2.703 3.454 7.13 7.13 0 0 1 .199 4.353c-.39 1.436-1.475 2.72-2.633 3.677h2.013c0-.226.092-.443.254-.603a.876.876 0 0 1 1.229 0c.163.16.254.377.254.603v.853c0 .209-.078.41-.22.567a.87.87 0 0 1-.547.28l-.101.006h-4.695a.517.517 0 0 1-.516-.518v-1.265c0-.21.128-.398.317-.489a5.6 5.6 0 0 0 2.492-2.371 5.46 5.46 0 0 0 .552-3.693 5.53 5.53 0 0 0-1.955-3.2A5.7 5.7 0 0 0 10 4.206 5.7 5.7 0 0 0 6.419 5.46 5.53 5.53 0 0 0 4.46 8.663a5.46 5.46 0 0 0 .554 3.695 5.6 5.6 0 0 0 2.497 2.37.55.55 0 0 1 .317.49v1.264c0 .286-.23.518-.516.518H2.618a.88.88 0 0 1-.614-.25.85.85 0 0 1-.254-.603v-.853c0-.226.091-.443.254-.603a.876.876 0 0 1 1.228 0c.163.16.255.377.255.603h1.925c-1.158-.958-2.155-2.241-2.545-3.678a7.13 7.13 0 0 1 .199-4.352 7.27 7.27 0 0 1 2.703-3.455A7.5 7.5 0 0 1 10 2.5"/></svg>';
41930
41929
  var strikethrough = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M7 16.4c-.8-.4-1.5-.9-2.2-1.5a.6.6 0 0 1-.2-.5l.3-.6h1c1 1.2 2.1 1.7 3.7 1.7 1 0 1.8-.3 2.3-.6.6-.4.6-1.2.6-1.3.2-1.2-.9-2.1-.9-2.1h2.1c.3.7.4 1.2.4 1.7v.8l-.6 1.2c-.6.8-1.1 1-1.6 1.2a6 6 0 0 1-2.4.6c-1 0-1.8-.3-2.5-.6M6.8 9 6 8.3c-.4-.5-.5-.8-.5-1.6 0-.7.1-1.3.5-1.8.4-.6 1-1 1.6-1.3a6.3 6.3 0 0 1 4.7 0 4 4 0 0 1 1.7 1l.3.7c0 .1.2.4-.2.7-.4.2-.9.1-1 0a3 3 0 0 0-1.2-1c-.4-.2-1-.3-2-.4-.7 0-1.4.2-2 .6-.8.6-1 .8-1 1.5 0 .8.5 1 1.2 1.5.6.4 1.1.7 1.9 1H6.8z"/><path d="M3 10.5V9h14v1.5z"/></svg>';
41931
41930
  var subscript = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="m7.03 10.349 3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53zm8.147 7.829h2.549q.38 0 .58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393q-.158.162-.48.162h-3.594q-.367 0-.572-.197a.62.62 0 0 1-.205-.463q0-.171.132-.453a1.6 1.6 0 0 1 .288-.444q.65-.654 1.172-1.122t.747-.615q.401-.275.667-.553t.405-.57.139-.57a1.01 1.01 0 0 0-.554-.917 1.2 1.2 0 0 0-.56-.133q-.639 0-1.005.546a2.3 2.3 0 0 0-.164.39 1.6 1.6 0 0 1-.258.488q-.144.17-.423.17a.56.56 0 0 1-.405-.156.57.57 0 0 1-.161-.427q0-.327.151-.683.152-.357.452-.646c.3-.289.454-.349.762-.467a3 3 0 0 1 1.081-.178q.747 0 1.274.228a1.92 1.92 0 0 1 1.004 1.032 1.98 1.98 0 0 1-.156 1.794q-.3.48-.613.754-.312.273-1.048.857-.735.584-1.008.906a3 3 0 0 0-.24.309z"/></svg>';
41932
41931
  var superscript = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M15.677 8.678h2.549q.38 0 .58.152a.49.49 0 0 1 .201.413.54.54 0 0 1-.159.393q-.158.162-.48.162h-3.594q-.367 0-.572-.197a.62.62 0 0 1-.205-.463q0-.171.132-.453a1.6 1.6 0 0 1 .288-.444q.65-.654 1.172-1.122t.747-.615q.401-.275.667-.553.265-.278.405-.57t.139-.57a1.01 1.01 0 0 0-.554-.917 1.2 1.2 0 0 0-.56-.133q-.639 0-1.005.546a2.3 2.3 0 0 0-.164.39 1.6 1.6 0 0 1-.258.488q-.144.17-.423.17a.56.56 0 0 1-.405-.156.57.57 0 0 1-.161-.427q0-.327.151-.683.152-.357.452-.646c.3-.289.454-.349.762-.467a3 3 0 0 1 1.081-.178q.747 0 1.274.228a1.92 1.92 0 0 1 1.004 1.032 1.98 1.98 0 0 1-.156 1.794q-.3.48-.613.754-.312.273-1.048.857-.735.584-1.008.906a3 3 0 0 0-.24.309zM7.03 10.349l3.818-3.819a.8.8 0 1 1 1.132 1.132L8.16 11.48l3.819 3.818a.8.8 0 1 1-1.132 1.132L7.03 12.61l-3.818 3.82a.8.8 0 1 1-1.132-1.132L5.9 11.48 2.08 7.662A.8.8 0 1 1 3.212 6.53z"/></svg>';
@@ -91558,1777 +91557,6 @@ Original error: ${originalError.name}: ${originalError.message}` : "";
91558
91557
  return input.startsWith("<");
91559
91558
  }
91560
91559
 
91561
- // node_modules/@ckeditor/ckeditor5-special-characters/dist/index.js
91562
- var CharacterGridView = class extends View {
91563
- /**
91564
- * A collection of the child tile views. Each tile represents a particular character.
91565
- */
91566
- tiles;
91567
- /**
91568
- * Tracks information about the DOM focus in the grid.
91569
- */
91570
- focusTracker;
91571
- /**
91572
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
91573
- */
91574
- keystrokes;
91575
- /**
91576
- * Creates an instance of a character grid containing tiles representing special characters.
91577
- *
91578
- * @param locale The localization services instance.
91579
- */
91580
- constructor(locale) {
91581
- super(locale);
91582
- this.tiles = this.createCollection();
91583
- this.setTemplate({
91584
- tag: "div",
91585
- children: [
91586
- {
91587
- tag: "div",
91588
- attributes: {
91589
- class: [
91590
- "ck",
91591
- "ck-character-grid__tiles"
91592
- ]
91593
- },
91594
- children: this.tiles
91595
- }
91596
- ],
91597
- attributes: {
91598
- class: [
91599
- "ck",
91600
- "ck-character-grid"
91601
- ]
91602
- }
91603
- });
91604
- this.focusTracker = new FocusTracker();
91605
- this.keystrokes = new KeystrokeHandler();
91606
- addKeyboardHandlingForGrid({
91607
- keystrokeHandler: this.keystrokes,
91608
- focusTracker: this.focusTracker,
91609
- gridItems: this.tiles,
91610
- numberOfColumns: () => globalVar.window.getComputedStyle(this.element.firstChild).getPropertyValue("grid-template-columns").split(" ").length,
91611
- uiLanguageDirection: this.locale && this.locale.uiLanguageDirection
91612
- });
91613
- }
91614
- /**
91615
- * Creates a new tile for the grid.
91616
- *
91617
- * @param character A human-readable character displayed as the label (e.g. "ε").
91618
- * @param name The name of the character (e.g. "greek small letter epsilon").
91619
- */
91620
- createTile(character, name) {
91621
- const tile = new ButtonView(this.locale);
91622
- tile.set({
91623
- label: character,
91624
- withText: true,
91625
- class: "ck-character-grid__tile"
91626
- });
91627
- tile.extendTemplate({
91628
- attributes: {
91629
- title: name
91630
- },
91631
- on: {
91632
- mouseover: tile.bindTemplate.to("mouseover"),
91633
- focus: tile.bindTemplate.to("focus")
91634
- }
91635
- });
91636
- tile.on("mouseover", () => {
91637
- this.fire("tileHover", {
91638
- name,
91639
- character
91640
- });
91641
- });
91642
- tile.on("focus", () => {
91643
- this.fire("tileFocus", {
91644
- name,
91645
- character
91646
- });
91647
- });
91648
- tile.on("execute", () => {
91649
- this.fire("execute", {
91650
- name,
91651
- character
91652
- });
91653
- });
91654
- return tile;
91655
- }
91656
- /**
91657
- * @inheritDoc
91658
- */
91659
- render() {
91660
- super.render();
91661
- for (const item of this.tiles) {
91662
- this.focusTracker.add(item.element);
91663
- }
91664
- this.tiles.on("change", (eventInfo, { added, removed }) => {
91665
- if (added.length > 0) {
91666
- for (const item of added) {
91667
- this.focusTracker.add(item.element);
91668
- }
91669
- }
91670
- if (removed.length > 0) {
91671
- for (const item of removed) {
91672
- this.focusTracker.remove(item.element);
91673
- }
91674
- }
91675
- });
91676
- this.keystrokes.listenTo(this.element);
91677
- }
91678
- /**
91679
- * @inheritDoc
91680
- */
91681
- destroy() {
91682
- super.destroy();
91683
- this.keystrokes.destroy();
91684
- }
91685
- /**
91686
- * Focuses the first focusable in {@link ~CharacterGridView#tiles}.
91687
- */
91688
- focus() {
91689
- this.tiles.first.focus();
91690
- }
91691
- };
91692
- var CharacterInfoView = class extends View {
91693
- constructor(locale) {
91694
- super(locale);
91695
- const bind = this.bindTemplate;
91696
- this.set("character", null);
91697
- this.set("name", null);
91698
- this.bind("code").to(this, "character", characterToUnicodeString);
91699
- this.setTemplate({
91700
- tag: "div",
91701
- children: [
91702
- {
91703
- tag: "span",
91704
- attributes: {
91705
- class: [
91706
- "ck-character-info__name"
91707
- ]
91708
- },
91709
- children: [
91710
- {
91711
- // Note: ZWSP to prevent vertical collapsing.
91712
- text: bind.to("name", (name) => name ? name : "\u200B")
91713
- }
91714
- ]
91715
- },
91716
- {
91717
- tag: "span",
91718
- attributes: {
91719
- class: [
91720
- "ck-character-info__code"
91721
- ]
91722
- },
91723
- children: [
91724
- {
91725
- text: bind.to("code")
91726
- }
91727
- ]
91728
- }
91729
- ],
91730
- attributes: {
91731
- class: [
91732
- "ck",
91733
- "ck-character-info"
91734
- ]
91735
- }
91736
- });
91737
- }
91738
- };
91739
- function characterToUnicodeString(character) {
91740
- if (character === null) {
91741
- return "";
91742
- }
91743
- const hexCode = character.codePointAt(0).toString(16);
91744
- return "U+" + ("0000" + hexCode).slice(-4);
91745
- }
91746
- var SpecialCharactersView = class extends View {
91747
- /**
91748
- * A collection of the focusable children of the view.
91749
- */
91750
- items;
91751
- /**
91752
- * Tracks information about the DOM focus in the view.
91753
- */
91754
- focusTracker;
91755
- /**
91756
- * An instance of the {@link module:utils/keystrokehandler~KeystrokeHandler}.
91757
- */
91758
- keystrokes;
91759
- /**
91760
- * Helps cycling over focusable {@link #items} in the view.
91761
- */
91762
- _focusCycler;
91763
- /**
91764
- * An instance of the `SpecialCharactersCategoriesView`.
91765
- */
91766
- categoriesView;
91767
- /**
91768
- * An instance of the `CharacterGridView`.
91769
- */
91770
- gridView;
91771
- /**
91772
- * An instance of the `CharacterInfoView`.
91773
- */
91774
- infoView;
91775
- /**
91776
- * Creates an instance of the `SpecialCharactersView`.
91777
- */
91778
- constructor(locale, categoriesView, gridView, infoView) {
91779
- super(locale);
91780
- this.categoriesView = categoriesView;
91781
- this.gridView = gridView;
91782
- this.infoView = infoView;
91783
- this.items = this.createCollection();
91784
- this.focusTracker = new FocusTracker();
91785
- this.keystrokes = new KeystrokeHandler();
91786
- this._focusCycler = new FocusCycler({
91787
- focusables: this.items,
91788
- focusTracker: this.focusTracker,
91789
- keystrokeHandler: this.keystrokes,
91790
- actions: {
91791
- focusPrevious: "shift + tab",
91792
- focusNext: "tab"
91793
- }
91794
- });
91795
- this.setTemplate({
91796
- tag: "div",
91797
- children: [
91798
- this.categoriesView,
91799
- this.gridView,
91800
- this.infoView
91801
- ],
91802
- attributes: {
91803
- // Avoid focus loss when the user clicks the area of the grid that is not a button.
91804
- // https://github.com/ckeditor/ckeditor5/pull/12319#issuecomment-1231779819
91805
- tabindex: "-1"
91806
- }
91807
- });
91808
- this.items.add(this.categoriesView);
91809
- this.items.add(this.gridView);
91810
- }
91811
- /**
91812
- * @inheritDoc
91813
- */
91814
- render() {
91815
- super.render();
91816
- this.focusTracker.add(this.categoriesView.element);
91817
- this.focusTracker.add(this.gridView.element);
91818
- this.keystrokes.listenTo(this.element);
91819
- }
91820
- /**
91821
- * @inheritDoc
91822
- */
91823
- destroy() {
91824
- super.destroy();
91825
- this.focusTracker.destroy();
91826
- this.keystrokes.destroy();
91827
- }
91828
- /**
91829
- * Focuses the first focusable in {@link #items}.
91830
- */
91831
- focus() {
91832
- this._focusCycler.focusFirst();
91833
- }
91834
- };
91835
- var SpecialCharactersCategoriesView = class extends View {
91836
- _groupNames;
91837
- _dropdownView;
91838
- /**
91839
- * Creates an instance of the {@link module:special-characters/ui/specialcharacterscategoriesview~SpecialCharactersCategoriesView}
91840
- * class.
91841
- *
91842
- * @param locale The localization services instance.
91843
- * @param groupNames The names of the character groups.
91844
- */
91845
- constructor(locale, groupNames) {
91846
- super(locale);
91847
- this.set("currentGroupName", Array.from(groupNames.entries())[0][0]);
91848
- this._groupNames = groupNames;
91849
- this._dropdownView = new LabeledFieldView(locale, createLabeledDropdown);
91850
- this.setTemplate({
91851
- tag: "div",
91852
- attributes: {
91853
- class: [
91854
- "ck",
91855
- "ck-character-categories"
91856
- ]
91857
- },
91858
- children: [
91859
- this._dropdownView
91860
- ]
91861
- });
91862
- }
91863
- /**
91864
- * @inheritDoc
91865
- */
91866
- render() {
91867
- super.render();
91868
- this._setupDropdown();
91869
- }
91870
- /**
91871
- * @inheritDoc
91872
- */
91873
- focus() {
91874
- this._dropdownView.focus();
91875
- }
91876
- /**
91877
- * Creates dropdown item list, sets up bindings and fills properties.
91878
- */
91879
- _setupDropdown() {
91880
- const items = new Collection();
91881
- for (const [name, label] of this._groupNames) {
91882
- const item = {
91883
- type: "button",
91884
- model: new UIModel({
91885
- name,
91886
- label,
91887
- role: "menuitemradio",
91888
- withText: true
91889
- })
91890
- };
91891
- item.model.bind("isOn").to(this, "currentGroupName", (value) => {
91892
- return value === name;
91893
- });
91894
- items.add(item);
91895
- }
91896
- const t = this.locale.t;
91897
- const accessibleLabel = t("Category");
91898
- this._dropdownView.set({
91899
- label: accessibleLabel,
91900
- isEmpty: false
91901
- });
91902
- this._dropdownView.fieldView.panelPosition = this.locale.uiLanguageDirection === "rtl" ? "se" : "sw";
91903
- this._dropdownView.fieldView.buttonView.set({
91904
- withText: true,
91905
- tooltip: accessibleLabel,
91906
- ariaLabel: accessibleLabel,
91907
- ariaLabelledBy: void 0,
91908
- isOn: false
91909
- });
91910
- this._dropdownView.fieldView.buttonView.bind("label").to(this, "currentGroupName", (value) => this._groupNames.get(value));
91911
- this._dropdownView.fieldView.on("execute", ({ source: source2 }) => {
91912
- this.currentGroupName = source2.name;
91913
- });
91914
- addListToDropdown(this._dropdownView.fieldView, items, {
91915
- ariaLabel: accessibleLabel,
91916
- role: "menu"
91917
- });
91918
- }
91919
- };
91920
- var ALL_SPECIAL_CHARACTERS_GROUP = "All";
91921
- var SpecialCharacters = class extends Plugin {
91922
- /**
91923
- * Registered characters. A pair of a character name and its symbol.
91924
- */
91925
- _characters;
91926
- /**
91927
- * Registered groups. Each group contains a displayed label and a collection with symbol names.
91928
- */
91929
- _groups;
91930
- /**
91931
- * A label describing the "All" special characters category.
91932
- */
91933
- _allSpecialCharactersGroupLabel;
91934
- /**
91935
- * @inheritDoc
91936
- */
91937
- static get requires() {
91938
- return [
91939
- Typing,
91940
- Dialog
91941
- ];
91942
- }
91943
- /**
91944
- * @inheritDoc
91945
- */
91946
- static get pluginName() {
91947
- return "SpecialCharacters";
91948
- }
91949
- /**
91950
- * @inheritDoc
91951
- */
91952
- static get isOfficialPlugin() {
91953
- return true;
91954
- }
91955
- /**
91956
- * @inheritDoc
91957
- */
91958
- constructor(editor) {
91959
- super(editor);
91960
- const t = editor.t;
91961
- this._characters = /* @__PURE__ */ new Map();
91962
- this._groups = /* @__PURE__ */ new Map();
91963
- this._allSpecialCharactersGroupLabel = t("All");
91964
- }
91965
- /**
91966
- * @inheritDoc
91967
- */
91968
- init() {
91969
- const editor = this.editor;
91970
- editor.ui.componentFactory.add("specialCharacters", () => {
91971
- const button = this._createDialogButton(ButtonView);
91972
- button.set({
91973
- tooltip: true
91974
- });
91975
- return button;
91976
- });
91977
- editor.ui.componentFactory.add("menuBar:specialCharacters", () => {
91978
- return this._createDialogButton(MenuBarMenuListItemButtonView);
91979
- });
91980
- }
91981
- /**
91982
- * Adds a collection of special characters to the specified group. The title of a special character must be unique.
91983
- *
91984
- * **Note:** The "All" category name is reserved by the plugin and cannot be used as a new name for a special
91985
- * characters category.
91986
- */
91987
- addItems(groupName, items, options = {
91988
- label: groupName
91989
- }) {
91990
- if (groupName === ALL_SPECIAL_CHARACTERS_GROUP) {
91991
- throw new CKEditorError("special-character-invalid-group-name", null);
91992
- }
91993
- const group = this._getGroup(groupName, options.label);
91994
- for (const item of items) {
91995
- group.items.add(item.title);
91996
- this._characters.set(item.title, item.character);
91997
- }
91998
- }
91999
- /**
92000
- * Returns special character groups in an order determined based on configuration and registration sequence.
92001
- */
92002
- getGroups() {
92003
- const groups = Array.from(this._groups.keys());
92004
- const order = this.editor.config.get("specialCharacters.order") || [];
92005
- const invalidGroup = order.find((item) => !groups.includes(item));
92006
- if (invalidGroup) {
92007
- throw new CKEditorError("special-character-invalid-order-group-name", null, {
92008
- invalidGroup
92009
- });
92010
- }
92011
- return /* @__PURE__ */ new Set([
92012
- ...order,
92013
- ...groups
92014
- ]);
92015
- }
92016
- /**
92017
- * Returns a collection of special characters symbol names (titles).
92018
- */
92019
- getCharactersForGroup(groupName) {
92020
- if (groupName === ALL_SPECIAL_CHARACTERS_GROUP) {
92021
- return new Set(this._characters.keys());
92022
- }
92023
- const group = this._groups.get(groupName);
92024
- if (group) {
92025
- return group.items;
92026
- }
92027
- }
92028
- /**
92029
- * Returns the symbol of a special character for the specified name. If the special character could not be found, `undefined`
92030
- * is returned.
92031
- *
92032
- * @param title The title of a special character.
92033
- */
92034
- getCharacter(title) {
92035
- return this._characters.get(title);
92036
- }
92037
- /**
92038
- * Returns a group of special characters. If the group with the specified name does not exist, it will be created.
92039
- *
92040
- * @param groupName The name of the group to create.
92041
- * @param label The label describing the new group.
92042
- */
92043
- _getGroup(groupName, label) {
92044
- if (!this._groups.has(groupName)) {
92045
- this._groups.set(groupName, {
92046
- items: /* @__PURE__ */ new Set(),
92047
- label
92048
- });
92049
- }
92050
- return this._groups.get(groupName);
92051
- }
92052
- /**
92053
- * Updates the symbol grid depending on the currently selected character group.
92054
- */
92055
- _updateGrid(currentGroupName, gridView) {
92056
- gridView.tiles.clear();
92057
- const characterTitles = this.getCharactersForGroup(currentGroupName);
92058
- for (const title of characterTitles) {
92059
- const character = this.getCharacter(title);
92060
- gridView.tiles.add(gridView.createTile(character, title));
92061
- }
92062
- }
92063
- /**
92064
- * Initializes the dropdown, used for lazy loading.
92065
- *
92066
- * @returns An object with `categoriesView`, `gridView` and `infoView` properties, containing UI parts.
92067
- */
92068
- _createDropdownPanelContent(locale) {
92069
- const groupEntries = Array.from(this.getGroups()).map((name) => [
92070
- name,
92071
- this._groups.get(name).label
92072
- ]);
92073
- const specialCharsGroups = new Map([
92074
- // Add a special group that shows all available special characters.
92075
- [
92076
- ALL_SPECIAL_CHARACTERS_GROUP,
92077
- this._allSpecialCharactersGroupLabel
92078
- ],
92079
- ...groupEntries
92080
- ]);
92081
- const categoriesView = new SpecialCharactersCategoriesView(locale, specialCharsGroups);
92082
- const gridView = new CharacterGridView(locale);
92083
- const infoView = new CharacterInfoView(locale);
92084
- gridView.on("tileHover", (evt, data) => {
92085
- infoView.set(data);
92086
- });
92087
- gridView.on("tileFocus", (evt, data) => {
92088
- infoView.set(data);
92089
- });
92090
- categoriesView.on("change:currentGroupName", (evt, propertyName, newValue) => {
92091
- this._updateGrid(newValue, gridView);
92092
- });
92093
- this._updateGrid(categoriesView.currentGroupName, gridView);
92094
- return {
92095
- categoriesView,
92096
- gridView,
92097
- infoView
92098
- };
92099
- }
92100
- /**
92101
- * Creates a button for toolbar and menu bar that will show special characters dialog.
92102
- */
92103
- _createDialogButton(ButtonClass) {
92104
- const editor = this.editor;
92105
- const locale = editor.locale;
92106
- const buttonView = new ButtonClass(editor.locale);
92107
- const command = editor.commands.get("insertText");
92108
- const t = locale.t;
92109
- const dialogPlugin = this.editor.plugins.get("Dialog");
92110
- buttonView.set({
92111
- label: t("Special characters"),
92112
- icon: specialCharacters,
92113
- isToggleable: true
92114
- });
92115
- buttonView.bind("isOn").to(dialogPlugin, "id", (id) => id === "specialCharacters");
92116
- buttonView.bind("isEnabled").to(command, "isEnabled");
92117
- buttonView.on("execute", () => {
92118
- if (dialogPlugin.id === "specialCharacters") {
92119
- dialogPlugin.hide();
92120
- return;
92121
- }
92122
- this._showDialog();
92123
- });
92124
- return buttonView;
92125
- }
92126
- _showDialog() {
92127
- const editor = this.editor;
92128
- const dialog = editor.plugins.get("Dialog");
92129
- const locale = editor.locale;
92130
- const t = locale.t;
92131
- const { categoriesView, gridView, infoView } = this._createDropdownPanelContent(locale);
92132
- const content = new SpecialCharactersView(locale, categoriesView, gridView, infoView);
92133
- gridView.on("execute", (evt, data) => {
92134
- editor.execute("insertText", {
92135
- text: data.character
92136
- });
92137
- });
92138
- dialog.show({
92139
- id: "specialCharacters",
92140
- title: t("Special characters"),
92141
- className: "ck-special-characters",
92142
- content,
92143
- position: DialogViewPosition.EDITOR_TOP_SIDE
92144
- });
92145
- }
92146
- };
92147
- var SpecialCharactersArrows = class extends Plugin {
92148
- /**
92149
- * @inheritDoc
92150
- */
92151
- static get pluginName() {
92152
- return "SpecialCharactersArrows";
92153
- }
92154
- /**
92155
- * @inheritDoc
92156
- */
92157
- static get isOfficialPlugin() {
92158
- return true;
92159
- }
92160
- /**
92161
- * @inheritDoc
92162
- */
92163
- init() {
92164
- const editor = this.editor;
92165
- const t = editor.t;
92166
- const plugin = editor.plugins.get("SpecialCharacters");
92167
- plugin.addItems("Arrows", [
92168
- {
92169
- title: t("leftwards simple arrow"),
92170
- character: "\u2190"
92171
- },
92172
- {
92173
- title: t("rightwards simple arrow"),
92174
- character: "\u2192"
92175
- },
92176
- {
92177
- title: t("upwards simple arrow"),
92178
- character: "\u2191"
92179
- },
92180
- {
92181
- title: t("downwards simple arrow"),
92182
- character: "\u2193"
92183
- },
92184
- {
92185
- title: t("leftwards double arrow"),
92186
- character: "\u21D0"
92187
- },
92188
- {
92189
- title: t("rightwards double arrow"),
92190
- character: "\u21D2"
92191
- },
92192
- {
92193
- title: t("upwards double arrow"),
92194
- character: "\u21D1"
92195
- },
92196
- {
92197
- title: t("downwards double arrow"),
92198
- character: "\u21D3"
92199
- },
92200
- {
92201
- title: t("leftwards dashed arrow"),
92202
- character: "\u21E0"
92203
- },
92204
- {
92205
- title: t("rightwards dashed arrow"),
92206
- character: "\u21E2"
92207
- },
92208
- {
92209
- title: t("upwards dashed arrow"),
92210
- character: "\u21E1"
92211
- },
92212
- {
92213
- title: t("downwards dashed arrow"),
92214
- character: "\u21E3"
92215
- },
92216
- {
92217
- title: t("leftwards arrow to bar"),
92218
- character: "\u21E4"
92219
- },
92220
- {
92221
- title: t("rightwards arrow to bar"),
92222
- character: "\u21E5"
92223
- },
92224
- {
92225
- title: t("upwards arrow to bar"),
92226
- character: "\u2912"
92227
- },
92228
- {
92229
- title: t("downwards arrow to bar"),
92230
- character: "\u2913"
92231
- },
92232
- {
92233
- title: t("up down arrow with base"),
92234
- character: "\u21A8"
92235
- },
92236
- {
92237
- title: t("back with leftwards arrow above"),
92238
- character: "\u{1F519}"
92239
- },
92240
- {
92241
- title: t("end with leftwards arrow above"),
92242
- character: "\u{1F51A}"
92243
- },
92244
- {
92245
- title: t("on with exclamation mark with left right arrow above"),
92246
- character: "\u{1F51B}"
92247
- },
92248
- {
92249
- title: t("soon with rightwards arrow above"),
92250
- character: "\u{1F51C}"
92251
- },
92252
- {
92253
- title: t("top with upwards arrow above"),
92254
- character: "\u{1F51D}"
92255
- }
92256
- ], {
92257
- label: t("Arrows")
92258
- });
92259
- }
92260
- };
92261
- var SpecialCharactersText = class extends Plugin {
92262
- /**
92263
- * @inheritDoc
92264
- */
92265
- static get pluginName() {
92266
- return "SpecialCharactersText";
92267
- }
92268
- /**
92269
- * @inheritDoc
92270
- */
92271
- static get isOfficialPlugin() {
92272
- return true;
92273
- }
92274
- /**
92275
- * @inheritDoc
92276
- */
92277
- init() {
92278
- const editor = this.editor;
92279
- const t = editor.t;
92280
- const plugin = editor.plugins.get("SpecialCharacters");
92281
- plugin.addItems("Text", [
92282
- {
92283
- character: "\u2039",
92284
- title: t("Single left-pointing angle quotation mark")
92285
- },
92286
- {
92287
- character: "\u203A",
92288
- title: t("Single right-pointing angle quotation mark")
92289
- },
92290
- {
92291
- character: "\xAB",
92292
- title: t("Left-pointing double angle quotation mark")
92293
- },
92294
- {
92295
- character: "\xBB",
92296
- title: t("Right-pointing double angle quotation mark")
92297
- },
92298
- {
92299
- character: "\u2018",
92300
- title: t("Left single quotation mark")
92301
- },
92302
- {
92303
- character: "\u2019",
92304
- title: t("Right single quotation mark")
92305
- },
92306
- {
92307
- character: "\u201C",
92308
- title: t("Left double quotation mark")
92309
- },
92310
- {
92311
- character: "\u201D",
92312
- title: t("Right double quotation mark")
92313
- },
92314
- {
92315
- character: "\u201A",
92316
- title: t("Single low-9 quotation mark")
92317
- },
92318
- {
92319
- character: "\u201E",
92320
- title: t("Double low-9 quotation mark")
92321
- },
92322
- {
92323
- character: "\xA1",
92324
- title: t("Inverted exclamation mark")
92325
- },
92326
- {
92327
- character: "\xBF",
92328
- title: t("Inverted question mark")
92329
- },
92330
- {
92331
- character: "\u2025",
92332
- title: t("Two dot leader")
92333
- },
92334
- {
92335
- character: "\u2026",
92336
- title: t("Horizontal ellipsis")
92337
- },
92338
- {
92339
- character: "\u2021",
92340
- title: t("Double dagger")
92341
- },
92342
- {
92343
- character: "\u2030",
92344
- title: t("Per mille sign")
92345
- },
92346
- {
92347
- character: "\u2031",
92348
- title: t("Per ten thousand sign")
92349
- },
92350
- {
92351
- character: "\u203C",
92352
- title: t("Double exclamation mark")
92353
- },
92354
- {
92355
- character: "\u2048",
92356
- title: t("Question exclamation mark")
92357
- },
92358
- {
92359
- character: "\u2049",
92360
- title: t("Exclamation question mark")
92361
- },
92362
- {
92363
- character: "\u2047",
92364
- title: t("Double question mark")
92365
- },
92366
- {
92367
- character: "\xA9",
92368
- title: t("Copyright sign")
92369
- },
92370
- {
92371
- character: "\xAE",
92372
- title: t("Registered sign")
92373
- },
92374
- {
92375
- character: "\u2122",
92376
- title: t("Trade mark sign")
92377
- },
92378
- {
92379
- character: "\xA7",
92380
- title: t("Section sign")
92381
- },
92382
- {
92383
- character: "\xB6",
92384
- title: t("Paragraph sign")
92385
- },
92386
- {
92387
- character: "\u204B",
92388
- title: t("Reversed paragraph sign")
92389
- }
92390
- ], {
92391
- label: t("Text")
92392
- });
92393
- }
92394
- };
92395
- var SpecialCharactersMathematical = class extends Plugin {
92396
- /**
92397
- * @inheritDoc
92398
- */
92399
- static get pluginName() {
92400
- return "SpecialCharactersMathematical";
92401
- }
92402
- /**
92403
- * @inheritDoc
92404
- */
92405
- static get isOfficialPlugin() {
92406
- return true;
92407
- }
92408
- /**
92409
- * @inheritDoc
92410
- */
92411
- init() {
92412
- const editor = this.editor;
92413
- const t = editor.t;
92414
- const plugin = editor.plugins.get("SpecialCharacters");
92415
- plugin.addItems("Mathematical", [
92416
- {
92417
- character: "<",
92418
- title: t("Less-than sign")
92419
- },
92420
- {
92421
- character: ">",
92422
- title: t("Greater-than sign")
92423
- },
92424
- {
92425
- character: "\u2264",
92426
- title: t("Less-than or equal to")
92427
- },
92428
- {
92429
- character: "\u2265",
92430
- title: t("Greater-than or equal to")
92431
- },
92432
- {
92433
- character: "\u2013",
92434
- title: t("En dash")
92435
- },
92436
- {
92437
- character: "\u2014",
92438
- title: t("Em dash")
92439
- },
92440
- {
92441
- character: "\xAF",
92442
- title: t("Macron")
92443
- },
92444
- {
92445
- character: "\u203E",
92446
- title: t("Overline")
92447
- },
92448
- {
92449
- character: "\xB0",
92450
- title: t("Degree sign")
92451
- },
92452
- {
92453
- character: "\u2212",
92454
- title: t("Minus sign")
92455
- },
92456
- {
92457
- character: "\xB1",
92458
- title: t("Plus-minus sign")
92459
- },
92460
- {
92461
- character: "\xF7",
92462
- title: t("Division sign")
92463
- },
92464
- {
92465
- character: "\u2044",
92466
- title: t("Fraction slash")
92467
- },
92468
- {
92469
- character: "\xD7",
92470
- title: t("Multiplication sign")
92471
- },
92472
- {
92473
- character: "\u0192",
92474
- title: t("Latin small letter f with hook")
92475
- },
92476
- {
92477
- character: "\u222B",
92478
- title: t("Integral")
92479
- },
92480
- {
92481
- character: "\u2211",
92482
- title: t("N-ary summation")
92483
- },
92484
- {
92485
- character: "\u221E",
92486
- title: t("Infinity")
92487
- },
92488
- {
92489
- character: "\u221A",
92490
- title: t("Square root")
92491
- },
92492
- {
92493
- character: "\u223C",
92494
- title: t("Tilde operator")
92495
- },
92496
- {
92497
- character: "\u2245",
92498
- title: t("Approximately equal to")
92499
- },
92500
- {
92501
- character: "\u2248",
92502
- title: t("Almost equal to")
92503
- },
92504
- {
92505
- character: "\u2260",
92506
- title: t("Not equal to")
92507
- },
92508
- {
92509
- character: "\u2261",
92510
- title: t("Identical to")
92511
- },
92512
- {
92513
- character: "\u2208",
92514
- title: t("Element of")
92515
- },
92516
- {
92517
- character: "\u2209",
92518
- title: t("Not an element of")
92519
- },
92520
- {
92521
- character: "\u220B",
92522
- title: t("Contains as member")
92523
- },
92524
- {
92525
- character: "\u220F",
92526
- title: t("N-ary product")
92527
- },
92528
- {
92529
- character: "\u2227",
92530
- title: t("Logical and")
92531
- },
92532
- {
92533
- character: "\u2228",
92534
- title: t("Logical or")
92535
- },
92536
- {
92537
- character: "\xAC",
92538
- title: t("Not sign")
92539
- },
92540
- {
92541
- character: "\u2229",
92542
- title: t("Intersection")
92543
- },
92544
- {
92545
- character: "\u222A",
92546
- title: t("Union")
92547
- },
92548
- {
92549
- character: "\u2202",
92550
- title: t("Partial differential")
92551
- },
92552
- {
92553
- character: "\u2200",
92554
- title: t("For all")
92555
- },
92556
- {
92557
- character: "\u2203",
92558
- title: t("There exists")
92559
- },
92560
- {
92561
- character: "\u2205",
92562
- title: t("Empty set")
92563
- },
92564
- {
92565
- character: "\u2207",
92566
- title: t("Nabla")
92567
- },
92568
- {
92569
- character: "\u2217",
92570
- title: t("Asterisk operator")
92571
- },
92572
- {
92573
- character: "\u221D",
92574
- title: t("Proportional to")
92575
- },
92576
- {
92577
- character: "\u2220",
92578
- title: t("Angle")
92579
- },
92580
- {
92581
- character: "\xBC",
92582
- title: t("Vulgar fraction one quarter")
92583
- },
92584
- {
92585
- character: "\xBD",
92586
- title: t("Vulgar fraction one half")
92587
- },
92588
- {
92589
- character: "\xBE",
92590
- title: t("Vulgar fraction three quarters")
92591
- }
92592
- ], {
92593
- label: t("Mathematical")
92594
- });
92595
- }
92596
- };
92597
- var SpecialCharactersLatin = class extends Plugin {
92598
- /**
92599
- * @inheritDoc
92600
- */
92601
- static get pluginName() {
92602
- return "SpecialCharactersLatin";
92603
- }
92604
- /**
92605
- * @inheritDoc
92606
- */
92607
- static get isOfficialPlugin() {
92608
- return true;
92609
- }
92610
- /**
92611
- * @inheritDoc
92612
- */
92613
- init() {
92614
- const editor = this.editor;
92615
- const t = editor.t;
92616
- const plugin = editor.plugins.get("SpecialCharacters");
92617
- plugin.addItems("Latin", [
92618
- {
92619
- character: "\u0100",
92620
- title: t("Latin capital letter a with macron")
92621
- },
92622
- {
92623
- character: "\u0101",
92624
- title: t("Latin small letter a with macron")
92625
- },
92626
- {
92627
- character: "\u0102",
92628
- title: t("Latin capital letter a with breve")
92629
- },
92630
- {
92631
- character: "\u0103",
92632
- title: t("Latin small letter a with breve")
92633
- },
92634
- {
92635
- character: "\u0104",
92636
- title: t("Latin capital letter a with ogonek")
92637
- },
92638
- {
92639
- character: "\u0105",
92640
- title: t("Latin small letter a with ogonek")
92641
- },
92642
- {
92643
- character: "\u0106",
92644
- title: t("Latin capital letter c with acute")
92645
- },
92646
- {
92647
- character: "\u0107",
92648
- title: t("Latin small letter c with acute")
92649
- },
92650
- {
92651
- character: "\u0108",
92652
- title: t("Latin capital letter c with circumflex")
92653
- },
92654
- {
92655
- character: "\u0109",
92656
- title: t("Latin small letter c with circumflex")
92657
- },
92658
- {
92659
- character: "\u010A",
92660
- title: t("Latin capital letter c with dot above")
92661
- },
92662
- {
92663
- character: "\u010B",
92664
- title: t("Latin small letter c with dot above")
92665
- },
92666
- {
92667
- character: "\u010C",
92668
- title: t("Latin capital letter c with caron")
92669
- },
92670
- {
92671
- character: "\u010D",
92672
- title: t("Latin small letter c with caron")
92673
- },
92674
- {
92675
- character: "\u010E",
92676
- title: t("Latin capital letter d with caron")
92677
- },
92678
- {
92679
- character: "\u010F",
92680
- title: t("Latin small letter d with caron")
92681
- },
92682
- {
92683
- character: "\u0110",
92684
- title: t("Latin capital letter d with stroke")
92685
- },
92686
- {
92687
- character: "\u0111",
92688
- title: t("Latin small letter d with stroke")
92689
- },
92690
- {
92691
- character: "\u0112",
92692
- title: t("Latin capital letter e with macron")
92693
- },
92694
- {
92695
- character: "\u0113",
92696
- title: t("Latin small letter e with macron")
92697
- },
92698
- {
92699
- character: "\u0114",
92700
- title: t("Latin capital letter e with breve")
92701
- },
92702
- {
92703
- character: "\u0115",
92704
- title: t("Latin small letter e with breve")
92705
- },
92706
- {
92707
- character: "\u0116",
92708
- title: t("Latin capital letter e with dot above")
92709
- },
92710
- {
92711
- character: "\u0117",
92712
- title: t("Latin small letter e with dot above")
92713
- },
92714
- {
92715
- character: "\u0118",
92716
- title: t("Latin capital letter e with ogonek")
92717
- },
92718
- {
92719
- character: "\u0119",
92720
- title: t("Latin small letter e with ogonek")
92721
- },
92722
- {
92723
- character: "\u011A",
92724
- title: t("Latin capital letter e with caron")
92725
- },
92726
- {
92727
- character: "\u011B",
92728
- title: t("Latin small letter e with caron")
92729
- },
92730
- {
92731
- character: "\u011C",
92732
- title: t("Latin capital letter g with circumflex")
92733
- },
92734
- {
92735
- character: "\u011D",
92736
- title: t("Latin small letter g with circumflex")
92737
- },
92738
- {
92739
- character: "\u011E",
92740
- title: t("Latin capital letter g with breve")
92741
- },
92742
- {
92743
- character: "\u011F",
92744
- title: t("Latin small letter g with breve")
92745
- },
92746
- {
92747
- character: "\u0120",
92748
- title: t("Latin capital letter g with dot above")
92749
- },
92750
- {
92751
- character: "\u0121",
92752
- title: t("Latin small letter g with dot above")
92753
- },
92754
- {
92755
- character: "\u0122",
92756
- title: t("Latin capital letter g with cedilla")
92757
- },
92758
- {
92759
- character: "\u0123",
92760
- title: t("Latin small letter g with cedilla")
92761
- },
92762
- {
92763
- character: "\u0124",
92764
- title: t("Latin capital letter h with circumflex")
92765
- },
92766
- {
92767
- character: "\u0125",
92768
- title: t("Latin small letter h with circumflex")
92769
- },
92770
- {
92771
- character: "\u0126",
92772
- title: t("Latin capital letter h with stroke")
92773
- },
92774
- {
92775
- character: "\u0127",
92776
- title: t("Latin small letter h with stroke")
92777
- },
92778
- {
92779
- character: "\u0128",
92780
- title: t("Latin capital letter i with tilde")
92781
- },
92782
- {
92783
- character: "\u0129",
92784
- title: t("Latin small letter i with tilde")
92785
- },
92786
- {
92787
- character: "\u012A",
92788
- title: t("Latin capital letter i with macron")
92789
- },
92790
- {
92791
- character: "\u012B",
92792
- title: t("Latin small letter i with macron")
92793
- },
92794
- {
92795
- character: "\u012C",
92796
- title: t("Latin capital letter i with breve")
92797
- },
92798
- {
92799
- character: "\u012D",
92800
- title: t("Latin small letter i with breve")
92801
- },
92802
- {
92803
- character: "\u012E",
92804
- title: t("Latin capital letter i with ogonek")
92805
- },
92806
- {
92807
- character: "\u012F",
92808
- title: t("Latin small letter i with ogonek")
92809
- },
92810
- {
92811
- character: "\u0130",
92812
- title: t("Latin capital letter i with dot above")
92813
- },
92814
- {
92815
- character: "\u0131",
92816
- title: t("Latin small letter dotless i")
92817
- },
92818
- {
92819
- character: "\u0132",
92820
- title: t("Latin capital ligature ij")
92821
- },
92822
- {
92823
- character: "\u0133",
92824
- title: t("Latin small ligature ij")
92825
- },
92826
- {
92827
- character: "\u0134",
92828
- title: t("Latin capital letter j with circumflex")
92829
- },
92830
- {
92831
- character: "\u0135",
92832
- title: t("Latin small letter j with circumflex")
92833
- },
92834
- {
92835
- character: "\u0136",
92836
- title: t("Latin capital letter k with cedilla")
92837
- },
92838
- {
92839
- character: "\u0137",
92840
- title: t("Latin small letter k with cedilla")
92841
- },
92842
- {
92843
- character: "\u0138",
92844
- title: t("Latin small letter kra")
92845
- },
92846
- {
92847
- character: "\u0139",
92848
- title: t("Latin capital letter l with acute")
92849
- },
92850
- {
92851
- character: "\u013A",
92852
- title: t("Latin small letter l with acute")
92853
- },
92854
- {
92855
- character: "\u013B",
92856
- title: t("Latin capital letter l with cedilla")
92857
- },
92858
- {
92859
- character: "\u013C",
92860
- title: t("Latin small letter l with cedilla")
92861
- },
92862
- {
92863
- character: "\u013D",
92864
- title: t("Latin capital letter l with caron")
92865
- },
92866
- {
92867
- character: "\u013E",
92868
- title: t("Latin small letter l with caron")
92869
- },
92870
- {
92871
- character: "\u013F",
92872
- title: t("Latin capital letter l with middle dot")
92873
- },
92874
- {
92875
- character: "\u0140",
92876
- title: t("Latin small letter l with middle dot")
92877
- },
92878
- {
92879
- character: "\u0141",
92880
- title: t("Latin capital letter l with stroke")
92881
- },
92882
- {
92883
- character: "\u0142",
92884
- title: t("Latin small letter l with stroke")
92885
- },
92886
- {
92887
- character: "\u0143",
92888
- title: t("Latin capital letter n with acute")
92889
- },
92890
- {
92891
- character: "\u0144",
92892
- title: t("Latin small letter n with acute")
92893
- },
92894
- {
92895
- character: "\u0145",
92896
- title: t("Latin capital letter n with cedilla")
92897
- },
92898
- {
92899
- character: "\u0146",
92900
- title: t("Latin small letter n with cedilla")
92901
- },
92902
- {
92903
- character: "\u0147",
92904
- title: t("Latin capital letter n with caron")
92905
- },
92906
- {
92907
- character: "\u0148",
92908
- title: t("Latin small letter n with caron")
92909
- },
92910
- {
92911
- character: "\u0149",
92912
- title: t("Latin small letter n preceded by apostrophe")
92913
- },
92914
- {
92915
- character: "\u014A",
92916
- title: t("Latin capital letter eng")
92917
- },
92918
- {
92919
- character: "\u014B",
92920
- title: t("Latin small letter eng")
92921
- },
92922
- {
92923
- character: "\u014C",
92924
- title: t("Latin capital letter o with macron")
92925
- },
92926
- {
92927
- character: "\u014D",
92928
- title: t("Latin small letter o with macron")
92929
- },
92930
- {
92931
- character: "\u014E",
92932
- title: t("Latin capital letter o with breve")
92933
- },
92934
- {
92935
- character: "\u014F",
92936
- title: t("Latin small letter o with breve")
92937
- },
92938
- {
92939
- character: "\u0150",
92940
- title: t("Latin capital letter o with double acute")
92941
- },
92942
- {
92943
- character: "\u0151",
92944
- title: t("Latin small letter o with double acute")
92945
- },
92946
- {
92947
- character: "\u0152",
92948
- title: t("Latin capital ligature oe")
92949
- },
92950
- {
92951
- character: "\u0153",
92952
- title: t("Latin small ligature oe")
92953
- },
92954
- {
92955
- character: "\u0154",
92956
- title: t("Latin capital letter r with acute")
92957
- },
92958
- {
92959
- character: "\u0155",
92960
- title: t("Latin small letter r with acute")
92961
- },
92962
- {
92963
- character: "\u0156",
92964
- title: t("Latin capital letter r with cedilla")
92965
- },
92966
- {
92967
- character: "\u0157",
92968
- title: t("Latin small letter r with cedilla")
92969
- },
92970
- {
92971
- character: "\u0158",
92972
- title: t("Latin capital letter r with caron")
92973
- },
92974
- {
92975
- character: "\u0159",
92976
- title: t("Latin small letter r with caron")
92977
- },
92978
- {
92979
- character: "\u015A",
92980
- title: t("Latin capital letter s with acute")
92981
- },
92982
- {
92983
- character: "\u015B",
92984
- title: t("Latin small letter s with acute")
92985
- },
92986
- {
92987
- character: "\u015C",
92988
- title: t("Latin capital letter s with circumflex")
92989
- },
92990
- {
92991
- character: "\u015D",
92992
- title: t("Latin small letter s with circumflex")
92993
- },
92994
- {
92995
- character: "\u015E",
92996
- title: t("Latin capital letter s with cedilla")
92997
- },
92998
- {
92999
- character: "\u015F",
93000
- title: t("Latin small letter s with cedilla")
93001
- },
93002
- {
93003
- character: "\u0160",
93004
- title: t("Latin capital letter s with caron")
93005
- },
93006
- {
93007
- character: "\u0161",
93008
- title: t("Latin small letter s with caron")
93009
- },
93010
- {
93011
- character: "\u0162",
93012
- title: t("Latin capital letter t with cedilla")
93013
- },
93014
- {
93015
- character: "\u0163",
93016
- title: t("Latin small letter t with cedilla")
93017
- },
93018
- {
93019
- character: "\u0164",
93020
- title: t("Latin capital letter t with caron")
93021
- },
93022
- {
93023
- character: "\u0165",
93024
- title: t("Latin small letter t with caron")
93025
- },
93026
- {
93027
- character: "\u0166",
93028
- title: t("Latin capital letter t with stroke")
93029
- },
93030
- {
93031
- character: "\u0167",
93032
- title: t("Latin small letter t with stroke")
93033
- },
93034
- {
93035
- character: "\u0168",
93036
- title: t("Latin capital letter u with tilde")
93037
- },
93038
- {
93039
- character: "\u0169",
93040
- title: t("Latin small letter u with tilde")
93041
- },
93042
- {
93043
- character: "\u016A",
93044
- title: t("Latin capital letter u with macron")
93045
- },
93046
- {
93047
- character: "\u016B",
93048
- title: t("Latin small letter u with macron")
93049
- },
93050
- {
93051
- character: "\u016C",
93052
- title: t("Latin capital letter u with breve")
93053
- },
93054
- {
93055
- character: "\u016D",
93056
- title: t("Latin small letter u with breve")
93057
- },
93058
- {
93059
- character: "\u016E",
93060
- title: t("Latin capital letter u with ring above")
93061
- },
93062
- {
93063
- character: "\u016F",
93064
- title: t("Latin small letter u with ring above")
93065
- },
93066
- {
93067
- character: "\u0170",
93068
- title: t("Latin capital letter u with double acute")
93069
- },
93070
- {
93071
- character: "\u0171",
93072
- title: t("Latin small letter u with double acute")
93073
- },
93074
- {
93075
- character: "\u0172",
93076
- title: t("Latin capital letter u with ogonek")
93077
- },
93078
- {
93079
- character: "\u0173",
93080
- title: t("Latin small letter u with ogonek")
93081
- },
93082
- {
93083
- character: "\u0174",
93084
- title: t("Latin capital letter w with circumflex")
93085
- },
93086
- {
93087
- character: "\u0175",
93088
- title: t("Latin small letter w with circumflex")
93089
- },
93090
- {
93091
- character: "\u0176",
93092
- title: t("Latin capital letter y with circumflex")
93093
- },
93094
- {
93095
- character: "\u0177",
93096
- title: t("Latin small letter y with circumflex")
93097
- },
93098
- {
93099
- character: "\u0178",
93100
- title: t("Latin capital letter y with diaeresis")
93101
- },
93102
- {
93103
- character: "\u0179",
93104
- title: t("Latin capital letter z with acute")
93105
- },
93106
- {
93107
- character: "\u017A",
93108
- title: t("Latin small letter z with acute")
93109
- },
93110
- {
93111
- character: "\u017B",
93112
- title: t("Latin capital letter z with dot above")
93113
- },
93114
- {
93115
- character: "\u017C",
93116
- title: t("Latin small letter z with dot above")
93117
- },
93118
- {
93119
- character: "\u017D",
93120
- title: t("Latin capital letter z with caron")
93121
- },
93122
- {
93123
- character: "\u017E",
93124
- title: t("Latin small letter z with caron")
93125
- },
93126
- {
93127
- character: "\u017F",
93128
- title: t("Latin small letter long s")
93129
- }
93130
- ], {
93131
- label: t("Latin")
93132
- });
93133
- }
93134
- };
93135
- var SpecialCharactersCurrency = class extends Plugin {
93136
- /**
93137
- * @inheritDoc
93138
- */
93139
- static get pluginName() {
93140
- return "SpecialCharactersCurrency";
93141
- }
93142
- /**
93143
- * @inheritDoc
93144
- */
93145
- static get isOfficialPlugin() {
93146
- return true;
93147
- }
93148
- /**
93149
- * @inheritDoc
93150
- */
93151
- init() {
93152
- const editor = this.editor;
93153
- const t = editor.t;
93154
- const plugin = editor.plugins.get("SpecialCharacters");
93155
- plugin.addItems("Currency", [
93156
- {
93157
- character: "$",
93158
- title: t("Dollar sign")
93159
- },
93160
- {
93161
- character: "\u20AC",
93162
- title: t("Euro sign")
93163
- },
93164
- {
93165
- character: "\xA5",
93166
- title: t("Yen sign")
93167
- },
93168
- {
93169
- character: "\xA3",
93170
- title: t("Pound sign")
93171
- },
93172
- {
93173
- character: "\xA2",
93174
- title: t("Cent sign")
93175
- },
93176
- {
93177
- character: "\u20A0",
93178
- title: t("Euro-currency sign")
93179
- },
93180
- {
93181
- character: "\u20A1",
93182
- title: t("Colon sign")
93183
- },
93184
- {
93185
- character: "\u20A2",
93186
- title: t("Cruzeiro sign")
93187
- },
93188
- {
93189
- character: "\u20A3",
93190
- title: t("French franc sign")
93191
- },
93192
- {
93193
- character: "\u20A4",
93194
- title: t("Lira sign")
93195
- },
93196
- {
93197
- character: "\xA4",
93198
- title: t("Currency sign")
93199
- },
93200
- {
93201
- character: "\u20BF",
93202
- title: t("Bitcoin sign")
93203
- },
93204
- {
93205
- character: "\u20A5",
93206
- title: t("Mill sign")
93207
- },
93208
- {
93209
- character: "\u20A6",
93210
- title: t("Naira sign")
93211
- },
93212
- {
93213
- character: "\u20A7",
93214
- title: t("Peseta sign")
93215
- },
93216
- {
93217
- character: "\u20A8",
93218
- title: t("Rupee sign")
93219
- },
93220
- {
93221
- character: "\u20A9",
93222
- title: t("Won sign")
93223
- },
93224
- {
93225
- character: "\u20AA",
93226
- title: t("New sheqel sign")
93227
- },
93228
- {
93229
- character: "\u20AB",
93230
- title: t("Dong sign")
93231
- },
93232
- {
93233
- character: "\u20AD",
93234
- title: t("Kip sign")
93235
- },
93236
- {
93237
- character: "\u20AE",
93238
- title: t("Tugrik sign")
93239
- },
93240
- {
93241
- character: "\u20AF",
93242
- title: t("Drachma sign")
93243
- },
93244
- {
93245
- character: "\u20B0",
93246
- title: t("German penny sign")
93247
- },
93248
- {
93249
- character: "\u20B1",
93250
- title: t("Peso sign")
93251
- },
93252
- {
93253
- character: "\u20B2",
93254
- title: t("Guarani sign")
93255
- },
93256
- {
93257
- character: "\u20B3",
93258
- title: t("Austral sign")
93259
- },
93260
- {
93261
- character: "\u20B4",
93262
- title: t("Hryvnia sign")
93263
- },
93264
- {
93265
- character: "\u20B5",
93266
- title: t("Cedi sign")
93267
- },
93268
- {
93269
- character: "\u20B6",
93270
- title: t("Livre tournois sign")
93271
- },
93272
- {
93273
- character: "\u20B7",
93274
- title: t("Spesmilo sign")
93275
- },
93276
- {
93277
- character: "\u20B8",
93278
- title: t("Tenge sign")
93279
- },
93280
- {
93281
- character: "\u20B9",
93282
- title: t("Indian rupee sign")
93283
- },
93284
- {
93285
- character: "\u20BA",
93286
- title: t("Turkish lira sign")
93287
- },
93288
- {
93289
- character: "\u20BB",
93290
- title: t("Nordic mark sign")
93291
- },
93292
- {
93293
- character: "\u20BC",
93294
- title: t("Manat sign")
93295
- },
93296
- {
93297
- character: "\u20BD",
93298
- title: t("Ruble sign")
93299
- }
93300
- ], {
93301
- label: t("Currency")
93302
- });
93303
- }
93304
- };
93305
- var SpecialCharactersEssentials = class extends Plugin {
93306
- /**
93307
- * @inheritDoc
93308
- */
93309
- static get pluginName() {
93310
- return "SpecialCharactersEssentials";
93311
- }
93312
- /**
93313
- * @inheritDoc
93314
- */
93315
- static get isOfficialPlugin() {
93316
- return true;
93317
- }
93318
- /**
93319
- * @inheritDoc
93320
- */
93321
- static get requires() {
93322
- return [
93323
- SpecialCharactersCurrency,
93324
- SpecialCharactersText,
93325
- SpecialCharactersMathematical,
93326
- SpecialCharactersArrows,
93327
- SpecialCharactersLatin
93328
- ];
93329
- }
93330
- };
93331
-
93332
91560
  // node_modules/@ckeditor/ckeditor5-style/dist/index.js
93333
91561
  var StyleGridButtonView = class extends ButtonView {
93334
91562
  /**
@@ -104983,13 +103211,6 @@ Original error: ${originalError.name}: ${originalError.message}` : "";
104983
103211
  ShowBlocks,
104984
103212
  SimpleUploadAdapter,
104985
103213
  SourceEditing,
104986
- SpecialCharacters,
104987
- SpecialCharactersArrows,
104988
- SpecialCharactersCurrency,
104989
- SpecialCharactersEssentials,
104990
- SpecialCharactersLatin,
104991
- SpecialCharactersMathematical,
104992
- SpecialCharactersText,
104993
103214
  Strikethrough,
104994
103215
  Style,
104995
103216
  Subscript,
@@ -105134,6 +103355,12 @@ Original error: ${originalError.name}: ${originalError.message}` : "";
105134
103355
  if (!hiddenInput) {
105135
103356
  return;
105136
103357
  }
103358
+ editor.ui.focusTracker.on("change:isFocused", (evt, name, isFocused) => {
103359
+ if (!isFocused) {
103360
+ editor.plugins.get("SourceEditing").updateEditorData();
103361
+ }
103362
+ ;
103363
+ });
105137
103364
  editor.model.document.on("change:data", () => {
105138
103365
  hiddenInput.value = editor.getData();
105139
103366
  });