From 64507bd5fd38ac72760c29fbdd6525cab564c978 Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Fri, 11 Jan 2013 10:36:42 -0500 Subject: [PATCH 1/2] Drop down for markup done but w/o new icons --- cms/templates/widgets/problem-edit.html | 4 ++++ common/lib/xmodule/xmodule/js/src/problem/edit.coffee | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/cms/templates/widgets/problem-edit.html b/cms/templates/widgets/problem-edit.html index 3458bcde65..cdfa50a7e0 100644 --- a/cms/templates/widgets/problem-edit.html +++ b/cms/templates/widgets/problem-edit.html @@ -14,6 +14,10 @@ class="problem-editor-icon number">
  • +
  • +
  • diff --git a/common/lib/xmodule/xmodule/css/problem/edit.scss b/common/lib/xmodule/xmodule/css/problem/edit.scss index ba5a87feb4..bce0cca390 100644 --- a/common/lib/xmodule/xmodule/css/problem/edit.scss +++ b/common/lib/xmodule/xmodule/css/problem/edit.scss @@ -45,11 +45,32 @@ } } + .advanced-toggle { + @include white-button; + height: auto; + margin-top: -1px; + padding: 3px 9px; + font-size: 12px; + + &.current { + border: 1px solid $lightGrey !important; + border-radius: 3px !important; + background: $lightGrey !important; + color: $darkGrey !important; + pointer-events: none; + cursor: none; + + &:hover { + box-shadow: 0 0 0 0 !important; + } + } + } + .cheatsheet-toggle { width: 21px; height: 21px; padding: 0; - margin: 3px 5px 0 16px; + margin: 0 5px 0 15px; border-radius: 22px; border: 1px solid #a5aaaf; background: #e5ecf3; diff --git a/common/lib/xmodule/xmodule/js/src/problem/edit.coffee b/common/lib/xmodule/xmodule/js/src/problem/edit.coffee index d913ca0fa2..5db981ccac 100644 --- a/common/lib/xmodule/xmodule/js/src/problem/edit.coffee +++ b/common/lib/xmodule/xmodule/js/src/problem/edit.coffee @@ -59,7 +59,7 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor ### confirmConversionToXml: -> # TODO: use something besides a JavaScript confirm dialog? - return confirm("If you convert to the XML source representation, which is used by the Advanced Editor, you cannot go back to using the Simple Editor.\n\nProceed with conversion to XML?") + return confirm("If you use the Advanced Editor, this problem will be converted to XML and you will not be able to return to the Simple Editor Interface.\n\nProceed to the Advanced Editor and convert this problem to XML?") ### Event listener for toolbar buttons (only possible when markdown editor is visible).