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

How to Wrap the text in Markdown View of CKEditor? #32

Open
pancodia opened this issue Sep 7, 2018 · 2 comments
Open

How to Wrap the text in Markdown View of CKEditor? #32

pancodia opened this issue Sep 7, 2018 · 2 comments

Comments

@pancodia
Copy link

pancodia commented Sep 7, 2018

Is it possible to wrap the text in the markdown editing mode? Currently if I don't start a new line, all text s show on a single line, which makes the editor very wide.

screen shot 2018-09-07 at 11 53 44 am

@mach-kernel
Copy link

I was about to fork and add this myself because I needed it, but noticed that the plugin just wraps CodeMirror:

  // https://github.com/hectorguo/CKEditor-Markdown-Plugin/blob/master/markdown/plugin.js#L102-L105
  // https://codemirror.net/doc/manual.html
  config.markdown = {
    lineWrapping: true
  }

This will do it.

@jmalarcon
Copy link

@mach-kernel Works perfectly. Thanks!

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

3 participants