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

Initialising editor with CR LF causes two extra spaces #363

Open
matthewbloch opened this issue Mar 28, 2015 · 0 comments
Open

Initialising editor with CR LF causes two extra spaces #363

matthewbloch opened this issue Mar 28, 2015 · 0 comments

Comments

@matthewbloch
Copy link

I've been using EpicEditor as a souped-up textarea, like this:

var editor = new EpicEditor({
    textarea: "approach_cover_letter",
    clientSideStorage: false,
    basePath: '',
    container: 'cover_letter_editor',
}).load();

i.e. I'm not using the localstorage option, and am just using the synchronised data as part of a normal form submission in Rails.

So I've encoded my form value in that defaultContent, but I find that CR LF is replaced by "CR LF SPACE SPACE", so round trips keep adding more and more spaces.

I can avoid this by stripping the CRs on submission, but it seemed like an obvious enough workflow with an odd-enough side effect that it might be considered a bug :)

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