jncraton / box-line-text

Simple virtual whiteboarding
Other
455 stars 27 forks source link

Normalize text content across browsers #5

Closed jncraton closed 4 years ago

jncraton commented 4 years ago

The contenteditable p tag used for text currently has at least a few inconsistencies across browsers:

  1. Hard breaks may be handled as either <br> or <div> tags and perhaps some others creating inconsistent behavior.
  2. Pasted rich text content may cause issues and isn't styled properly.

These issues should be addressed by only allowing plain text to be used.