@themarioga/grid-editor 9.0.0-beta.4 → 9.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +49 -0
- package/README.md +29 -17
- package/UPGRADING.md +24 -5
- package/dist/grideditor.bundle.min.js +3 -3
- package/dist/grideditor.css +5 -4
- package/dist/grideditor.d.ts +10 -15
- package/dist/grideditor.esm.js +151 -113
- package/dist/grideditor.jquery.js +1 -3
- package/dist/grideditor.jquery.min.js +1 -1
- package/dist/grideditor.jquery.min.js.map +2 -2
- package/dist/grideditor.js +151 -113
- package/dist/grideditor.min.css +1 -1
- package/dist/grideditor.min.css.map +1 -1
- package/dist/grideditor.min.js +2 -2
- package/dist/grideditor.min.js.map +3 -3
- package/dist/plugins/grideditor.accordion.esm.js +7 -0
- package/dist/plugins/grideditor.accordion.js +7 -0
- package/dist/plugins/grideditor.accordion.min.js +1 -1
- package/dist/plugins/grideditor.accordion.min.js.map +3 -3
- package/dist/plugins/grideditor.card.esm.js +4 -0
- package/dist/plugins/grideditor.card.js +4 -0
- package/dist/plugins/grideditor.card.min.js +1 -1
- package/dist/plugins/grideditor.card.min.js.map +3 -3
- package/dist/plugins/grideditor.carousel.esm.js +4 -0
- package/dist/plugins/grideditor.carousel.js +4 -0
- package/dist/plugins/grideditor.carousel.min.js +1 -1
- package/dist/plugins/grideditor.carousel.min.js.map +2 -2
- package/dist/plugins/grideditor.clipboard.esm.js +3 -18
- package/dist/plugins/grideditor.clipboard.js +3 -18
- package/dist/plugins/grideditor.clipboard.min.js +1 -1
- package/dist/plugins/grideditor.clipboard.min.js.map +3 -3
- package/dist/plugins/grideditor.history.esm.js +1 -6
- package/dist/plugins/grideditor.history.js +1 -6
- package/dist/plugins/grideditor.history.min.js +1 -1
- package/dist/plugins/grideditor.history.min.js.map +3 -3
- package/dist/plugins/grideditor.offcanvas.esm.js +185 -4
- package/dist/plugins/grideditor.offcanvas.js +185 -4
- package/dist/plugins/grideditor.offcanvas.min.js +1 -1
- package/dist/plugins/grideditor.offcanvas.min.js.map +3 -3
- package/dist/plugins/grideditor.popup.esm.js +185 -4
- package/dist/plugins/grideditor.popup.js +185 -4
- package/dist/plugins/grideditor.popup.min.js +1 -1
- package/dist/plugins/grideditor.popup.min.js.map +3 -3
- package/dist/plugins/grideditor.tabs.esm.js +4 -0
- package/dist/plugins/grideditor.tabs.js +4 -0
- package/dist/plugins/grideditor.tabs.min.js +1 -1
- package/dist/plugins/grideditor.tabs.min.js.map +2 -2
- package/docs/events.md +14 -11
- package/docs/plugins.md +20 -8
- package/example/clipboard.html +13 -10
- package/package.json +1 -1
- package/src/js/grideditor.jquery.js +0 -2
- package/src/js/grideditor.js +211 -125
- package/src/js/plugins/grideditor.accordion.js +9 -0
- package/src/js/plugins/grideditor.card.js +5 -0
- package/src/js/plugins/grideditor.carousel.js +5 -0
- package/src/js/plugins/grideditor.clipboard.js +11 -24
- package/src/js/plugins/grideditor.history.js +3 -6
- package/src/js/plugins/grideditor.offcanvas.js +8 -0
- package/src/js/plugins/grideditor.popup.js +7 -0
- package/src/js/plugins/grideditor.tabs.js +5 -0
- package/src/js/triggers/triggers.js +211 -11
- package/src/less/grideditor.less +5 -4
- package/types/grideditor.d.ts +10 -15
package/dist/grideditor.css
CHANGED
|
@@ -586,13 +586,14 @@ html.ge-sidebar-open {
|
|
|
586
586
|
outline: 2px solid var(--bs-primary, #0d6efd);
|
|
587
587
|
outline-offset: 1px;
|
|
588
588
|
}
|
|
589
|
-
/*
|
|
590
|
-
shows
|
|
591
|
-
|
|
589
|
+
/* The target, with active_target: where the toolbar's buttons add and what
|
|
590
|
+
the sidebar shows. A node that also has its panel open shows both: this
|
|
591
|
+
one a little further out */
|
|
592
|
+
.ge-canvas.ge-editing .ge-selected {
|
|
592
593
|
outline: 2px dashed var(--bs-success, #198754);
|
|
593
594
|
outline-offset: -2px;
|
|
594
595
|
}
|
|
595
|
-
.ge-canvas.ge-editing .ge-
|
|
596
|
+
.ge-canvas.ge-editing .ge-selected.ge-settings-target {
|
|
596
597
|
box-shadow: 0 0 0 4px var(--bs-success, #198754);
|
|
597
598
|
}
|
|
598
599
|
/* While editing */
|
package/dist/grideditor.d.ts
CHANGED
|
@@ -190,7 +190,7 @@ export interface GridEditorOptions {
|
|
|
190
190
|
drawer_overflow?: 'menu' | 'wrap';
|
|
191
191
|
/** The add buttons in categories - rows, content, and a plugin's own - one shown at a time, chosen with tabs. Default false. */
|
|
192
192
|
toolbar_groups?: boolean;
|
|
193
|
-
/** A click
|
|
193
|
+
/** A click on any node with settings - a row, a column, a container, a text - makes it the target: where the toolbar's buttons add, and what the sidebar shows. Default false, and true with settings_panel 'sidebar', which throws if it is given false. */
|
|
194
194
|
active_target?: boolean;
|
|
195
195
|
/** The plugins to use, of any kind; null is every one loaded. */
|
|
196
196
|
plugins?: string[] | null;
|
|
@@ -209,7 +209,7 @@ export interface GridEditorOptions {
|
|
|
209
209
|
elements?: { enabled?: boolean | 'auto'; selector?: string; auto?: boolean; types?: ElementType[] };
|
|
210
210
|
/** The autosave plugin: what is edited, kept in the browser's storage as it changes. */
|
|
211
211
|
autosave?: AutosaveOptions;
|
|
212
|
-
/** The clipboard plugin. `shortcuts`: Ctrl+C and Ctrl+V on the
|
|
212
|
+
/** The clipboard plugin. `shortcuts`: Ctrl+C and Ctrl+V on the active target; default active_target. */
|
|
213
213
|
clipboard?: { shortcuts?: boolean };
|
|
214
214
|
/** The history plugin: undo and redo. */
|
|
215
215
|
history?: HistoryOptions;
|
|
@@ -230,7 +230,7 @@ export interface GridEditorOptions {
|
|
|
230
230
|
locale_strings?: Record<string, string>;
|
|
231
231
|
callbacks?: Partial<GridEditorCallbacks>;
|
|
232
232
|
confirm_delete?: boolean;
|
|
233
|
-
/** Where a node's settings open. 'sidebar' is a panel that stays on the right while editing, showing the
|
|
233
|
+
/** Where a node's settings open. 'sidebar' is a panel that stays on the right while editing, showing the active target's; one editor per page has it. It turns active_target on, and the constructor throws a TypeError if active_target is false. */
|
|
234
234
|
settings_panel?: 'offcanvas' | 'popover' | 'modal' | 'inline' | 'sidebar';
|
|
235
235
|
/** The 'sidebar' panel. */
|
|
236
236
|
sidebar?: SidebarSettings;
|
|
@@ -389,18 +389,17 @@ export interface ViewChangePayload {
|
|
|
389
389
|
to: View;
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
-
/** The active target changed: the
|
|
392
|
+
/** The active target changed: the node the toolbar adds to and the sidebar shows - any with settings - or null for the canvas. */
|
|
393
393
|
export interface TargetChangePayload {
|
|
394
394
|
canvas: HTMLElement;
|
|
395
395
|
target: HTMLElement | null;
|
|
396
396
|
from: HTMLElement | null;
|
|
397
397
|
}
|
|
398
398
|
|
|
399
|
-
/** The
|
|
400
|
-
export interface
|
|
399
|
+
/** The preview button was pressed (true) or let go (false). */
|
|
400
|
+
export interface PreviewChangePayload {
|
|
401
401
|
canvas: HTMLElement;
|
|
402
|
-
|
|
403
|
-
from: HTMLElement | null;
|
|
402
|
+
previewing: boolean;
|
|
404
403
|
}
|
|
405
404
|
|
|
406
405
|
/** The events, by name, with their payloads. Adding fires a specific name and the generic one. */
|
|
@@ -443,8 +442,8 @@ export interface GridEditorEventMap {
|
|
|
443
442
|
'grideditor:popup-orphan': PopupOrphanPayload;
|
|
444
443
|
'grideditor:offcanvas-orphan': OffcanvasOrphanPayload;
|
|
445
444
|
'grideditor:view-change': ViewChangePayload;
|
|
445
|
+
'grideditor:preview-change': PreviewChangePayload;
|
|
446
446
|
'grideditor:target-change': TargetChangePayload;
|
|
447
|
-
'grideditor:selection-change': SelectionChangePayload;
|
|
448
447
|
'grideditor:after-autosave': AutosavePayload;
|
|
449
448
|
'grideditor:after-restore-draft': RestoreDraftPayload;
|
|
450
449
|
'grideditor:autosave-error': AutosaveErrorPayload;
|
|
@@ -555,14 +554,10 @@ export declare class GridEditor {
|
|
|
555
554
|
/** Take the editor off: the markup stays, everything else goes. */
|
|
556
555
|
destroy(): this;
|
|
557
556
|
changeView(view: View): this;
|
|
558
|
-
/** The
|
|
557
|
+
/** The node the toolbar adds to, and the sidebar shows, or null: any node with settings, a row, a column, a container, a text. Null without active_target, which settings_panel 'sidebar' turns on. */
|
|
559
558
|
getActiveTarget(): HTMLElement | null;
|
|
560
|
-
/** Make a
|
|
559
|
+
/** Make a node with settings, or the first a selector matches, the one the toolbar adds to; null for none. */
|
|
561
560
|
setActiveTarget(target: HTMLElement | string | null): this;
|
|
562
|
-
/** The node whose settings the sidebar shows, or null. Null unless settings_panel is 'sidebar'. */
|
|
563
|
-
getSelected(): HTMLElement | null;
|
|
564
|
-
/** Select a node with settings, or the first a selector matches, or null for none. Does nothing unless settings_panel is 'sidebar'. */
|
|
565
|
-
setSelected(node: HTMLElement | string | null): this;
|
|
566
561
|
getView(): View;
|
|
567
562
|
setLocale(code: string): this;
|
|
568
563
|
createRow(layout?: RowLayout, options?: Placement): HTMLElement | null;
|
package/dist/grideditor.esm.js
CHANGED
|
@@ -328,9 +328,7 @@ var METHODS = {
|
|
|
328
328
|
getUtility: { value: true },
|
|
329
329
|
setUtility: { value: true },
|
|
330
330
|
getActiveTarget: { value: true },
|
|
331
|
-
setActiveTarget: {}
|
|
332
|
-
getSelected: { value: true },
|
|
333
|
-
setSelected: {}
|
|
331
|
+
setActiveTarget: {}
|
|
334
332
|
};
|
|
335
333
|
var PLACEMENTS = ["appendTo", "prependTo", "insertAfter", "insertBefore"];
|
|
336
334
|
var REFERENCES = [
|
|
@@ -671,6 +669,7 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
671
669
|
var confirmDialog = null;
|
|
672
670
|
var sizePicker = null;
|
|
673
671
|
var sourceOpen = false;
|
|
672
|
+
var previewing = false;
|
|
674
673
|
var dropMarker = null;
|
|
675
674
|
var activeTarget = null;
|
|
676
675
|
var toolbarLifetime = null;
|
|
@@ -685,7 +684,6 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
685
684
|
var sortables = [];
|
|
686
685
|
var instanceId = ++editorCounter;
|
|
687
686
|
var destroyed = false;
|
|
688
|
-
var selected = null;
|
|
689
687
|
var sidebarCollapsed = null;
|
|
690
688
|
var pluginHandle = null;
|
|
691
689
|
if (settings.settings_panel === "sidebar") {
|
|
@@ -1128,8 +1126,7 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
1128
1126
|
var signal = { signal: lifetime.signal };
|
|
1129
1127
|
window.addEventListener("scroll", onScroll, signal);
|
|
1130
1128
|
delegate(canvas, "click", ".ge-content", onContentClick, signal);
|
|
1131
|
-
|
|
1132
|
-
if (settings.active_target || sidebarMode) {
|
|
1129
|
+
if (settings.active_target) {
|
|
1133
1130
|
var pressed = null;
|
|
1134
1131
|
canvas.addEventListener("pointerdown", function(e) {
|
|
1135
1132
|
pressed = { x: e.clientX, y: e.clientY };
|
|
@@ -1143,12 +1140,7 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
1143
1140
|
if (from && Math.abs(e.clientX - from.x) + Math.abs(e.clientY - from.y) > settings.drag.threshold) {
|
|
1144
1141
|
return;
|
|
1145
1142
|
}
|
|
1146
|
-
|
|
1147
|
-
clickTarget(e);
|
|
1148
|
-
}
|
|
1149
|
-
if (sidebarMode && canvas.contains(e.target)) {
|
|
1150
|
-
changeSelection(settingsNodeAt(e.target));
|
|
1151
|
-
}
|
|
1143
|
+
clickTarget(e);
|
|
1152
1144
|
}, signal);
|
|
1153
1145
|
document.addEventListener("keydown", function(e) {
|
|
1154
1146
|
if (e.key !== "Escape" || openSettingsState || dialogState) {
|
|
@@ -1161,23 +1153,28 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
1161
1153
|
if (focus && (is(focus, "input, textarea, select") || focus.isContentEditable)) {
|
|
1162
1154
|
return;
|
|
1163
1155
|
}
|
|
1164
|
-
if (
|
|
1165
|
-
changeSelection(null);
|
|
1166
|
-
} else if (activeTarget) {
|
|
1156
|
+
if (activeTarget) {
|
|
1167
1157
|
changeTarget(null);
|
|
1168
1158
|
}
|
|
1169
1159
|
}, signal);
|
|
1170
|
-
}
|
|
1171
|
-
if (sidebarMode) {
|
|
1172
1160
|
canvas.addEventListener("focusin", function(e) {
|
|
1173
1161
|
var node = isEditing() ? settingsNodeAt(e.target) : null;
|
|
1174
1162
|
if (node) {
|
|
1175
|
-
|
|
1163
|
+
changeTarget(node);
|
|
1176
1164
|
}
|
|
1177
1165
|
}, signal);
|
|
1166
|
+
var pressedOn = null;
|
|
1167
|
+
document.addEventListener("pointerdown", function(e) {
|
|
1168
|
+
pressedOn = e.target;
|
|
1169
|
+
}, { capture: true, signal: signal.signal });
|
|
1178
1170
|
document.addEventListener("click", function(e) {
|
|
1179
1171
|
var target = e.target;
|
|
1180
|
-
|
|
1172
|
+
var from = pressedOn;
|
|
1173
|
+
pressedOn = null;
|
|
1174
|
+
if (!activeTarget || !isEditing() || !target || target.nodeType !== 1) {
|
|
1175
|
+
return;
|
|
1176
|
+
}
|
|
1177
|
+
if (from && from.nodeType === 1 && (canvas.contains(from) || closest(from, EDITOR_CONTROLS))) {
|
|
1181
1178
|
return;
|
|
1182
1179
|
}
|
|
1183
1180
|
if (!attached(target) || canvas.contains(target)) {
|
|
@@ -1186,17 +1183,22 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
1186
1183
|
if (closest(target, EDITOR_CONTROLS) || canvas.querySelector(".ge-rte-active")) {
|
|
1187
1184
|
return;
|
|
1188
1185
|
}
|
|
1189
|
-
|
|
1186
|
+
changeTarget(null);
|
|
1190
1187
|
}, signal);
|
|
1188
|
+
}
|
|
1189
|
+
if (panelMode() === "sidebar") {
|
|
1191
1190
|
window.addEventListener("resize", reserveSidebarRoom, signal);
|
|
1192
1191
|
}
|
|
1193
1192
|
function clickTarget(e) {
|
|
1194
|
-
|
|
1195
|
-
|
|
1193
|
+
if (!canvas.contains(e.target)) {
|
|
1194
|
+
return;
|
|
1195
|
+
}
|
|
1196
|
+
var node = settingsNodeAt(e.target);
|
|
1197
|
+
if (node && node === activeTarget && (e.target === drawerOf(node) || e.target === node && !hasClass(node, "ge-content"))) {
|
|
1196
1198
|
changeTarget(null);
|
|
1197
1199
|
return;
|
|
1198
1200
|
}
|
|
1199
|
-
changeTarget(
|
|
1201
|
+
changeTarget(node);
|
|
1200
1202
|
}
|
|
1201
1203
|
}
|
|
1202
1204
|
function textReady(block) {
|
|
@@ -1320,20 +1322,19 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
1320
1322
|
btnGroup.appendChild(htmlButton);
|
|
1321
1323
|
}
|
|
1322
1324
|
var previewButton = create('<button type="button" class="btn btn-sm btn-primary gm-preview"><i class="bi bi-eye-fill"></i></button>');
|
|
1323
|
-
var endPreview = function() {
|
|
1324
|
-
if (!hasClass(previewButton, "active")) {
|
|
1325
|
-
addClass(canvas, "ge-editing");
|
|
1326
|
-
}
|
|
1327
|
-
};
|
|
1328
1325
|
previewButton.setAttribute("title", t("tool.preview"));
|
|
1326
|
+
toggleClass(previewButton, "active btn-danger", previewing);
|
|
1329
1327
|
previewButton.addEventListener("mouseenter", function() {
|
|
1330
1328
|
removeClass(canvas, "ge-editing");
|
|
1331
1329
|
});
|
|
1332
1330
|
previewButton.addEventListener("click", function() {
|
|
1333
|
-
|
|
1334
|
-
|
|
1331
|
+
setPreview(!previewing);
|
|
1332
|
+
});
|
|
1333
|
+
previewButton.addEventListener("mouseleave", function() {
|
|
1334
|
+
if (!previewing) {
|
|
1335
|
+
addClass(canvas, "ge-editing");
|
|
1336
|
+
}
|
|
1335
1337
|
});
|
|
1336
|
-
previewButton.addEventListener("mouseleave", endPreview);
|
|
1337
1338
|
btnGroup.appendChild(previewButton);
|
|
1338
1339
|
if (endItems.length) {
|
|
1339
1340
|
var end = wrapper.appendChild(element("div", { "class": "pull-right ge-toolbar-end" }));
|
|
@@ -1425,12 +1426,8 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
1425
1426
|
if (!mainControls || destroyed) {
|
|
1426
1427
|
return;
|
|
1427
1428
|
}
|
|
1428
|
-
var previewing = !!one(mainControls, ".gm-preview.active");
|
|
1429
1429
|
removeMainControls();
|
|
1430
1430
|
createMainControls();
|
|
1431
|
-
if (previewing) {
|
|
1432
|
-
addClass(one(mainControls, ".gm-preview"), "active btn-danger");
|
|
1433
|
-
}
|
|
1434
1431
|
onScroll();
|
|
1435
1432
|
}
|
|
1436
1433
|
function removeMainControls() {
|
|
@@ -1686,13 +1683,11 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
1686
1683
|
}
|
|
1687
1684
|
var placed = made;
|
|
1688
1685
|
if (item.inColumn) {
|
|
1689
|
-
|
|
1690
|
-
placed = inRowOfItsOwn(made);
|
|
1691
|
-
}
|
|
1686
|
+
placed = wrapFor(where.region, made);
|
|
1692
1687
|
} else if (!acceptsBlock(where.region, made)) {
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1688
|
+
where = canvasAfterTopOf(where.region);
|
|
1689
|
+
} else if (is(where.region, ".row")) {
|
|
1690
|
+
placed = wrapFor(where.region, made);
|
|
1696
1691
|
}
|
|
1697
1692
|
return addNode(item.kind, made, function() {
|
|
1698
1693
|
if (where.before) {
|
|
@@ -1702,10 +1697,32 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
1702
1697
|
}
|
|
1703
1698
|
}, { parent: where.region, source: item.source || source || "dragdrop" });
|
|
1704
1699
|
}
|
|
1700
|
+
function canvasAfterTopOf(region) {
|
|
1701
|
+
var ancestors = region === canvas ? [] : parentsUntil(region, canvas).reverse().concat([region]);
|
|
1702
|
+
var top = ancestors[0] || null;
|
|
1703
|
+
return { region: canvas, before: top ? top.nextElementSibling : null };
|
|
1704
|
+
}
|
|
1705
|
+
function placeInTarget(node, kind, source) {
|
|
1706
|
+
if (!activeTarget) {
|
|
1707
|
+
return null;
|
|
1708
|
+
}
|
|
1709
|
+
var where = { region: effectiveRegion(activeTarget), before: null };
|
|
1710
|
+
var placed = wrapFor(where.region, node);
|
|
1711
|
+
var holder = placed === node ? null : node.parentElement;
|
|
1712
|
+
if (!acceptsBlock(where.region, placed) || holder && !acceptsBlock(holder, node)) {
|
|
1713
|
+
where = canvasAfterTopOf(where.region);
|
|
1714
|
+
placed = node;
|
|
1715
|
+
}
|
|
1716
|
+
return addNode(kind, node, function() {
|
|
1717
|
+
if (where.before) {
|
|
1718
|
+
where.before.parentNode.insertBefore(placed, where.before);
|
|
1719
|
+
} else {
|
|
1720
|
+
where.region.appendChild(placed);
|
|
1721
|
+
}
|
|
1722
|
+
}, { parent: where.region, source: source || "api" });
|
|
1723
|
+
}
|
|
1705
1724
|
function inRowOfItsOwn(node) {
|
|
1706
|
-
|
|
1707
|
-
row.appendChild(createColumn(MAX_COL_SIZE)).appendChild(node);
|
|
1708
|
-
return row;
|
|
1725
|
+
return rowHolding(createColumn(MAX_COL_SIZE), node);
|
|
1709
1726
|
}
|
|
1710
1727
|
function showDropMarker(pageX, pageY) {
|
|
1711
1728
|
var where = dropPlaceAt(pageX, pageY);
|
|
@@ -1734,10 +1751,7 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
1734
1751
|
var container = button.getAttribute("data-ge-toolbar") === "container";
|
|
1735
1752
|
var type = button.getAttribute("data-ge-container-type");
|
|
1736
1753
|
var made = container ? CONTAINERS[type].create({}) : rowFromLayout(button.getAttribute("data-ge-layout"));
|
|
1737
|
-
var placed = made;
|
|
1738
|
-
if (container && !is(where.region, ".column")) {
|
|
1739
|
-
placed = inRowOfItsOwn(made);
|
|
1740
|
-
}
|
|
1754
|
+
var placed = wrapFor(where.region, made);
|
|
1741
1755
|
return addNode(container ? type : "row", made, function() {
|
|
1742
1756
|
if (where.before) {
|
|
1743
1757
|
where.before.parentNode.insertBefore(placed, where.before);
|
|
@@ -1982,10 +1996,24 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
1982
1996
|
deinit();
|
|
1983
1997
|
init();
|
|
1984
1998
|
}
|
|
1999
|
+
function setPreview(on2) {
|
|
2000
|
+
on2 = !!on2;
|
|
2001
|
+
if (on2 === previewing) {
|
|
2002
|
+
return;
|
|
2003
|
+
}
|
|
2004
|
+
previewing = on2;
|
|
2005
|
+
var button = mainControls ? one(mainControls, ".gm-preview") : null;
|
|
2006
|
+
if (button) {
|
|
2007
|
+
toggleClass(button, "active btn-danger", on2);
|
|
2008
|
+
}
|
|
2009
|
+
toggleClass(canvas, "ge-editing", !on2);
|
|
2010
|
+
plugins("onPreviewChange", on2);
|
|
2011
|
+
emit("preview-change", { canvas, previewing: on2 });
|
|
2012
|
+
}
|
|
1985
2013
|
function openSource() {
|
|
2014
|
+
setPreview(false);
|
|
1986
2015
|
deinit();
|
|
1987
2016
|
changeTarget(null);
|
|
1988
|
-
changeSelection(null);
|
|
1989
2017
|
htmlTextArea.style.height = 0.8 * document.documentElement.clientHeight + "px";
|
|
1990
2018
|
htmlTextArea.value = canvas.innerHTML;
|
|
1991
2019
|
show(htmlTextArea);
|
|
@@ -2001,11 +2029,8 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
2001
2029
|
init();
|
|
2002
2030
|
hide(htmlTextArea);
|
|
2003
2031
|
}
|
|
2004
|
-
function targetSelector() {
|
|
2005
|
-
return [".column"].concat(pluginHooks("regions")).join(", ");
|
|
2006
|
-
}
|
|
2007
2032
|
function isTarget(node) {
|
|
2008
|
-
return !!node && node !== canvas && canvas.contains(node) &&
|
|
2033
|
+
return !!node && node !== canvas && canvas.contains(node) && detailsFor.has(node);
|
|
2009
2034
|
}
|
|
2010
2035
|
function changeTarget(node) {
|
|
2011
2036
|
if (node === activeTarget) {
|
|
@@ -2013,16 +2038,63 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
2013
2038
|
}
|
|
2014
2039
|
var from = activeTarget;
|
|
2015
2040
|
if (from) {
|
|
2016
|
-
removeClass(from, "ge-
|
|
2041
|
+
removeClass(from, "ge-selected");
|
|
2017
2042
|
}
|
|
2018
2043
|
activeTarget = node;
|
|
2019
2044
|
if (node && hasClass(canvas, "ge-editing")) {
|
|
2020
|
-
addClass(node, "ge-
|
|
2045
|
+
addClass(node, "ge-selected");
|
|
2021
2046
|
}
|
|
2047
|
+
renderSidebar();
|
|
2022
2048
|
emit("target-change", { canvas, target: node, from });
|
|
2023
2049
|
}
|
|
2050
|
+
function regionSelector() {
|
|
2051
|
+
return [".column"].concat(pluginHooks("regions")).join(", ");
|
|
2052
|
+
}
|
|
2053
|
+
function effectiveRegion(target) {
|
|
2054
|
+
if (is(target, ".row, " + regionSelector())) {
|
|
2055
|
+
return target;
|
|
2056
|
+
}
|
|
2057
|
+
var inside = isContainerOrPane(target) ? paneRegionOf(target) : null;
|
|
2058
|
+
return inside || closest(target.parentElement, regionSelector()) || canvas;
|
|
2059
|
+
}
|
|
2060
|
+
function isContainerOrPane(node) {
|
|
2061
|
+
if (node.getAttribute("data-ge-container")) {
|
|
2062
|
+
return true;
|
|
2063
|
+
}
|
|
2064
|
+
var container = closest(node.parentElement, "[data-ge-container]", canvas);
|
|
2065
|
+
var definition = container && CONTAINERS[containerTypeOf(container)];
|
|
2066
|
+
return !!definition && !!definition.paneKind && kindOf(node) === definition.paneKind;
|
|
2067
|
+
}
|
|
2068
|
+
function paneRegionOf(node) {
|
|
2069
|
+
var isContainer = !!node.getAttribute("data-ge-container");
|
|
2070
|
+
var container = isContainer ? node : closest(node.parentElement, "[data-ge-container]", canvas);
|
|
2071
|
+
var definition = CONTAINERS[containerTypeOf(container)];
|
|
2072
|
+
return definition && definition.regionOf ? definition.regionOf(container, isContainer ? null : node) || null : null;
|
|
2073
|
+
}
|
|
2074
|
+
function wrapFor(region, node) {
|
|
2075
|
+
if (is(node, ".column")) {
|
|
2076
|
+
return is(region, ".row") ? node : rowHolding(node);
|
|
2077
|
+
}
|
|
2078
|
+
if (is(region, ".row")) {
|
|
2079
|
+
var column = createColumn(rowColsSource(region, leadingTier()) ? null : settings.add_column.size);
|
|
2080
|
+
column.appendChild(node);
|
|
2081
|
+
return column;
|
|
2082
|
+
}
|
|
2083
|
+
if (is(region, ".column") || is(node, ".row")) {
|
|
2084
|
+
return node;
|
|
2085
|
+
}
|
|
2086
|
+
return rowHolding(createColumn(MAX_COL_SIZE), node);
|
|
2087
|
+
}
|
|
2088
|
+
function rowHolding(column, node) {
|
|
2089
|
+
var row = createRow();
|
|
2090
|
+
if (node) {
|
|
2091
|
+
column.appendChild(node);
|
|
2092
|
+
}
|
|
2093
|
+
row.appendChild(column);
|
|
2094
|
+
return row;
|
|
2095
|
+
}
|
|
2024
2096
|
function addToTarget(button, source) {
|
|
2025
|
-
var made = insertFromToolbar(button, { region: activeTarget, before: null }, source);
|
|
2097
|
+
var made = insertFromToolbar(button, { region: effectiveRegion(activeTarget), before: null }, source);
|
|
2026
2098
|
if (made && made.scrollIntoView) {
|
|
2027
2099
|
made.scrollIntoView({ behavior: "smooth" });
|
|
2028
2100
|
}
|
|
@@ -2031,14 +2103,14 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
2031
2103
|
if (openSettingsState && !attached(openSettingsState.node)) {
|
|
2032
2104
|
closeSettings();
|
|
2033
2105
|
}
|
|
2034
|
-
if (
|
|
2035
|
-
|
|
2106
|
+
if (activeTarget && !canvas.contains(activeTarget)) {
|
|
2107
|
+
changeTarget(null);
|
|
2036
2108
|
}
|
|
2037
2109
|
if (dialogState && dialogState.home && !attached(dialogState.home)) {
|
|
2038
2110
|
closeDialog();
|
|
2039
2111
|
}
|
|
2040
2112
|
runFilter(true);
|
|
2041
|
-
|
|
2113
|
+
toggleClass(canvas, "ge-editing", !previewing);
|
|
2042
2114
|
toggleClass(canvas, "ge-drag-drawer", settings.drag_handle === "drawer");
|
|
2043
2115
|
addAllColClasses();
|
|
2044
2116
|
var cutter = textCutter();
|
|
@@ -2056,7 +2128,7 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
2056
2128
|
if (activeTarget && !canvas.contains(activeTarget)) {
|
|
2057
2129
|
changeTarget(null);
|
|
2058
2130
|
} else if (activeTarget) {
|
|
2059
|
-
addClass(activeTarget, "ge-
|
|
2131
|
+
addClass(activeTarget, "ge-selected");
|
|
2060
2132
|
}
|
|
2061
2133
|
showSidebar();
|
|
2062
2134
|
}
|
|
@@ -2065,7 +2137,7 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
2065
2137
|
hideSidebar();
|
|
2066
2138
|
removeClass(canvas, "ge-editing ge-drag-drawer ge-dropping");
|
|
2067
2139
|
if (activeTarget) {
|
|
2068
|
-
removeClass(activeTarget, "ge-
|
|
2140
|
+
removeClass(activeTarget, "ge-selected");
|
|
2069
2141
|
}
|
|
2070
2142
|
plugins("onBeforeDeinit");
|
|
2071
2143
|
closeSizePicker();
|
|
@@ -2142,8 +2214,8 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
2142
2214
|
}
|
|
2143
2215
|
var copy = copyCanvas();
|
|
2144
2216
|
var root = copy.root;
|
|
2145
|
-
[root].concat(all(root, ".ge-
|
|
2146
|
-
removeClass(node, "ge-
|
|
2217
|
+
[root].concat(all(root, ".ge-selected, .ge-settings-target")).forEach(function(node) {
|
|
2218
|
+
removeClass(node, "ge-selected ge-settings-target");
|
|
2147
2219
|
dropEmptyClass(node);
|
|
2148
2220
|
});
|
|
2149
2221
|
all(root, ".ge-drop-marker").forEach(function(marker) {
|
|
@@ -2212,6 +2284,7 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
2212
2284
|
});
|
|
2213
2285
|
}
|
|
2214
2286
|
}
|
|
2287
|
+
setPreview(false);
|
|
2215
2288
|
deinit();
|
|
2216
2289
|
setHtml(canvas, html);
|
|
2217
2290
|
init();
|
|
@@ -2221,9 +2294,9 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
2221
2294
|
if (sourceOpen) {
|
|
2222
2295
|
closeSource();
|
|
2223
2296
|
}
|
|
2297
|
+
setPreview(false);
|
|
2224
2298
|
deinit();
|
|
2225
2299
|
activeTarget = null;
|
|
2226
|
-
selected = null;
|
|
2227
2300
|
if (sidebarHolder === instance) {
|
|
2228
2301
|
sidebarHolder = null;
|
|
2229
2302
|
}
|
|
@@ -2304,6 +2377,9 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
2304
2377
|
addSettingsTool,
|
|
2305
2378
|
deleteNode,
|
|
2306
2379
|
place,
|
|
2380
|
+
// A node made, added to the active target as the toolbar adds
|
|
2381
|
+
// what it makes: null with no target, or when it was canceled
|
|
2382
|
+
placeInTarget,
|
|
2307
2383
|
createPaneControls,
|
|
2308
2384
|
makeLabelEditable,
|
|
2309
2385
|
labelIn,
|
|
@@ -2315,6 +2391,9 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
2315
2391
|
operate,
|
|
2316
2392
|
kindOf,
|
|
2317
2393
|
view: getView,
|
|
2394
|
+
previewing: function() {
|
|
2395
|
+
return previewing;
|
|
2396
|
+
},
|
|
2318
2397
|
viewTiers: function() {
|
|
2319
2398
|
return tiersFor(curView).map(function(tier) {
|
|
2320
2399
|
return tier.key;
|
|
@@ -2357,22 +2436,12 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
2357
2436
|
toolbarItems: function(name) {
|
|
2358
2437
|
return mainControls ? all(mainControls, '[data-ge-toolbar="feature"][data-ge-feature="' + name + '"]') : [];
|
|
2359
2438
|
},
|
|
2360
|
-
getSelected: function() {
|
|
2361
|
-
return panelMode() === "sidebar" ? selected : null;
|
|
2362
|
-
},
|
|
2363
2439
|
getActiveTarget: function() {
|
|
2364
2440
|
return settings.active_target ? activeTarget : null;
|
|
2365
2441
|
},
|
|
2366
2442
|
// True when it took: a node that cannot be, or no setting
|
|
2367
2443
|
// for it, says nothing, since a plugin putting back what it
|
|
2368
2444
|
// remembers cannot know the node is still one
|
|
2369
|
-
setSelected: function(node) {
|
|
2370
|
-
var chosen = panelMode() === "sidebar" && !!node && node !== canvas && canvas.contains(node) && detailsFor.has(node);
|
|
2371
|
-
if (chosen) {
|
|
2372
|
-
changeSelection(node);
|
|
2373
|
-
}
|
|
2374
|
-
return chosen;
|
|
2375
|
-
},
|
|
2376
2445
|
setActiveTarget: function(node) {
|
|
2377
2446
|
var chosen = !!settings.active_target && isTarget(node);
|
|
2378
2447
|
if (chosen) {
|
|
@@ -2380,7 +2449,7 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
2380
2449
|
}
|
|
2381
2450
|
return chosen;
|
|
2382
2451
|
},
|
|
2383
|
-
// What keeps Escape from the
|
|
2452
|
+
// What keeps Escape from the target, and an
|
|
2384
2453
|
// inline panel unfolded in a drawer, which Escape leaves alone
|
|
2385
2454
|
panelOpen: function() {
|
|
2386
2455
|
if (openSettingsState || dialogState) {
|
|
@@ -3753,7 +3822,7 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
3753
3822
|
delegate(panel, "click", ".ge-settings-close", function(e) {
|
|
3754
3823
|
e.preventDefault();
|
|
3755
3824
|
if (mode === "sidebar") {
|
|
3756
|
-
|
|
3825
|
+
changeTarget(null);
|
|
3757
3826
|
} else {
|
|
3758
3827
|
closeSettings();
|
|
3759
3828
|
}
|
|
@@ -3874,7 +3943,7 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
3874
3943
|
if (!panel || !isEditing()) {
|
|
3875
3944
|
return;
|
|
3876
3945
|
}
|
|
3877
|
-
var details =
|
|
3946
|
+
var details = activeTarget ? detailsOf(activeTarget) : null;
|
|
3878
3947
|
if (details ? sidebarShown && sidebarShown.details === details : !sidebarShown && sidebarEmpty) {
|
|
3879
3948
|
return;
|
|
3880
3949
|
}
|
|
@@ -3888,11 +3957,10 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
3888
3957
|
sidebarEmpty = { body };
|
|
3889
3958
|
return;
|
|
3890
3959
|
}
|
|
3891
|
-
sidebarShown = { node:
|
|
3892
|
-
setSidebarTitle(t("panel.title", { kind: kindLabel(
|
|
3960
|
+
sidebarShown = { node: activeTarget, details, home: details.parentElement, next: details.nextElementSibling };
|
|
3961
|
+
setSidebarTitle(t("panel.title", { kind: kindLabel(activeTarget) }));
|
|
3893
3962
|
holder.appendChild(details);
|
|
3894
3963
|
show(details);
|
|
3895
|
-
addClass(selected, "ge-settings-target");
|
|
3896
3964
|
}
|
|
3897
3965
|
function emptyContent() {
|
|
3898
3966
|
var fromHost = settings.sidebar.empty;
|
|
@@ -3942,15 +4010,6 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
3942
4010
|
}
|
|
3943
4011
|
return null;
|
|
3944
4012
|
}
|
|
3945
|
-
function changeSelection(node) {
|
|
3946
|
-
if (node === selected) {
|
|
3947
|
-
return;
|
|
3948
|
-
}
|
|
3949
|
-
var from = selected;
|
|
3950
|
-
selected = node;
|
|
3951
|
-
renderSidebar();
|
|
3952
|
-
emit("selection-change", { canvas, node, from });
|
|
3953
|
-
}
|
|
3954
4013
|
function placePopover(panel, gear) {
|
|
3955
4014
|
if (!attached(gear)) {
|
|
3956
4015
|
return;
|
|
@@ -5060,28 +5119,11 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
5060
5119
|
var node = nodeFrom(value);
|
|
5061
5120
|
if (!isTarget(node)) {
|
|
5062
5121
|
var named = typeof value === "string" ? value : node ? "<" + node.tagName.toLowerCase() + ">" : String(value);
|
|
5063
|
-
warn("setActiveTarget: " + named + " is not a
|
|
5122
|
+
warn("setActiveTarget: " + named + " is not a node of the canvas with settings");
|
|
5064
5123
|
return;
|
|
5065
5124
|
}
|
|
5066
5125
|
changeTarget(node);
|
|
5067
5126
|
}
|
|
5068
|
-
function apiSetSelected(value) {
|
|
5069
|
-
if (panelMode() !== "sidebar") {
|
|
5070
|
-
warnOnceHere("sidebar-api", 'setSelected needs settings_panel "sidebar": without it, it does nothing');
|
|
5071
|
-
return;
|
|
5072
|
-
}
|
|
5073
|
-
if (value === null || value === void 0) {
|
|
5074
|
-
changeSelection(null);
|
|
5075
|
-
return;
|
|
5076
|
-
}
|
|
5077
|
-
var node = nodeFrom(value);
|
|
5078
|
-
if (!node || node === canvas || !canvas.contains(node) || !detailsFor.has(node)) {
|
|
5079
|
-
var named = typeof value === "string" ? value : node ? "<" + node.tagName.toLowerCase() + ">" : String(value);
|
|
5080
|
-
warn("setSelected: " + named + " is not a node of the canvas with settings");
|
|
5081
|
-
return;
|
|
5082
|
-
}
|
|
5083
|
-
changeSelection(node);
|
|
5084
|
-
}
|
|
5085
5127
|
var own = {
|
|
5086
5128
|
getHtml,
|
|
5087
5129
|
getPlainHtml,
|
|
@@ -5120,11 +5162,7 @@ function build(instance, baseElem, optionsOrMethod) {
|
|
|
5120
5162
|
getActiveTarget: function() {
|
|
5121
5163
|
return settings.active_target ? activeTarget : null;
|
|
5122
5164
|
},
|
|
5123
|
-
setActiveTarget: apiSetActiveTarget
|
|
5124
|
-
getSelected: function() {
|
|
5125
|
-
return panelMode() === "sidebar" ? selected : null;
|
|
5126
|
-
},
|
|
5127
|
-
setSelected: apiSetSelected
|
|
5165
|
+
setActiveTarget: apiSetActiveTarget
|
|
5128
5166
|
};
|
|
5129
5167
|
Object.keys(own).forEach(function(name) {
|
|
5130
5168
|
var value = !!(METHODS[name] && METHODS[name].value);
|
|
@@ -5175,7 +5213,7 @@ GridEditor.t = translate;
|
|
|
5175
5213
|
GridEditor._plainHtml = plainHtml;
|
|
5176
5214
|
GridEditor.Sortable = null;
|
|
5177
5215
|
GridEditor.bootstrap = null;
|
|
5178
|
-
GridEditor.version = false ? "dev" : "9.0.0-beta.
|
|
5216
|
+
GridEditor.version = false ? "dev" : "9.0.0-beta.6";
|
|
5179
5217
|
GridEditor.locales = {
|
|
5180
5218
|
en: {
|
|
5181
5219
|
"tool.move": "Move",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var u=window.GridEditor;if(!u||typeof u.get!="function")throw new Error("grid-editor: load grideditor.js (or grideditor.bundle.min.js) before its plugins, its locales and grideditor.jquery.js");var i=window.jQuery,T=function(a,o){return u.t({locale:"en"},a,o)},m={};function b(a,o){m[a]||(m[a]=!0,window.console&&window.console.warn&&window.console.warn("grid-editor: "+o))}!i||!i.fn?b("no-jquery",T("warning.adapter_no_jquery")):x();function x(){var a={getHtml:{value:!0},getPlainHtml:{value:!0},init:{},deinit:{},reset:{},destroy:{},changeView:{},getView:{value:!0},createRow:{value:!0},createColumn:{value:!0},createElement:{value:!0},createText:{value:!0},createSection:{value:!0},createContainer:{value:!0},addTab:{value:!0},addAccordionItem:{value:!0},setLocale:{},getUtility:{value:!0},setUtility:{value:!0},getActiveTarget:{value:!0},setActiveTarget:{}
|
|
1
|
+
(()=>{var u=window.GridEditor;if(!u||typeof u.get!="function")throw new Error("grid-editor: load grideditor.js (or grideditor.bundle.min.js) before its plugins, its locales and grideditor.jquery.js");var i=window.jQuery,T=function(a,o){return u.t({locale:"en"},a,o)},m={};function b(a,o){m[a]||(m[a]=!0,window.console&&window.console.warn&&window.console.warn("grid-editor: "+o))}!i||!i.fn?b("no-jquery",T("warning.adapter_no_jquery")):x();function x(){var a={getHtml:{value:!0},getPlainHtml:{value:!0},init:{},deinit:{},reset:{},destroy:{},changeView:{},getView:{value:!0},createRow:{value:!0},createColumn:{value:!0},createElement:{value:!0},createText:{value:!0},createSection:{value:!0},createContainer:{value:!0},addTab:{value:!0},addAccordionItem:{value:!0},setLocale:{},getUtility:{value:!0},setUtility:{value:!0},getActiveTarget:{value:!0},setActiveTarget:{}},o=["row_tools","col_tools","element_tools","container_tools","tab_tools","accordion_tools","text_tools"];function g(r){return!!r&&r.nodeType===1}function l(r){return r instanceof i?r[0]||null:r}function h(r){if(r instanceof i)return l(r);if(r&&typeof r=="object"&&!Array.isArray(r)&&!g(r)){var t={};return Object.keys(r).forEach(function(e){t[e]=l(r[e])}),t}return r}function w(r){return g(r)?i(r):r}var s=new WeakMap;function p(r){if(!r||typeof r!="object")return r;if(s.has(r))return s.get(r);var t=Object.assign({},r);return["node","parent","canvas"].forEach(function(e){e in r&&(t[e]=i(r[e]||[]))}),r.container&&(t.container=i(r.container)),Array.isArray(r.nodes)&&(t.node=i(r.nodes)),["from","to"].forEach(function(e){var n=r[e];n&&typeof n=="object"&&"parent"in n&&(t[e]=Object.assign({},n,{parent:i(n.parent||[])}))}),s.set(r,t),t}var v=i.event.dispatch;i.event.dispatch=function(r){return arguments.length===1&&r instanceof window.CustomEvent&&typeof r.type=="string"&&r.type.indexOf("grideditor:")===0?v.call(this,r,p(r.detail)):v.apply(this,arguments)};function y(r){return function(t){return r.call(this,i.event.fix(t))}}function _(r){if(!r||!r.on)return r;var t;return typeof r.on=="function"?t=y(r.on):(t={},Object.keys(r.on).forEach(function(e){t[e]=y(r.on[e])})),Object.assign({},r,{on:t})}function j(r){return function(t,e){var n=typeof r=="string"?window[r]:r;return n(i(t),e)}}function E(r){if(r=Object.assign({},r||{}),r.callbacks){var t={};Object.keys(r.callbacks).forEach(function(n){var c=r.callbacks[n];t[n]=typeof c=="function"?function(f){return c(p(f))}:c}),r.callbacks=t}if(r.custom_filter&&r.custom_filter.length){var e=typeof r.custom_filter=="string"||typeof r.custom_filter=="function"?[r.custom_filter]:Array.prototype.slice.call(r.custom_filter);r.custom_filter=e.map(j)}return o.forEach(function(n){Array.isArray(r[n])&&(r[n]=r[n].map(_))}),r.source_textarea=l(r.source_textarea),r}function A(r){var t={canvas:i(r.canvas)};return Object.keys(a).forEach(function(e){t[e]=function(){var n=r[e].apply(r,Array.prototype.map.call(arguments,h));return n===r?void 0:w(n)}}),Object.defineProperty(t,"settings",{enumerable:!0,get:function(){return r.settings}}),t}u._created.push(function(r){i.data(r.canvas,"grideditor",A(r));var t=r.destroy;r.destroy=function(){var e=t.apply(this,arguments);return i.removeData(r.canvas,"grideditor"),e}});function O(r,t,e){var n=a[t];if(!n)return b("method:"+t,'unknown method "'+t+'"'),r;if(e=e.map(h),n.value){var c=r.first();if(!c.length)return null;var f=u.get(c[0]);return f?w(f[t].apply(f,e)):t==="getHtml"?c.html():t==="getPlainHtml"?u._plainHtml(c.html()):null}return r.each(function(){var d=u.get(this);d&&d[t].apply(d,e)}),r}i.fn.gridEditor=function(r){if(typeof r=="string")return O(this,r,Array.prototype.slice.call(arguments,1));var t=E(r);return this.each(function(){u.create(this,t)}),this},i.fn.gridEditor.locales=u.locales,i.fn.gridEditor.t=u.t}})();
|