Skip to content

Commit

Permalink
Add showFormatter option to codeEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
siefkenj committed Sep 3, 2023
1 parent e7ce785 commit 2f50260
Show file tree
Hide file tree
Showing 8 changed files with 441 additions and 360 deletions.
8 changes: 8 additions & 0 deletions packages/doenetml/src/Core/components/CodeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ export default class CodeEditor extends BlockComponent {
public: true,
};

attributes.showFormatter = {
createComponentOfType: "boolean",
createStateVariable: "showFormatter",
defaultValue: false,
forRenderer: true,
public: true,
};

attributes.resultsLocation = {
createComponentOfType: "text",
createStateVariable: "resultsLocation",
Expand Down
2 changes: 1 addition & 1 deletion packages/doenetml/src/Core/doenetSchema.json

Large diffs are not rendered by default.

Loading

0 comments on commit 2f50260

Please sign in to comment.