Updated courses model and fixed rich text editor tool bar drop down problem
This commit is contained in:
		| @@ -36,7 +36,7 @@ export const Route = createFileRoute("/_layout/Courses/AddCourse")({ | ||||
| function AddCourseForms() { | ||||
|  | ||||
|     const toolbar = { | ||||
|         options: ['inline', 'blockType', 'fontSize', 'list', 'textAlign', 'history', 'embedded', 'emoji', 'image'], | ||||
|         options: ['inline', 'blockType', 'fontSize', 'list', 'textAlign', 'history', 'embedded', 'emoji',], | ||||
|         inline: { inDropdown: true }, | ||||
|         list: { inDropdown: true }, | ||||
|         textAlign: { inDropdown: true }, | ||||
| @@ -137,8 +137,8 @@ function AddCourseForms() { | ||||
|                         setLongDescriptionEditorState(newState); | ||||
|                         setlongDescription(draftToHtml(convertToRaw(newState.getCurrentContent()))); | ||||
|                         setValue("long_description", longDescription); | ||||
|  | ||||
|                     }} | ||||
|                      | ||||
|                     toolbar={toolbar} | ||||
|                 /> | ||||
|             </FormControl> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user