Commit fe8e25e7 by chrisndodge

Merge pull request #1341 from MITx/feature/christina/tiny-mce

Toggling of code should mark editor as dirty.
parents 548f3de5 2969a9e4
......@@ -54,6 +54,9 @@ class @HTMLEditingDescriptor
image : '/static/images/ico-tinymce-code.png',
onclick : () ->
ed.formatter.toggle('code')
# Without this, the dirty flag does not get set unless the user also types in text.
# Visual Editor must be marked as dirty or else we won't populate the Advanced Editor from it.
ed.isNotDirty = false
})
ed.onNodeChange.add((editor, command, e) ->
......
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