FirebaseExtended / firepad

Collaborative Text Editor Powered by Firebase
Other
3.86k stars 877 forks source link

Don't clear CodeMirror inline styles on setText #384

Closed krafftsimon closed 3 years ago

krafftsimon commented 3 years ago

Description

Bug fix: Firepad.prototype.setText would overwrite the inline styles of the codemirror wrapper element by calling setAttribute('style', 'display: none') instead of style.display = "none".

Code sample

N/A

coveralls commented 3 years ago

Pull Request Test Coverage Report for Build 316823464

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details


Files with Coverage Reduction New Missed Lines %
lib/rich-text-codemirror.js 1 53.86%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 261384869: 0.02%
Covered Lines: 2311
Relevant Lines: 3377

💛 - Coveralls
samtstern commented 3 years ago

@krafftsimon thank you for this PR! Seems like a good change to me.

samtstern commented 3 years ago

This change was released in version 1.5.11