change wording of heading formats in new RCE

closes LA-272
flag=rce_enhancements

test plan:
- in new RCE, the format dropdown should read "Header 2/3/4" and should
  still work.

Change-Id: Icae5849055ef9d81a4e73cf5c5b5e052af5be65e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/219122
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Tested-by: Jenkins
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Jon Willesen <jonw+gerrit@instructure.com>
This commit is contained in:
Jon Willesen 2019-12-02 13:03:41 -07:00 committed by Jon Willesen
parent 18d7d90991
commit b1ab5f7771
2 changed files with 6 additions and 6 deletions

View File

@ -748,9 +748,9 @@ class RCEWrapper extends React.Component {
...options, ...options,
block_formats: [ block_formats: [
`${formatMessage('Header')}=h2`, `${formatMessage('Heading 2')}=h2`,
`${formatMessage('Subheader')}=h3`, `${formatMessage('Heading 3')}=h3`,
`${formatMessage('Small header')}=h4`, `${formatMessage('Heading 4')}=h4`,
`${formatMessage('Preformatted')}=pre`, `${formatMessage('Preformatted')}=pre`,
`${formatMessage('Paragraph')}=p` `${formatMessage('Paragraph')}=p`
].join('; '), ].join('; '),

View File

@ -308,15 +308,15 @@ module RCENextPage
end end
def header_option def header_option
f('[role="menuitemcheckbox"][title="Header"]') f('[role="menuitemcheckbox"][title="Heading 2"]')
end end
def subheader_option def subheader_option
f('[role="menuitemcheckbox"][title=" Subheader"]') f('[role="menuitemcheckbox"][title=" Heading 3"]')
end end
def small_header_option def small_header_option
f('[role="menuitemcheckbox"][title=" Small header"]') f('[role="menuitemcheckbox"][title=" Heading 4"]')
end end
def preformatted_option def preformatted_option