guardian / scribe

DEPRECATED: A rich text editor framework for the web platform

Home Page:http://guardian.github.io/scribe/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pasting inserts paragraph tags even in inline-mode

danburzo opened this issue · comments

This piece of code assumes we always want to insert <p> tags:

Scribe.prototype.insertPlainText = function (plainText) {
    this.insertHTML('<p>' + this._plainTextFormatterFactory.format(plainText) + '</p>');
 };

I can fix this in a PR, any preferred approaches here?