* fix: remove discussions from the base path
Remove the discussions prefix from the base path to avoid potential repeat of that
word the path when deployed.
fix: Sort and deduplicate comments when loading the next page
This fixes the issue with loading the next page of older comments after
posting a new one, which only appended comments to the end, leaving the
newer one behind.
Deduplicating also fixes the related issue, when the new comment would
repeat after paginating to its correct position.
Updates the UX so that on a smaller screen eitherthe topic/post sidebar is displayed or the post view to give each more space.
Also adds support for an in-context view where the header and navigation is replaced with a sidebar-specific header.
fix: skin loading with transparent background
For some reason, loading the skin from `skin.min.css` was resulting in
dialogs and menus appearing with a transparent background. Replacing the
import for the non-minified version, `skin.css`, solves the problem.
feat: enable native browser spellchecking
Disabling the TinyMCE context menu is required for the native
spellchecking right click suggestions to work.
feat: enable autosave plugin
Autosaves to local storage every second.
Restores draft when empty.
feat: add new toolbar buttons
Additional toolbar buttons requested: quoting, code formatting, HTML button with text
label, clear formatting, undo/redo
feat: add image button to the toolbar, and load the imagetools plugin
The imagetools only work on images loaded from the same domain.
feat: add image upload capability
Depends on an upload endpoint in the REST API.
feat: enable a11y_advanced_options
This will only affect the image plugin.
For full a11y checking functionality, a premium TinyMCE key is required.
fix: TinyMCE content styles not being properly loaded
Content CSS need to be loaded as raw text, to be included in the TinyMCE
initialization. For this, we need webpack's `raw-loader` as a dependency.
fix: refactor the upload API call into posts/data/api
feat: pass courseId and threadId to the upload API endpoint
fix: rename customized buttons with openedx prefix
fix: use exact version for dependencies
fix: improve jsdoc and update the upload endpoint
fix: simplify TinyMCE side of the upload call
fix: update the upload url
Allow admins select a cohort when creating a new post.
If a user is not a discussions administrator, or if trying to edit
existing post, can't select a cohort (field is hidden).
fix: fix adding threads for topics that haven't been preloaded
Uses new API features for preview, deleting, pinning, and closing. Refactors and improves styling to match new mockups.
Adds the new post filter bar element.
Implemented a ScrollThreshold reusable component to detect scrolling
events, which can be used in the place of a Button.
Removed the i18n entry created for the Button, which is no longer
needed.
This change adds pagination to comments responses.
When viewing a post with a comment or comments that has more than one
page of responses, initially users will only see the first page of the
responses under each comment, and can load more comments by clicking
"load more responses" button under already displayed responses for that
comment.