rubycentral / cfp-app

Rails app for managing a conference CFP
MIT License
223 stars 154 forks source link

Fixes bug where indenting is lost switching from tinyMCE to CodeMirror #313

Closed jonsgreen closed 2 years ago

jonsgreen commented 2 years ago

Reason for Change

This was an issue that Devon pointed out where all indenting was lost on the html when switching back to CodeMirror editor from tinyMCE editor.

jonsgreen commented 2 years ago

@adarsh I agree totally. I had the same idea when I realized that I actually had broken switching between the editors with my initial fix which unfortunately surfaced for us during the demo.

I have corrected the code and I have now also added an integration spec that ensures that both content and indenting is not lost switching between editors.