docbrown/app/javascript/packs
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
..
actionsPanel.js [deploy] New Feature: Mod Actions Panel (#7777) 2020-06-08 13:24:18 -04:00
analyticsArticle.js Display stats for organization article (#3232) 2019-06-19 09:17:35 -04:00
analyticsDashboard.js Dashboard Pro: support InstantClick and show org analytics (#3102) 2019-06-12 09:40:42 -04:00
articleForm.jsx Drag and drop an image in the editor (#10145) 2020-09-04 14:12:59 -04:00
articleModerationTools.js [deploy] [ModCenter] Fix "FlagUser" Modal functionality (#8995) 2020-07-15 13:54:52 -04:00
articlePage.jsx [deploy] Check for snackbar (#8783) 2020-06-18 19:51:21 -04:00
Chat.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
clipboardCopy.js Comment out mishandled imports (#6815) [deploy] 2020-03-24 13:13:48 -04:00
colorPicker.js Fix colorPicker's lints (#4109) [ci skip] 2019-09-27 09:43:51 -04:00
colorPreview.js Fix gotchas with color preview and some style adjustments and add documentation (#4322) 2019-10-08 21:32:31 -04:00
commentModPage.js [deploy] Add error handling for comment mod page reactions (#9806) 2020-08-15 12:19:57 -04:00
contentDisplayPolicy.js Hide comment feature (#4944) 2019-12-10 15:09:47 -05:00
flagUserModal.jsx [deploy] Update modal padding to improve visual balance (#9504) 2020-07-31 15:37:29 -04:00
githubRepos.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
homePage.jsx [deploy] Fix double render of home feed (#9438) 2020-07-22 10:49:32 -04:00
homePageFeed.jsx homepageFeed: Add null checks in cases where there's no featured story present (#9528) 2020-08-04 09:59:25 +07:00
internal.js [deploy] Move /internal to `/admin (#9639) 2020-08-07 10:36:26 -04:00
listingDashboard.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
listingForm.jsx Use new classified listing categories (#7250) 2020-04-23 10:06:58 +07:00
listings.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
modCenter.jsx Mod Center MVP 🎉 (#8744) 2020-06-23 14:58:16 -04:00
notificationSubscriptionHandler.js Replace querySelector and getElementsByTagName when selecting for head and body (#8315) 2020-06-08 20:08:40 -04:00
Onboarding.jsx [deploy] Allow admins to define onboarding images in config (#8431) 2020-06-12 08:48:20 -04:00
onboardingRedirectCheck.jsx Moved src/utils out of src/ folder to utilities/ folder. (#7875) 2020-05-15 10:07:42 -04:00
orgCreditsSelector.js Feature/refactored onboarding (#3333) 2019-07-26 15:53:32 -04:00
profileDropdown.js New Feature: Block Users (#4411) 2019-10-23 17:14:28 -04:00
readingList.jsx Fix reading list rendering multiple times (#9364) 2020-07-17 07:53:43 -04:00
responseTemplates.js [deploy] Finalize and add response templates feature (#7068) 2020-04-16 15:53:29 -04:00
Search.jsx Upgrade to Preact 10.4.4 (#8739) 2020-06-18 10:07:17 -04:00
sidebarWidget.jsx Fix lints for sidebarwidget and sidebaruser (#4418) [ci skip] 2019-10-14 14:43:26 -04:00
stickySaveFooter.js [deploy] Make UX settings save button sticky when modified (#9478) 2020-07-27 12:52:21 -04:00
validateFileInputs.js [deploy] Add valiation for file name length to file uploads (#6918) 2020-03-27 18:54:27 -04:00
videoChat.jsx Fixed a bunch of linting issues in components (#8921) 2020-06-26 10:26:02 -04:00
webShare.js Comment out mishandled imports (#6815) [deploy] 2020-03-24 13:13:48 -04:00