PluginProbe
Elementor Website Builder – more than just a page builder / 4.3.1
Elementor Website Builder – more than just a page builder v4.3.1
4.3.2 4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 All 455 releases
elementor / migrations / operations / html-v3-to-escaped-html.json

html-v3-to-escaped-html.json in Elementor Website Builder – more than just a page builder 4.3.1, at migrations/operations/html-v3-to-escaped-html.json

51 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "up": [
3 {
4 "op": { "fn": "move", "src": "value.content.value", "dest": "value" },
5 "condition": { "fn": "exists", "path": "value.content.value" }
6 },
7 {
8 "op": { "fn": "move", "src": "value.content", "dest": "value" },
9 "condition": {
10 "fn": "and",
11 "conditions": [
12 { "fn": "is_primitive", "path": "value.content" },
13 { "fn": "not_exists", "path": "value.content.value" }
14 ]
15 }
16 },
17 {
18 "op": { "fn": "set", "path": "value", "value": null },
19 "condition": {
20 "fn": "and",
21 "conditions": [
22 { "fn": "is_object", "path": "value" },
23 { "fn": "not_exists", "path": "value.content.value" }
24 ]
25 }
26 },
27 {
28 "op": { "fn": "set", "path": "$$type", "value": "escaped-html" }
29 }
30 ],
31 "down": [
32 {
33 "op": { "fn": "move", "src": "value", "dest": "value.content.value", "clean": false }
34 },
35 {
36 "op": { "fn": "set", "path": "value.content.$$type", "value": "string" },
37 "condition": { "fn": "exists", "path": "value.content.value" }
38 },
39 {
40 "op": { "fn": "set", "path": "value.content", "value": null },
41 "condition": { "fn": "not_exists", "path": "value.content.value" }
42 },
43 {
44 "op": { "fn": "set", "path": "value.children", "value": [], "merge": false }
45 },
46 {
47 "op": { "fn": "set", "path": "$$type", "value": "html-v3" }
48 }
49 ]
50 }
51