Skip to content

Commit

Permalink
remove ai option in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
surajmn1 committed Oct 16, 2023
1 parent 4e6a5d5 commit bf67821
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion studio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
"@editorjs/quote": "^2.3.0",
"@editorjs/raw": "^2.1.2",
"@editorjs/table": "^1.2.2",
"@factly/scooter-core": "^0.0.35",
"@factly/scooter-code-block": "^0.0.42",
"@factly/scooter-core": "^0.0.42",
"@factly/scooter-embed": "^0.0.42",
"@factly/scooter-table": "^0.0.42",
"@factly/scooter-claim":"^0.0.42",
"@monaco-editor/react": "4.4.6",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
Expand Down
12 changes: 12 additions & 0 deletions studio/src/components/FormItems/DescriptionInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import { CLAIMS_API } from '../../constants/claims';
import { ScooterCore as Editor } from "@factly/scooter-core";
import { MEDIA_API } from '../../constants/media';
import { useSelector } from 'react-redux';
import { FactCheck } from "@factly/scooter-claim";
import { Image } from "@factly/scooter-image";
import { Embed } from "@factly/scooter-embed";
import { ScooterTable } from "@factly/scooter-table";
import { CodeBlock } from "@factly/scooter-code-block";

const DescriptionInput = ({
name = 'description',
Expand All @@ -28,6 +33,13 @@ const DescriptionInput = ({
<Form.Item name={name} {...formItemProps}>
{/* <Editor {...inputProps} /> */}
<Editor
extensions={[
FactCheck,
Image,
Embed,
ScooterTable,
CodeBlock,
]}
menuType="bubble"
heightStrategy="flexible"
rows={rows ? rows : 10}
Expand Down

0 comments on commit bf67821

Please sign in to comment.