taqueci / redmine_wysiwyg_editor

Redmine WYSIWYG Editor plugin
GNU General Public License v2.0
117 stars 28 forks source link

Duplicating of the comment actions, when pasting image after heading #19

Open chevi opened 6 years ago

chevi commented 6 years ago

Steps to reproduce:

  1. open existed redmine issue
  2. In the Notes set Heading 4 and type something image
  3. Press Enter key to move cursor next line
  4. Copy image to clipboard and paste it
  5. image
  6. Update issue
  7. Edit this issue again
  8. type any text into the Notes
  9. Update issue

Result image

Note: if add another one Note, it gets image

And if issue has a lot of comments, this bug freeze page, when it loads.

taqueci commented 6 years ago

I had tried on Redmine 3.3 and 3.4, but can not reproduce it.

Environment:
  Redmine version                3.3.0.stable
  Ruby version                   2.3.3-p222 (2016-11-21) [x86_64-linux]
  Rails version                  4.2.6
  Environment                    development
  Database adapter               SQLite
SCM:
  Subversion                     1.8.10
  Mercurial                      3.1.2
  Bazaar                         2.7.0
  Git                            2.1.4
  Filesystem                     
Redmine plugins:
  redmine_wysiwyg_editor         0.2.8
Environment:
  Redmine version                3.3.0.stable
  Ruby version                   2.3.3-p222 (2016-11-21) [x86_64-linux]
  Rails version                  4.2.6
  Environment                    development
  Database adapter               SQLite
SCM:
  Subversion                     1.8.10
  Mercurial                      3.1.2
  Bazaar                         2.7.0
  Git                            2.1.4
  Filesystem                     
Redmine plugins:
  a_common_libs                  1.1.3
  clipboard_image_paste          1.12
  redmine_embedded_video         0.0.3.1
  redmine_issue_templates        0.2.0
  redmine_theme_changer          0.2.0
  redmine_work_time              0.3.4
  redmine_wysiwyg_editor         0.2.8
  time_logger                    0.5.4
Environment:
  Redmine version                3.4.5.stable.17297
  Ruby version                   2.3.3-p222 (2016-11-21) [x86_64-linux-gnu]
  Rails version                  4.2.8
  Environment                    production
  Database adapter               Mysql2
SCM:
  Subversion                     1.9.5
  Git                            2.11.0
  Filesystem                     
Redmine plugins:
  redmine_wysiwyg_editor         0.2.8
chevi commented 6 years ago

Hi @taqueci I repeat issue with 0.2.8 version of plugin

The reason of this bug is when use Heading style and paste image on the next line. Add note: image Save it Save another one note with simple text. Result: image

Edit comment with duplicates and change Heading style of text to Paragraph. Save note. image Result: image