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

Feature Request: Alias unwrap:false to wrap and also apply it to editor #60

Closed
Dimava opened this issue Aug 8, 2023 · 3 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@Dimava
Copy link
Contributor

Dimava commented Aug 8, 2023

Summary

make wrap act same as unwrap:false

Motivation

It makes using wrap much more straigntforward

Existing Requests?

#12

@Dimava Dimava added the enhancement New feature or request label Aug 8, 2023
@Dimava
Copy link
Contributor Author

Dimava commented Aug 8, 2023

Wrapping in editor requires EditorView.lineWrapping extension
https://discuss.codemirror.net/t/word-wrapping/4512

new EditorView({
    state: EditorState.create({
        extensions: [
            EditorView.lineWrapping
        ]
    })
})

@mayurankv
Copy link
Owner

Thank you for the comment on editor view line wrapping. I'll have a look into that (though it's not on the list of urgent stuff to sort).

That alias makes a lot of sense, I'll try and add that in tomorrow. Really appreciate your help and insights!

@mayurankv
Copy link
Owner

Added the aliases. Should be released in the next version. Adding the editor wrapping information to #12

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

No branches or pull requests

2 participants