Skip to content

Commit

Permalink
Reconfigured the RTE boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
SamGodwin2 committed Oct 30, 2019
1 parent 12a2cd4 commit c1f7fec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import pageFragment from "graphql/fragments/page.graphql";
const contentControls = {
bold: true,
emphasis: true,
piping: true,
list: true,
};

Expand Down
10 changes: 6 additions & 4 deletions eq-author/src/App/page/Design/QuestionPageEditor/MetaEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,18 @@ const titleControls = {
};

const descriptionControls = {
bold: true,
emphasis: true,
piping: true,
};
const definitionControls = {
list: true,
emphasis: true,
bold: true,
};

const guidanceControls = {
heading: true,
bold: true,
list: true,
piping: true,
};

const Paragraph = styled.p`
Expand Down Expand Up @@ -130,7 +132,7 @@ export class StatelessMetaEditor extends React.Component {
label="Content"
value={page.definitionContent}
onUpdate={onChangeUpdate}
controls={descriptionControls}
controls={definitionControls}
multiline
fetchAnswers={fetchAnswers}
metadata={page.section.questionnaire.metadata}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ exports[`AdditionalInfo should render 1`] = `
"bold": true,
"emphasis": true,
"list": true,
"piping": true,
}
}
disabled={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ exports[`MetaEditor should render 1`] = `
autoFocus={false}
controls={
Object {
"bold": true,
"emphasis": true,
"piping": true,
}
Expand Down Expand Up @@ -94,7 +93,7 @@ exports[`MetaEditor should render 1`] = `
Object {
"bold": true,
"emphasis": true,
"piping": true,
"list": true,
}
}
disabled={false}
Expand Down Expand Up @@ -122,9 +121,7 @@ exports[`MetaEditor should render 1`] = `
controls={
Object {
"bold": true,
"heading": true,
"list": true,
"piping": true,
}
}
disabled={false}
Expand Down

0 comments on commit c1f7fec

Please sign in to comment.