@themarioga/grid-editor 6.0.0-beta.2 → 6.0.0-beta.3

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.
@@ -4496,16 +4496,23 @@ $.fn.gridEditor = function( optionsOrMethod ) {
4496
4496
 
4497
4497
  createMoveTool(drawer);
4498
4498
 
4499
- // Which editor edits it, or that none can: a type whose plugin is
4500
- // not loaded is still a block to move and delete, but not to edit
4501
- if (type && TEXTS[type]) {
4502
- createTool(drawer, t('tool.text_info', { editor: textLabel(type) }), 'ge-text-info', 'bi bi-fonts');
4503
- } else if (type) {
4499
+ // That no editor can edit it: a type whose plugin is not loaded is
4500
+ // still a block to move and delete, but not to edit
4501
+ if (type && !TEXTS[type]) {
4504
4502
  createTool(drawer, t('text.no_editor', { type: type }), 'ge-text-info ge-text-missing',
4505
4503
  'bi bi-exclamation-triangle');
4506
4504
  }
4507
4505
 
4508
- addSettingsTool(drawer, block, settings.text_classes);
4506
+ var details = addSettingsTool(drawer, block, settings.text_classes);
4507
+
4508
+ // Which editor edits it, first in its settings: something to
4509
+ // know about it, not something to do with it
4510
+ if (type && TEXTS[type]) {
4511
+ $('<div class="ge-field ge-text-editor" />')
4512
+ .append($('<span class="ge-field-label" />').text(t('panel.editor')))
4513
+ .append($('<span class="ge-field-value" />').text(textLabel(type)))
4514
+ .prependTo(details.children('.ge-details-general'));
4515
+ }
4509
4516
 
4510
4517
  settings.text_tools.forEach(function(hostTool) {
4511
4518
  createTool(drawer, hostTool.title || '', hostTool.className || '',
@@ -4894,7 +4901,6 @@ $.fn.gridEditor.locales = {
4894
4901
  'tool.add_row': 'Add row',
4895
4902
  'tool.add_text': 'Add text',
4896
4903
  'tool.add_text_type': 'Add {editor} text',
4897
- 'tool.text_info': 'Text: {editor}',
4898
4904
  'tool.delete_text': 'Remove text',
4899
4905
  'text.add': 'Text',
4900
4906
  'text.add_type': 'Text ({editor})',
@@ -4919,6 +4925,7 @@ $.fn.gridEditor.locales = {
4919
4925
  'panel.done': 'Done',
4920
4926
  'panel.id': 'Id',
4921
4927
  'panel.classes': 'Classes',
4928
+ 'panel.editor': 'Editor',
4922
4929
  'panel.kind_row': 'Row',
4923
4930
  'panel.kind_column': 'Column',
4924
4931
  'panel.kind_text': 'Text',
@@ -21,7 +21,6 @@
21
21
  'tool.add_row': 'Añadir fila',
22
22
  'tool.add_text': 'Añadir texto',
23
23
  'tool.add_text_type': 'Añadir texto con {editor}',
24
- 'tool.text_info': 'Texto: {editor}',
25
24
  'tool.delete_text': 'Quitar texto',
26
25
  'text.add': 'Texto',
27
26
  'text.add_type': 'Texto ({editor})',
@@ -52,6 +51,7 @@
52
51
  'panel.done': 'Hecho',
53
52
  'panel.id': 'Id',
54
53
  'panel.classes': 'Clases',
54
+ 'panel.editor': 'Editor',
55
55
  'panel.kind_row': 'Fila',
56
56
  'panel.kind_column': 'Columna',
57
57
  'panel.kind_text': 'Texto',