OscarGodson / EpicEditor

EpicEditor is an embeddable JavaScript Markdown editor with split fullscreen editing, live previewing, automatic draft saving, offline support, and more. For developers, it offers a robust API, can be easily themed, and allows you to swap out the bundled Markdown parser with anything you throw at it.
http://epiceditor.com
MIT License
4.25k stars 334 forks source link

Update Uglify or switch to prevent it removing whitespace characters #273

Closed OscarGodson closed 11 years ago

OscarGodson commented 11 years ago

Right now, each time we minify uglify is removing whitespace characters. We need to fix this for the next release.

Gankra commented 11 years ago

It's just the one \u00a0 in _sanitizeRawContent now, right? That seems to be preserved because it's in a regex. While the core problem persists, it's a non-issue for our source now.

OscarGodson commented 11 years ago

I'm not sure what you mean exactly. Its not preserved, that's the problem. When you run uglify it strips those out making new docs have weird characters. When you say "our source", do you mean EpicEditors or your project at work?

Gankra commented 11 years ago

Epic Editor's. The min.js of the latest development (remember, I just removed a lot of the unicode references to whitespace) seems to have all the whitespace characters I expect. Which are gone?

OscarGodson commented 11 years ago

Oh, I didn't realize you removed that line completely. OK, closing :)