Merge pull request #17907 from edx/fsheets/tinymce-align
Add alignment options to the TinyMCE platform plugin
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user