Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
feature: Add exercise plugin in content
Browse files Browse the repository at this point in the history
  • Loading branch information
kulla committed Oct 9, 2023
1 parent 4702b98 commit f24affb
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions src/frontend/plugins/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { createInputExercisePlugin } from '@/serlo-editor/plugins/input-exercise
import { createRowsPlugin } from '@/serlo-editor/plugins/rows'
import { createScMcExercisePlugin } from '@/serlo-editor/plugins/sc-mc-exercise'
import { createSerloTablePlugin } from '@/serlo-editor/plugins/serlo-table'
import { exercisePlugin } from '@/serlo-editor/plugins/exercise'
import { createSpoilerPlugin } from '@/serlo-editor/plugins/spoiler'
import { createTextPlugin } from '@/serlo-editor/plugins/text'
import { createEdusharingAssetPlugin } from './edusharing-asset'
Expand Down Expand Up @@ -114,25 +115,25 @@ export function createPlugins({ ltik }: { ltik: string }): PluginsWithData {
icon: <IconTable />,
},
{
type: EditorPluginType.InputExercise,
type: 'exercise',
plugin: {
...createInputExercisePlugin({}),
defaultTitle: 'Aufgabe mit Eingabefeld',
defaultDescription:
'Interaktive Aufgabe mit Eingabefeld (Text oder Zahlen)',
...exercisePlugin,
defaultTitle: 'Aufgabe mit interaktiven Elementen',
defaultDescription: '(Interaktive) Aufgabe',
},
visibleInSuggestions: true,
icon: <IconFallback />,
},
{
type: EditorPluginType.InputExercise,
plugin: createInputExercisePlugin({}),
visibleInSuggestions: false,
icon: <IconFallback />,
},
{
type: EditorPluginType.ScMcExercise,
plugin: {
...createScMcExercisePlugin(),
defaultTitle: 'Multiple-Choice-Aufgabe',
defaultDescription:
'Interaktive Multiple-Choice-Aufgabe (eine oder mehrere richtige Antworten)',
},
visibleInSuggestions: true,
plugin: createScMcExercisePlugin(),
visibleInSuggestions: false,
icon: <IconFallback />,
},

Expand Down

0 comments on commit f24affb

Please sign in to comment.