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

handle html pastes #17

Closed
ianstormtaylor opened this issue Jun 21, 2016 · 1 comment
Closed

handle html pastes #17

ianstormtaylor opened this issue Jun 21, 2016 · 1 comment

Comments

@ianstormtaylor
Copy link
Owner

No description provided.

@ianstormtaylor
Copy link
Owner Author

Not going to be handled natively, since it depends on the schema, but added an example of how it works non-natively. There's definitely a good case for having a slate-paste-html plugin that makes the mapping easier so that you could just do:

const plugins = [
  new PasteHtmlPlugin({
    boldMark: 'bold',
    italicMark: 'italic',
    codeMark: 'code',
    underlinedMark: 'underline',
    listItemBlock: 'list-item',
    orderedListBlock: 'numbered-list',
    ...
]

And later:

<Editor
  plugins={plugins}
  ...
  />

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