docbrown/app/javascript
Nick Taylor f0963c1bfa
Drag and drop an image in the editor (#10145)
* Refactored drag n drop functionality to a hook and component.

* Add the snackbar to the article editor.

* Now you can drag and drop images in the post body content.

* Cleaning up a few things.

* Now post cover images can be dragged and dropped.

* Removed unused empty function.

* Added @testing-library/preact-hooks so that we can test hooks.

* Some renaming, small refactor.

* Added tests

* Added more tests.

* Added more tests.

* Added message about dropping only one image in post body.

* Added message about dropping only one image for cover image.

* put onDrop into it's own meethod.

* More tests.

* Added some API documentation.

* Updated editor help with drag and drop image help.

* Changed wording.

* Now the alt text for markdown removes the file extension.

* Updated help wording. Thanks @rhymes

* Now the image markdown adds a new line at the end as we currently do not support inline images.
2020-09-04 14:12:59 -04:00
..
.storybook Bump storybook to version 6 (#9766) 2020-08-17 10:34:43 +02:00
actionsPanel [deploy] [Admin Tooling] Allow admins unpublish articles from the Mod Actions Panel (#10038) 2020-09-02 16:08:08 -05:00
admin Add Options to "Invalidate" and "Mark as Valid" Vomit Reactions (#9769) [deploy] 2020-08-18 11:48:23 -06:00
analytics Moved src/utils out of src/ folder to utilities/ folder. (#7875) 2020-05-15 10:07:42 -04:00
article-form Drag and drop an image in the editor (#10145) 2020-09-04 14:12:59 -04:00
articles Fixed accessibilty issue with empty link on featured post. (#10005) 2020-08-26 09:17:32 -04:00
chat Drag and drop an image in the editor (#10145) 2020-09-04 14:12:59 -04:00
CommentSubscription Bump storybook to version 6 (#9766) 2020-08-17 10:34:43 +02:00
common-prop-types [deploy] 🚀 Feature: Chat channel membership manager component (#8945) 2020-07-20 08:08:31 -04:00
contentDisplayPolicy More frontend lint fixes (#8931) 2020-06-29 08:19:13 -04:00
crayons Typography fix & Optimization (#9650) 2020-08-18 08:05:51 -04:00
githubRepos Upgraded to preact testing library 2.0.0 (#9103) 2020-07-06 14:53:10 -04:00
icons Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
leftSidebar Use explicit name for Preact fragments (#10049) 2020-08-28 10:01:17 -04:00
listings [deploy] Bug Fix:Redirect to Direct User Channel for Org Listings (#9616) 2020-08-04 10:37:15 -05:00
modCenter Fixing broken jest test (#10162) 2020-09-02 20:02:27 -04:00
onboarding [deploy] Display banner if site hasn't been configured (PRE DEPLOYMENT TASKS) (#8435) 2020-07-07 07:37:04 -05:00
organization More frontend test cleanup (#8919) 2020-06-25 18:04:01 -04:00
packs Drag and drop an image in the editor (#10145) 2020-09-04 14:12:59 -04:00
podcasts Some frontend testing cleanup. (#8902) 2020-06-25 09:07:34 -04:00
profileDropdown Fix TypeError: userData is null in blockButton.js (#9299) 2020-07-14 07:28:53 -07:00
readingList [deploy] Refactor code blocks styling (#8975) 2020-06-29 21:15:11 -04:00
responseTemplates Add null safety to handleLoggedOut() (#9062) 2020-07-02 10:51:37 +02:00
Search Upgraded to preact testing library 2.0.0 (#9103) 2020-07-06 14:53:10 -04:00
searchableItemList Moved src/utils out of src/ folder to utilities/ folder. (#7875) 2020-05-15 10:07:42 -04:00
shared/components [deploy] Fix tag input patterns (#9363) 2020-07-20 08:06:36 -05:00
sidebar-widget More frontend test cleanup (#8919) 2020-06-25 18:04:01 -04:00
Snackbar Fixed a bunch of linting issues in components (#8921) 2020-06-26 10:26:02 -04:00
utilities Drag and drop an image in the editor (#10145) 2020-09-04 14:12:59 -04:00
.eslintrc.js Added a comment mentioning that index.js overrides are for barrel files (#8978) 2020-06-29 10:52:35 -04:00
netlify.toml Update Netlify config to handle stylesheet changes for Storybook (#9753) 2020-08-12 11:02:14 -04:00