Skip to content

Commit

Permalink
add more tools in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
lokeshsingh3721 committed Dec 8, 2023
1 parent b1909de commit 7bc2154
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 7bc2154

Please sign in to comment.