Readalong and Wordinfo with richtext.
Introduction:
This wiki page explains the design and implementation of Read-along and Word-info to add in richtext while creating new rich text and existing richtext.
Background:
Currently users are only allowed to add readalong and wordinfo with plain text, after adding text into the editor and click on readalong then open readalong popup where user can select audio from select audio menu.
Problem Statement:
Currently user can add/edit/delete readalong in only plain text.Add readalong/wordinfo in rich text to add readalong and wordinfo in rich text.
Solution 1 - Using CKEDITOR to load readalong plugin.
Challenges:
A user create rich text and added readalong on richtext paragraph and try to add it into the content editor then ckeditor is override current changed object and reset the readalong/wordinfo of object before add into the content editor.
Pros:
- Due to add readalong in richtext header menu easy to used, no need to first add richtext then add readalong feature.
- Avoid the twice operation on same text (create then add).
- Whenever using ckeditor in content editor by default readalong property will be available.
Cons:
- Every time open richtext editor when user want to edit readalong.
- After creating richtext user want to add readalong then need to first open rich text editor then click on readalong icon to add.
Solution 2 - Using Staging manager to load Readalong plugin.
Challenges: Add rich text into the content editor and get current object from editor and apply readalong on that
Pros:
- Readalong is separate from the rich text editor so after creating richtext easy to add readalong.
- No need to open richtext editor for add readalong.
Cons:
- User need to first add rich text then add readalong.
Conclusion:
- Create a readalong icon in richtext editor menu to open readalong popup.
- Add Read Along in sidebar setting.
- Add edit and delete button in Read along button.
- Render the added Read along in rich text.