Open surajmn1 opened 1 year ago
This is pending on the issue opened on TipTap: https://github.com/ueberdosis/tiptap/issues/4204
After discussing we have revised the requirements for the extension .This would require adding two menu items to the slash commands menu as follows :
[ ] Add Existing Claim
Upon clicking, a modal will appear allowing users to search for existing claims.
Claims will be displayed as rows in a table, showing only their titles.
Users can select the desired claims from the search results, and they will be automatically added to the editor.
For UI reference, please check the Unsplash plugin UI available at uppy.io/examples.
[ ] Add New Claim
Upon clicking, a modal will appear containing a form to create a new claim.
After submitting the form, the new claim will be added to the editor.
Should be saved in the database and also added to the editor.
For UI reference, please refer to the current form UI within Dega used for editing a claim.
Tasks left:
The claims extension should parse below markup and render ui similar to what we have in dega for displaying claims in fact checks within the editor.