From 98026e4325b5f8554a2e1db2c40dd4a7fcc700bd Mon Sep 17 00:00:00 2001 From: cahrens Date: Fri, 8 Feb 2013 12:46:32 -0500 Subject: [PATCH] A couple minor bug fixes. https://edx.lighthouseapp.com/projects/102637/tickets/173 https://edx.lighthouseapp.com/projects/102637/tickets/177 --- cms/templates/settings.html | 2 +- common/lib/xmodule/xmodule/js/src/html/edit.coffee | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cms/templates/settings.html b/cms/templates/settings.html index 8cd4246da9..c96d5686fd 100644 --- a/cms/templates/settings.html +++ b/cms/templates/settings.html @@ -206,7 +206,7 @@ from contentstore import utils

Introducing Your Course

- Information for perspective students + Information for prospective students
diff --git a/common/lib/xmodule/xmodule/js/src/html/edit.coffee b/common/lib/xmodule/xmodule/js/src/html/edit.coffee index 238182f3d9..eae9df0f20 100644 --- a/common/lib/xmodule/xmodule/js/src/html/edit.coffee +++ b/common/lib/xmodule/xmodule/js/src/html/edit.coffee @@ -107,12 +107,13 @@ class @HTMLEditingDescriptor # In order for isDirty() to return true ONLY if edits have been made after setting the text, # both the startContent must be sync'ed up and the dirty flag set to false. visualEditor.startContent = visualEditor.getContent({format: "raw", no_events: 1}); - visualEditor.isNotDirty = true @focusVisualEditor(visualEditor) @showingVisualEditor = true focusVisualEditor: (visualEditor) => visualEditor.focus() + # Need to mark editor as not dirty both when it is initially created and when we switch back to it. + visualEditor.isNotDirty = true if not @$mceToolbar? @$mceToolbar = $(@element).find('table.mceToolbar')