Toggling of code should mark editor as dirty.

This commit is contained in:
cahrens
2013-01-23 16:19:17 -05:00
parent cd78b27b50
commit 2969a9e48d

View File

@@ -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) ->