Created
October 7, 2014 12:25
-
-
Save ryandemmer/477ccdf27f538dc29889 to your computer and use it in GitHub Desktop.
Convert braces to named entities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
tinyMCE.onAddEditor.add(function(mgr, ed) { | |
ed.onPostProcess.add(function(ed, o) { | |
o.content = o.content.replace(/\{/g, '{').replace(/\}/g, '}'); | |
}); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment