Commit 2ae2ec94 by cahrens

Include all the controls on the toolbar that we previously had.

parent dda58661
...@@ -28,11 +28,9 @@ class @HTMLEditingDescriptor ...@@ -28,11 +28,9 @@ class @HTMLEditingDescriptor
convert_urls : false, convert_urls : false,
# TODO: we should share this CSS with studio (and LMS) # TODO: we should share this CSS with studio (and LMS)
content_css : "#{baseUrl}/css/tiny-mce.css", content_css : "#{baseUrl}/css/tiny-mce.css",
# The default popup_css path uses an absolute path referencing page in which tinyMCE is being hosted.
# Supply the correct relative path instead.
popup_css: "#{baseUrl}/js/vendor/tiny_mce/themes/advanced/skins/default/dialog.css",
formats : { formats : {
# Disable h4, h5, and h6 styles as we don't have CSS for them. # Disable h4, h5, and h6 styles as we don't have CSS for them.
# TODO: this doesn't seem to be working with the upgrade.
h4: {}, h4: {},
h5: {}, h5: {},
h6: {}, h6: {},
...@@ -41,13 +39,13 @@ class @HTMLEditingDescriptor ...@@ -41,13 +39,13 @@ class @HTMLEditingDescriptor
}, },
# Disable visual aid on borderless table. # Disable visual aid on borderless table.
visual:false, visual:false,
plugins: "textcolor, link, image",
# We may want to add "styleselect" when we collect all styles used throughout the LMS # We may want to add "styleselect" when we collect all styles used throughout the LMS
toolbar : "formatselect,fontselect,bold,italic,underline,forecolor,|,bullist,numlist,outdent,indent,|,link,unlink,image,|,blockquote,wrapAsCode,", # Can have a single toolbar by just specifying "toolbar". Splitting for now so all are visible.
theme_advanced_toolbar_location : "top", toolbar1 : "formatselect fontselect bold italic underline forecolor",
theme_advanced_toolbar_align : "left", toolbar2 : "bullist numlist outdent indent | blockquote wrapAsCode | link unlink | image",
theme_advanced_statusbar_location : "none", # TODO: i18n
theme_advanced_resizing : true, block_formats : "Paragraph=p;Preformatted=pre;Heading 1=h1;Heading 2=h2;Heading 3=h3",
theme_advanced_blockformats : "p,pre,h1,h2,h3",
width: '100%', width: '100%',
height: '400px', height: '400px',
menubar: false, menubar: false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment