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

Uncaught TypeError: Object #<Object> has no method 'replace' #261

Closed azhang closed 11 years ago

azhang commented 11 years ago

I'm getting

Uncaught TypeError: Object #<Object> has no method 'replace'
Please report this to https://github.com/chjj/marked. 

for Lexer.prototype.lex

azhang commented 11 years ago

Ok, I figured it out. There is no documentation for using this with requirejs, so I had been trying to require it with name "EpicEditor". turns out it needs to be "marked". I'm going to make another Issue with a request to add this into documentation.

OscarGodson commented 11 years ago

FYI for people who see this ticket looking for how to get it to work with RequireJS: https://github.com/OscarGodson/EpicEditor/wiki/EpicEditor-with-Module-Loaders