Merge pull request #17907 from edx/fsheets/tinymce-align

Add alignment options to the TinyMCE platform plugin
This commit is contained in:
Farhanah Sheets
2018-04-12 13:16:15 -04:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -167,6 +167,10 @@ def check_toolbar_buttons(step):
'forecolor',
# This is our custom "code style" button, which uses an image instead of a class.
'none',
'alignleft',
'aligncenter',
'alignright',
'alignjustify',
'bullist',
'numlist',
'outdent',

View File

@@ -83,6 +83,7 @@ class @HTMLEditingDescriptor
image_advtab: true,
# We may want to add "styleselect" when we collect all styles used throughout the LMS
toolbar: "formatselect | fontselect | bold italic underline forecolor wrapAsCode | " +
"alignleft aligncenter alignright alignjustify | " +
"bullist numlist outdent indent blockquote | link unlink " +
"#{if @new_image_modal then 'insertImage' else 'image'} | code",
block_formats: interpolate("%(paragraph)s=p;%(preformatted)s=pre;%(heading3)s=h3;%(heading4)s=h4;%(heading5)s=h5;%(heading6)s=h6", {