80 Commits

Author SHA1 Message Date
Daniel Lautzenheiser
1aeffbf9c4 UI Tweaks and bug fixes 2022-09-22 18:09:57 -04:00
CommanderRoot
ad82a0f0bc
chore: remove all .substring() usage (#6352)
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-03-30 14:25:12 +03:00
CommanderRoot
59b9348093
chore: replace deprecated String.prototype.substr() (#6333)
* chore: replace deprecated String.prototype.substr()

.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>

* refactor: add prefer slice lint rule and fix errors

Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>
2022-03-28 17:29:56 +00:00
Arpan Kc
dd149f6d04
feat: use keyboard shortcuts to insert bullet points (#6134)
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-01-21 13:43:07 +00:00
Kolja Markwardt
06c7e251ce
fix(richtext): improvement to the Rich Text Editor #5446 (#5897) 2021-10-28 17:45:27 +03:00
Pramod
3ec161122d
fix: dropdown overflow in markdown widget (#5879) 2021-10-28 17:25:34 +03:00
SMores
fbfab7cda5
fix(markdown-widget): support arbitrary component order (#5597) 2021-08-17 13:01:52 +03:00
Trang Le
04e53054ce
fix(markdown-widget): apply list item style on each block in a selection (#5676) 2021-08-04 17:54:52 +03:00
stefanprobst
437f4bc634
feat(widget-markdown): allow registering remark plugins (#5633) 2021-07-25 16:03:35 +03:00
Trang Le
ab3e8e1f5a
fix(widget-markdown): Hitting Enter key in a list item doesn't create a new list item (#5550) 2021-07-22 17:01:35 +03:00
Vladislav Shkodin
dbf2920254
chore: introduce imports ordering (#5463) 2021-05-31 17:46:41 +03:00
Trang Le
b9624fc673
fix(widget-markdown): fix quote block and list highlighting (#5422) 2021-05-30 18:32:47 +03:00
Vladislav Shkodin
39f113715a
chore: update prettier (#5412) 2021-05-19 15:39:35 +03:00
Arpad Gabor
dde1a9db54
fix(widget-markdown): improve UX in Markdown editor - link editing and selected heading underline (#5104) 2021-04-01 17:32:10 +03:00
Deepak Thapa
ecbf82e961
fix(widget-markdown): set toolbar item dropdown width to 'max-content' 2021-02-09 11:53:53 +02:00
Vladislav Shkodin
141a2eba56
refactor: convert function expressions to declarations (#4926) 2021-02-08 20:01:21 +02:00
Erez Rokah
27aec85550
fix(security-markdown-widget): allow sanitization of preview content (#4886) 2021-01-29 16:50:48 +02:00
vrabe
a5750d782e
fix(locale): remove hard coded strings (#4432) 2020-10-15 15:26:22 +03:00
Erez Rokah
cb2ad687ee
Feat: multi content authoring (#4139) 2020-09-20 20:30:46 +03:00
renovate[bot]
3f91a9f370
chore(deps): lock file maintenance (#4297)
* chore(deps): lock file maintenance

* chore: fix tests

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>
2020-09-14 10:05:57 +03:00
Pascal Chorus
c0fc423040
feat(widget-markdown): add option mode (#4112) (#4217) 2020-09-03 14:16:49 +03:00
andreascm
88a5a8098e
fix: deprecate inconsistent config param case (#4172) 2020-08-31 14:25:48 +03:00
Erez Rokah
a4b7481a99
fix(widget-markdown): properly check for selection when inserting links (#4075) 2020-07-27 19:02:42 +03:00
Erez Rokah
d3831b1ed4
fix(prop-types): check for react components via PropTypes.elementType (#4025) 2020-07-15 14:21:08 +03:00
stefanprobst
2b01e009c6
fix(widget-markdown): headings dropdown not showing properly no firefox (#3903) 2020-06-15 15:01:52 +03:00
Erez Rokah
53cba02244
fix: update rehype-remark (#3864) 2020-06-07 14:01:50 +03:00
Bartholomew
2b46608f86
feat: add widgets schema validation (#3841) 2020-06-03 16:43:34 +03:00
Erez Rokah
7bc75d095b
fix(widget-markdown): don't strip new lines from text nodes (#3813) 2020-06-03 13:16:24 +03:00
Pedr Browne
028ab535df
fix: prevent escaping of footnotes and references (#3646)
Prevent footnotes ([^1]:blah) and footnote references ([^1]) from being incorrectly escaped when switching between Markdown and Rich Text modes.

Co-authored-by: Pedr <pedr@sleepstation.org.uk>
2020-04-22 19:41:06 +03:00
Kevin Young
99071c14e4
fix(markdown widget): adds keyboard shortcuts (#3005) (#3582) 2020-04-15 11:49:38 +03:00
Erez Rokah
4afbbdd8a9
feat(yaml): support comments (#3529) 2020-04-07 15:00:06 +03:00
Manish Giri
a91e8316f7
refactor(ui): use variables for z-index values (#3453) 2020-03-24 15:46:47 +02:00
renovate[bot]
d812eecc51
chore(deps): lock file maintenance (#3428)
* chore(deps): lock file maintenance

* fix: don't add undefined children property

* chore: add missing axios dependency

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: erezrokah <erezrokah@users.noreply.github.com>
2020-03-16 12:38:10 +01:00
Erez Rokah
50837b0068
fix: ja locale labels (#3367) 2020-03-05 16:35:24 +01:00
Shawn Erquhart
b7b4bcb609
feat: Configure included editor components per field, add optional minimal height (#3299) 2020-03-04 08:47:37 +01:00
Erez Rokah
9211075cf0
test(widget-markdown): change test name to be more descriptive (#3321) 2020-02-25 16:17:03 +01:00
Erez Rokah
2a0aef27d1
fix(widget-markdown): don't add duplicate marks (#3290) 2020-02-19 19:21:50 +01:00
Erez Rokah
cdd3747850
fix(widget-markdown): allow shortcodes as list items (#3278) 2020-02-17 17:35:29 +02:00
Erez Rokah
ab685e8594
fix: change getAsset to not return a promise (#3232)
* fix: change getAsset to not return a promise

* fix: update markdown widget per getAsset changes

* test: fix editor component image test

* docs: update getAsset docs
2020-02-12 19:12:36 -05:00
Erez Rokah
97bc0c8dc4
feat: field based media/public folders (#3208) 2020-02-10 11:05:47 -05:00
tiuweehan
fc91bf8781
fix(locale): remove hard coded strings (#3193) 2020-02-04 14:49:47 +02:00
Erez Rokah
b4c5fc7783
fix(editor): merge adjacent text nodes with same marks (#3173) 2020-01-31 16:49:10 -08:00
Erez Rokah
c4cbae7725 revert: don't force multiline flag for editor component patterns (#3089)
* revert: don't force multiline flag for editor component patterns

refs: 338c1b68d2865a20fed851295451175b840983d4, 4839160ee6126adfbab7bfa58452560090c00737

github issues: 3088, 3086

* fix: only trim ending white spaces/line breaks when parsing shortcodes

remark validates the value of the 'eat' function using a prefix match between the original value and the value provided. Trimming the start can break that validation

* fix: change console log to warn
2020-01-15 10:28:09 -05:00
Erez Rokah
fde0c5a9a7 fix(widget-markdown): ensure remarkToSlate result matches slate schema (#3085) 2020-01-14 13:20:52 -05:00
Shawn Erquhart
476f45096e fix(core): force multiline flag for editor component patterns (#3082) 2020-01-14 08:44:37 +02:00
Shawn Erquhart
09564bf8b6
fix(widget-markdown): stop double pasting in raw editor (#3083) 2020-01-13 19:48:01 -05:00
Shawn Erquhart
29299097cf fix(widget-markdown): allow multiline shortcodes (#3066) 2020-01-12 09:30:28 +02:00
Shawn Erquhart
1b755b3be8
fix(widget-markdown): cut/copy selection only in raw mode (#3024) 2020-01-03 20:01:23 -05:00
Shawn Erquhart
fe097202f0
fix: avoid nested select widget z-index conflicts (#2990) 2019-12-20 15:40:09 -05:00
Erez Rokah
2b41d8a838 feat: bundle assets with content (#2958)
* fix(media_folder_relative): use collection name in unpublished entry

* refactor: pass arguments as object to AssetProxy ctor

* feat: support media folders per collection

* feat: resolve media files path based on entry path

* fix: asset public path resolving

* refactor: introduce typescript for AssetProxy

* refactor: code cleanup

* refactor(asset-proxy): add tests,switch to typescript,extract arguments

* refactor: typescript for editorialWorkflow

* refactor: add typescript for media library actions

* refactor: fix type error on map set

* refactor: move locale selector into reducer

* refactor: add typescript for entries actions

* refactor: remove duplication between asset store and media lib

* feat: load assets from backend using API

* refactor(github): add typescript, cache media files

* fix: don't load media URL if already loaded

* feat: add media folder config to collection

* fix: load assets from API when not in UI state

* feat: load entry media files when opening media library

* fix: editorial workflow draft media files bug fixes

* test(unit): fix unit tests

* fix: editor control losing focus

* style: add eslint object-shorthand rule

* test(cypress): re-record mock data

* fix: fix non github backends, large media

* test: uncomment only in tests

* fix(backend-test): add missing displayURL property

* test(e2e): add media library tests

* test(e2e): enable visual testing

* test(e2e): add github backend media library tests

* test(e2e): add git-gateway large media tests

* chore: post rebase fixes

* test: fix tests

* test: fix tests

* test(cypress): fix tests

* docs: add media_folder docs

* test(e2e): add media library delete test

* test(e2e): try and fix image comparison on CI

* ci: reduce test machines from 9 to 8

* test: add reducers and selectors unit tests

* test(e2e): disable visual regression testing for now

* test: add getAsset unit tests

* refactor: use Asset class component instead of hooks

* build: don't inline source maps

* test: add more media path tests
2019-12-18 11:16:02 -05:00