@themarioga/grid-editor 7.0.0 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +27 -3
- package/dist/grideditor.bundle.min.js +2 -2
- package/dist/grideditor.esm.js +1 -1
- package/dist/grideditor.js +1 -1
- package/dist/grideditor.min.js +1 -1
- package/dist/plugins/grideditor.tinymce.min.js.map +1 -1
- package/example/attributes.html +4 -1
- package/example/autosave.html +5 -2
- package/example/basic.html +4 -1
- package/example/clipboard.html +4 -1
- package/example/codemirror.html +4 -1
- package/example/containers.html +4 -1
- package/example/elements.html +4 -1
- package/example/wrap_content.html +4 -1
- package/package.json +2 -1
- package/src/js/plugins/grideditor.tinymce.js +1 -1
package/example/attributes.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<!-- Javascript dependencies -->
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
|
|
12
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/
|
|
12
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/7.9.3/tinymce.min.js"></script>
|
|
13
13
|
|
|
14
14
|
<!-- Grid editor CSS -->
|
|
15
15
|
<link rel="stylesheet" type="text/css" href="../dist/grideditor.css" />
|
|
@@ -217,6 +217,9 @@
|
|
|
217
217
|
var editor = new GridEditor('#myGrid', {
|
|
218
218
|
new_row_layouts: [[12], [6, 6], [4, 4, 4]],
|
|
219
219
|
content_types: ['tinymce'],
|
|
220
|
+
// tinyMCE 7 is GPL-2.0-or-later: 'gpl' accepts that licence.
|
|
221
|
+
// A commercial licence passes its own key here instead.
|
|
222
|
+
tinymce: { config: { license_key: 'gpl' } },
|
|
220
223
|
});
|
|
221
224
|
|
|
222
225
|
document.getElementById('myGrid').addEventListener('grideditor:animation-change', function(e) {
|
package/example/autosave.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<!-- JS dependencies -->
|
|
12
12
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
|
|
13
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/
|
|
13
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/7.9.3/tinymce.min.js"></script>
|
|
14
14
|
|
|
15
15
|
<!-- Grid editor CSS -->
|
|
16
16
|
<link rel="stylesheet" type="text/css" href="../dist/grideditor.css" />
|
|
@@ -47,7 +47,10 @@
|
|
|
47
47
|
grid.innerHTML = initialContent;
|
|
48
48
|
editor = new GridEditor(grid, {
|
|
49
49
|
new_row_layouts: [[12], [6,6], [4,4,4]],
|
|
50
|
-
content_types: ['tinymce']
|
|
50
|
+
content_types: ['tinymce'],
|
|
51
|
+
// tinyMCE 7 is GPL-2.0-or-later: 'gpl' accepts that licence.
|
|
52
|
+
// A commercial licence passes its own key here instead.
|
|
53
|
+
tinymce: { config: { license_key: 'gpl' } },
|
|
51
54
|
});
|
|
52
55
|
}
|
|
53
56
|
|
package/example/basic.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<!-- Javascript dependencies -->
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
|
|
12
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/
|
|
12
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/7.9.3/tinymce.min.js"></script>
|
|
13
13
|
|
|
14
14
|
<!-- Grid editor CSS -->
|
|
15
15
|
<link rel="stylesheet" type="text/css" href="../dist/grideditor.css" />
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
drag_handle: 'drawer',
|
|
28
28
|
new_row_layouts: [[12], [6,6], [9,3]],
|
|
29
29
|
content_types: ['tinymce'],
|
|
30
|
+
// tinyMCE 7 is GPL-2.0-or-later: 'gpl' accepts that licence.
|
|
31
|
+
// A commercial licence passes its own key here instead.
|
|
32
|
+
tinymce: { config: { license_key: 'gpl' } },
|
|
30
33
|
});
|
|
31
34
|
|
|
32
35
|
// // Get resulting html
|
package/example/clipboard.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<!-- Javascript dependencies -->
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
|
|
12
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/
|
|
12
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/7.9.3/tinymce.min.js"></script>
|
|
13
13
|
|
|
14
14
|
<!-- Grid editor CSS -->
|
|
15
15
|
<link rel="stylesheet" type="text/css" href="../dist/grideditor.css" />
|
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
var settings = {
|
|
32
32
|
new_row_layouts: [[12], [6, 6], [4, 4, 4]],
|
|
33
33
|
content_types: ['tinymce'],
|
|
34
|
+
// tinyMCE 7 is GPL-2.0-or-later: 'gpl' accepts that licence.
|
|
35
|
+
// A commercial licence passes its own key here instead.
|
|
36
|
+
tinymce: { config: { license_key: 'gpl' } },
|
|
34
37
|
};
|
|
35
38
|
|
|
36
39
|
['#myGrid', '#otherGrid'].forEach(function(selector) {
|
package/example/codemirror.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
<!-- Javascript dependencies -->
|
|
12
12
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
|
|
13
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/
|
|
13
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/7.9.3/tinymce.min.js"></script>
|
|
14
14
|
|
|
15
15
|
<!-- CodeMirror 5 and its html mode, which is made of the xml, javascript
|
|
16
16
|
and css modes -->
|
|
@@ -48,6 +48,9 @@
|
|
|
48
48
|
codemirror: {
|
|
49
49
|
config: { lineNumbers: true },
|
|
50
50
|
},
|
|
51
|
+
// tinyMCE 7 is GPL-2.0-or-later: 'gpl' accepts that licence.
|
|
52
|
+
// A commercial licence passes its own key here instead.
|
|
53
|
+
tinymce: { config: { license_key: 'gpl' } },
|
|
51
54
|
});
|
|
52
55
|
}
|
|
53
56
|
|
package/example/containers.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<!-- Javascript dependencies -->
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
|
|
12
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/
|
|
12
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/7.9.3/tinymce.min.js"></script>
|
|
13
13
|
|
|
14
14
|
<!-- Grid editor CSS -->
|
|
15
15
|
<link rel="stylesheet" type="text/css" href="../dist/grideditor.css" />
|
|
@@ -29,6 +29,9 @@
|
|
|
29
29
|
var editor = new GridEditor('#myGrid', {
|
|
30
30
|
new_row_layouts: [[12], [6,6]],
|
|
31
31
|
content_types: ['tinymce'],
|
|
32
|
+
// tinyMCE 7 is GPL-2.0-or-later: 'gpl' accepts that licence.
|
|
33
|
+
// A commercial licence passes its own key here instead.
|
|
34
|
+
tinymce: { config: { license_key: 'gpl' } },
|
|
32
35
|
|
|
33
36
|
// Every container plugin the page loaded is offered. Name
|
|
34
37
|
// them to offer fewer than were loaded:
|
package/example/elements.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<!-- Javascript dependencies -->
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
|
|
12
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/
|
|
12
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/7.9.3/tinymce.min.js"></script>
|
|
13
13
|
|
|
14
14
|
<!-- Grid editor CSS -->
|
|
15
15
|
<link rel="stylesheet" type="text/css" href="../dist/grideditor.css" />
|
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
var editor = new GridEditor('#myGrid', {
|
|
41
41
|
new_row_layouts: [[12], [6,6]],
|
|
42
42
|
content_types: ['tinymce'],
|
|
43
|
+
// tinyMCE 7 is GPL-2.0-or-later: 'gpl' accepts that licence.
|
|
44
|
+
// A commercial licence passes its own key here instead.
|
|
45
|
+
tinymce: { config: { license_key: 'gpl' } },
|
|
43
46
|
|
|
44
47
|
elements: {
|
|
45
48
|
// The default. Only nodes carrying this attribute are
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
<!-- Javascript dependencies -->
|
|
11
11
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
|
|
12
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/
|
|
12
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/7.9.3/tinymce.min.js"></script>
|
|
13
13
|
|
|
14
14
|
<!-- Grid editor CSS -->
|
|
15
15
|
<link rel="stylesheet" type="text/css" href="../dist/grideditor.css" />
|
|
@@ -33,6 +33,9 @@
|
|
|
33
33
|
var editor = new GridEditor(grid, {
|
|
34
34
|
new_row_layouts: [[12], [6, 6], [9, 3], [3, 9]],
|
|
35
35
|
content_types: ['tinymce'],
|
|
36
|
+
// tinyMCE 7 is GPL-2.0-or-later: 'gpl' accepts that licence.
|
|
37
|
+
// A commercial licence passes its own key here instead.
|
|
38
|
+
tinymce: { config: { license_key: 'gpl' } },
|
|
36
39
|
});
|
|
37
40
|
|
|
38
41
|
// 3. What getHtml hands back: the same content, now a grid, with
|
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"comment": "A scoped package publishes restricted unless it is told otherwise.",
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"version": "7.
|
|
36
|
+
"version": "7.1.0",
|
|
37
37
|
"main": "dist/grideditor.js",
|
|
38
38
|
"module": "dist/grideditor.esm.js",
|
|
39
39
|
"types": "dist/grideditor.d.ts",
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"src",
|
|
75
75
|
"docs",
|
|
76
76
|
"example",
|
|
77
|
+
"!example/angular",
|
|
77
78
|
"AUTO_SAVE.md",
|
|
78
79
|
"BUILDING.md",
|
|
79
80
|
"CHANGELOG.md",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* tinyMCE for grid-editor's content areas.
|
|
3
3
|
*
|
|
4
|
-
* A text editor plugin: load this file after the editor, and tinyMCE
|
|
4
|
+
* A text editor plugin: load this file after the editor, and tinyMCE 7
|
|
5
5
|
* after or before it, and a text of the tinymce type is edited with an
|
|
6
6
|
* inline tinyMCE. What it can ask the editor for is the handle its
|
|
7
7
|
* factory is called with, described in docs/plugins.md.
|