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
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.
This change adds pagination to posts' comments.
When viewing a post, if there are more than one page of comments,
initially users will only see the first page of the comments, and can
load more comments by clicking "load more comments" button.
This change only affects comments to posts. For comments that are
responses to other comments the pagination has not been implemented.
This adds a major chunk of UI code to the application covering topic listing,
topic filtering, subtopic browsing, browsing posts by topic, filtering unread
posts, filtering followed posts, sorting posts by recent activity, most activty
and most votes, liking/unliking a post, following/unfollowing a post, listing
comments and replis in a post.
Co-authored-by: Kshitij Sobti <kshitij@sobti.in>