DennisSuitters / summernote-cleaner

Plugin for Summernote that adds a Button and/or Paste functionality for cleaning MS Word Crud from editor text
MIT License
193 stars 112 forks source link

Unable to paste plain text #91

Closed ghost closed 2 years ago

ghost commented 2 years ago

Summernote: 0.8.18 Jquery: 3.6.0 Browsers: Firefox (97.0.1 64-bit), Edge Chromium 98.0.1108.56 (64-bit)

I was just testing the updated plugin on a test site with only the cleaner plugin and default configuration.

The test consisted of pasting HTML content and plain text content. Pasting HTML worked as expected and inserted the parsed html content.

When pasting plain text, such as below:

line one
line two
line three
line four

Nothing is pasted/inserted into the editor.

Expected result; the following would be pasted into the editable area HTML:

line one<br>
line two<br>
line three
ghost commented 2 years ago

I've had look at this issue, it looks fairly straight forward to resolve. I should be able to generate a pull request next week.

ghost commented 2 years ago

Issue has been resolved with pull request #92. The resolution was to produce the following mark-up (which proved more reliable in testing):

<p>line one</p>
<p>line two</p>
<p>line three</p>