Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this context is wrong when used as EpicEditor parser #64

Open
kspearrin opened this issue Sep 12, 2015 · 0 comments
Open

this context is wrong when used as EpicEditor parser #64

kspearrin opened this issue Sep 12, 2015 · 0 comments

Comments

@kspearrin
Copy link

I am trying to use EpicEditor with MarkdownDeep as the parser like so:

var markdown = new MarkdownDeep.Markdown();
var editorOptions = {
    parser: markdown.Transform
}
var editor = new EpicEditor(editorOptions).load();

When EpicEditor invokes the markdown.Transform function, this is the context of the EpicEditor, not MarkdownDeep.Markdown resulting in the following error on line 145:

Uncaught TypeError: this.ProcessBlocks is not a function

See the following JSFiddle for an example: https://jsfiddle.net/1saet37v/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant