bhanwari-devi
bhanwari-devi copied to clipboard
Course Editor version 2
- Drag Drop functionality needed
- Option to delete a block is needed
- Do not expect the user to write CSS in the blocks; the CSS or formatting should be done according to the chosen block
- Ability to add bullet and number lists
- The Submit button should change to the "Save" button
- Navigating to another page or refreshing this page should prompt, "Your changes will be lost; please Save your changes". The prompt should have three buttons "Save, don't save and Cancel".
Completed in --> 18/10
Course editor v2 should be based on Editor.js
Necessary Capabilities to be built:
- [ ] Rich text editor for the text content.
- [ ] Should be able to do the following: Headings, Text formatting like bold, italics, making lists, links, code sample, tables etc. In editor.js, these options come from the "+" icon on the left side. Check editor.js for all the capabilities. We need all of them.
- [ ] The code sample written in the editor should map to the code sample component of Meraki
- [ ] Able to highlight a text (This functionality is named as marker in editor.js)
- [ ] Image and video upload facility
- [ ] Additional functionality: Keep the last edit version so that any editor can see what parts of the content were last edited
- [ ] In MCQs, the editor should allow people to edit the question, options, and the explanation. (The common parts like "You are right" or "It missed the mark" for right and wrong answers need not be entered by editors. As it appears as a common thing, it should come from the frontend directly.
At this moment, we are not having any reviewers. The submissions made by the editors will be pushed to the production. However, we can delay the update for say 1 hour. If there was mistake, editors will have a buffer time to change without it affecting the production.
Success Criteria
- [ ] Editors (people) are able to add or remove any content component defined in Meraki database
- [ ] The course editor does not require HTML/CSS knowledge from the editors to be productive.
- [ ] If one editor is currently working on an exercise, another person cannot edit it. If someone does try to edit it, a message needs to displayed that someone is currently editing the exercise. (I think this type of dynamic locking should be possible)
To reach out to @abhishekgupta92 @vivekdogra @suyashpradhan as we are unable to convert our JSON structure list into editor.js list.
Let's do a call at 8 pm today?
Converting the list has been done, but the object is getting repeated so need to seek another approach.
Completed in --> 27/10
Done
- List conversion
- Displaying code in a structured way and replace
<br>with\n
Working on Converting back the previous structure and saving the data into the backend
Left sub-tasks -
- Convert the list back to the previous structure
- Replace
\nwith<br> - Search for a way to remove the caption.
Done
- Converting back the previous structure and saving the data into the backend
- Replace \n with
Left sub-tasks -
- Convert the list back to the previous structure
- Search for a way to remove the caption.
Done
- Convert the list back to the previous structure
Left sub-tasks -
- Search for a way to remove the caption.
Backend
exercise/idput API taking 10 sec to respond @kirithiv2000
Done
- Search for a way to remove the caption.
Backend
exercise/idput API taking 10 sec to respond
Done
- Added header and footer to edit mode
Left sub-tasks from backend and frontend -
- latest updated time in course editor header
Done
- latest updated time in course editor header
- Added table
Issue
- if we are adding an image it's showing broken but the images which are coming from the backend are fine (need to fix this)
block
- Uploading Image (Need backend support @kirithiv2000
Feedback
- Add component icon should be on left side
- Add highlighter marker
- Pop up on cancel button and cross button
- Image uploading error
Everything done
Left
- Design re-review
- PR review
- [x] Green Colour should be used (consistent with Meraki) (Current scenario is, frontend uses green colour, backend uses orange with dark brown background, and content editors can use yellow)
- [x] Highlighting will be only done by content editors. Those Highlighting which are done from the backend, should be editable
- [x] Added color config for text