Skip to content

Commit

Permalink
Merge pull request #974 from lokeshsingh3721/feat/added-tools-in-editor
Browse files Browse the repository at this point in the history
feat: Added more tools in the editor
  • Loading branch information
ABHISHEK-PANDEY2 authored Dec 30, 2023
2 parents b1909de + 7bc2154 commit 1650919
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/components/Editor/QuillEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,23 @@ const QuillEditor = ({ id, data, tutorial_id }) => {
modules: {
cursors: true,
toolbar: [
[{ header: [1, 2, false] }],
["bold", "italic", "underline"],
["image", "code-block"]
["bold", "italic", "underline", "strike"], // toggled buttons
["blockquote", "code-block"],

[{ header: 1 }, { header: 2 }], // custom button values
[{ list: "ordered" }, { list: "bullet" }],
[{ script: "sub" }, { script: "super" }], // superscript/subscript
[{ indent: "-1" }, { indent: "+1" }], // outdent/indent
[{ direction: "rtl" }], // text direction

[{ size: ["small", false, "large", "huge"] }], // custom dropdown
[{ header: [1, 2, 3, 4, 5, 6, false] }],

[{ color: [] }, { background: [] }], // dropdown with defaults from theme
[{ font: [] }],
[{ align: [] }],
["clean"], // remove formatting button
["link", "image"]
],
history: {
userOnly: true
Expand Down

0 comments on commit 1650919

Please sign in to comment.