Commit Graph

163 Commits

Author SHA1 Message Date
Rostislav Wolny
a18bf316a0 Fix custom fields unique flag mapping when saving
This flag is used by old form editor and it prevents adding the field multiple times
[MAILPOET-2592]
2020-01-09 09:20:33 +01:00
Pavel Dohnal
34203b3d69 Set default label ''
[MAILPOET-2592]
2020-01-09 09:20:33 +01:00
Rostislav Wolny
8806e4e8f8 Add sanitization for missing label to mapper
[MAILPOET-2592]
2020-01-09 09:20:33 +01:00
Rostislav Wolny
080d5c84ac Register custom date blocks and add mappings
[MAILPOET-2453]
2019-12-19 10:24:41 +01:00
Pavel Dohnal
89cb652242 Code update
[MAILPOET-2453]
2019-12-19 10:24:41 +01:00
Pavel Dohnal
ea11fdf5fb Add select custom field
[MAILPOET-2453]
2019-12-19 10:24:41 +01:00
Pavel Dohnal
81c75fafc2 Add checkbox custom field
[MAILPOET-2453]
2019-12-19 10:24:41 +01:00
Pavel Dohnal
8dce3f627e Rename displayLabel to hideLabel
We need to show labels for the old users

[MAILPOET-2453]
2019-12-19 10:24:41 +01:00
Pavel Dohnal
9afba728c6 Save and load radio custom field
[MAILPOET-2453]
2019-12-19 10:24:41 +01:00
Pavel Dohnal
39e7cfa19d Rename customHtml to html
It is not a custom field

[MAILPOET-2453]#
2019-12-19 10:24:41 +01:00
Pavel Dohnal
79bdcd5e4f Fix test
[MAILPOET-2453]
2019-12-19 10:24:41 +01:00
Pavel Dohnal
eeaec19a6b Map custom fields blocks to form
[MAILPOET-2453]
2019-12-19 10:24:41 +01:00
Pavel Dohnal
5b4cd3cb42 Refactor duplicite code
[MAILPOET-2453]
2019-12-19 10:24:41 +01:00
Pavel Dohnal
214d76391b Map custom fields to blocks
[MAILPOET-2453]
2019-12-19 10:24:41 +01:00
Rostislav Wolny
6c30bc9c3e Remove unnecessary assert
[MAILPOET-2462]
2019-12-16 15:18:39 +01:00
Rostislav Wolny
906307a2c7 Add automatic nl2br switch to custom html settings
[MAILPOET-2462]
2019-12-16 15:18:39 +01:00
Rostislav Wolny
a577680122 Refactor blocks client id generating from form data
[MAILPOET-2462]
2019-12-16 15:18:39 +01:00
Rostislav Wolny
d3bc831f69 Add data mappers for custom html block
[MAILPOET-2462]
2019-12-16 15:18:39 +01:00
Rostislav Wolny
15b66febc6 Add data mappers for divider block
[MAILPOET-2462]
2019-12-16 15:18:39 +01:00
Pavel Dohnal
c3be5e99e4 Persist segments selection
[MAILPOET-2452]
2019-12-10 16:22:44 +01:00
Pavel Dohnal
24b8b53380 Add test for last name
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
b381be6af5 Add a unit test for name blocks
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
08eab3940c Fix code after tests have run
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Pavel Dohnal
076ae12e78 Remove .only
[MAILPOET-2452]
2019-12-05 13:01:55 +01:00
Rostislav Wolny
3a65f103b0 Add test for form saving started reducer
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
fe204ec53f Add test and fixes form form validator
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
b90939e118 Add check that input is an array to data mappers
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
c9d73f6970 Add mapper for mapping blocks to form body data
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
4e71908332 Add mapper for mapping form body to blocks
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
fcee93f436 Remove unnecessary imports from JS test
[MAILPOET-2451]
2019-12-04 12:49:30 +00:00
Rostislav Wolny
6015a1370d Refactor simple JS to be main JS tests
[MAILPOET-2455]
2019-11-28 15:39:50 +00:00
Pavel Dohnal
0b9b7567e0 Add manual mock 2019-11-14 12:14:57 +00:00
Amine Ben hammou
fb7135fe19 Add JS test for the block
[MAILPOET-2279]
2019-10-15 15:45:37 +01:00
Amine Ben hammou
61cd5e1cc2 Fix javascript tests
[MAILPOET-2281]
2019-10-01 15:10:52 +01:00
Jan Jakeš
c9ff9be7ec Use TinyMCE as a module to avoid conflicts when used globally 2019-08-29 11:13:15 -04:00
Ján Mikláš
4140d31e23 Fix JS tests
[MAILPOET-1976]
2019-06-20 10:22:58 -04:00
Ján Mikláš
7492b20bc4 Create skeleton for new History region in editor
[MAILPOET-1976]
2019-06-20 10:22:58 -04:00
Ján Mikláš
c86a2446fc Add .off method to stubChannel so removing listeners work
[MAILPOET-1974]
2019-05-16 08:26:16 -04:00
Ján Mikláš
e41bc4e6da Add JS test for products widget
[MAILPOET-1843]
2019-04-16 16:40:45 +02:00
Rostislav Wolny
d69e0dea9e Refactor block highlight to be managed fully by highlight behavior
[MAILPOET-1819]
2019-03-18 06:07:30 -04:00
Pavel Dohnal
ae3c03f985 Add JS test
[MAILPOET-1710]
2019-03-06 07:48:33 -05:00
Pavel Dohnal
56680816c0 Update test to a new component
[MAILPOET-1710]
2019-03-06 07:48:33 -05:00
Rostislav Wolny
c9a70c4870 Keep container block highlighted and tools displayed when editing settings
[MAILPOET-1805]
2019-02-28 13:11:21 -05:00
Rostislav Wolny
6662f4e4d2 Keep block highlighted and tools displayed when editing settings
[MAILPOET-1805]
2019-02-28 13:11:21 -05:00
Jan Jakeš
5c92af4881 Add and fix comma-dangle rules for *.js files
[MAILPOET-1829]
2019-02-21 11:52:39 -05:00
Jan Jakeš
61ab593dcb Fix order of definitions, remove unnecesary vars
[MAILPOET-1829]
2019-02-21 11:52:39 -05:00
Jan Jakeš
e95e7d3b4c Remove unused imports
[MAILPOET-1829]
2019-02-21 11:52:39 -05:00
Jan Jakeš
bb658f77ec Fix indentaition in *.js files (auto-fix by ESLint)
[MAILPOET-1829]
2019-02-21 11:52:39 -05:00
Jan Jakeš
1e1ed6f251 Replace amd-inject-loader with inject-loader & use Babel trick for ES6 support
[MAILPOET-1829]
2019-02-21 11:52:39 -05:00
Jan Jakeš
afcde00003 Convert AMD and CommonJS odules to ES6
[MAILPOET-1829]
2019-02-21 11:52:39 -05:00