taqueci / redmine_wysiwyg_editor

Redmine WYSIWYG Editor plugin
GNU General Public License v2.0
114 stars 27 forks source link

Preserve HTML-Content #122

Closed mmundi72 closed 11 months ago

mmundi72 commented 3 years ago

When adding a < br > it is being saved properly and everything looks good. Editing the page again the < br > is visible in the Markdown view but it is being removed as soon as the page is beeing edited with visual editor.

Here is an example:

Create new wiki page and add a table using visual edtior: image

Save the page. Result: image

Edit the page and switch to Markdown. < br > is visible: image

Switch to visual editor. Click into the cell with the < br >. Do not make any changes to the content. Switch back zu Markdown. < br > is now removed. image

danaivehr commented 2 years ago

I ran into this problem too. I've made some search and found this: https://www.redmine.org/issues/32845#note-1

So one should put an ordinary line brake to achieve the multiline cells. The problem is when you input "Enter", visual editor inputs "p.", which is ignored inside the table.

You can press "Shift + Enter" to pass the line break.

Visual editor: image Result: image

mmundi72 commented 2 years ago

We are using markdown as this also provides the possibility to use some HTML. The solution seems to work with textile but not with markdown. I still think that manually entered HTML should be maintained.

mmundi72 commented 11 months ago

Any news concerning this issue? It's now more than 2 years old. Users in our company are asking when this is going to be fixed. Thanks for your work.

taqueci commented 11 months ago

Hi @mmundi72

Version 0.30.0 has just been released. <br> in Markdown table is reserved. Please confirm.

mmundi72 commented 11 months ago

Yes, that looks great. Thank you for your work!