From c29682a6a5d7e6825f0891989b77f3d200a7bbd7 Mon Sep 17 00:00:00 2001 From: Farhanah Sheets Date: Mon, 9 Apr 2018 16:44:04 -0400 Subject: [PATCH 1/2] Add alignment options to the TinyMCE platform plugin --- common/lib/xmodule/xmodule/js/src/html/edit.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/common/lib/xmodule/xmodule/js/src/html/edit.coffee b/common/lib/xmodule/xmodule/js/src/html/edit.coffee index 058fb3586e..e4ab125c3c 100644 --- a/common/lib/xmodule/xmodule/js/src/html/edit.coffee +++ b/common/lib/xmodule/xmodule/js/src/html/edit.coffee @@ -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", { From 752cf12938f0e6d55dc806f661e4a692fa0007a0 Mon Sep 17 00:00:00 2001 From: Farhanah Sheets Date: Tue, 10 Apr 2018 15:48:55 -0400 Subject: [PATCH 2/2] Add align buttons to test check --- cms/djangoapps/contentstore/features/html-editor.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cms/djangoapps/contentstore/features/html-editor.py b/cms/djangoapps/contentstore/features/html-editor.py index a858fabbf0..84497bee7d 100644 --- a/cms/djangoapps/contentstore/features/html-editor.py +++ b/cms/djangoapps/contentstore/features/html-editor.py @@ -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',