sproutcore / rich-text-editor

A rich text editor for SproutCore.
Other
6 stars 6 forks source link

Added check to make sure the range selected is inside the editor #30

Closed phillipweston closed 8 years ago

phillipweston commented 8 years ago

In some instances the range will be set outside the editor and cause the link to be inserted at whatever location the range is set to, causing links to be inserted into strange places. You can observe this by entering text into a normal field, then clicking the add link button without first setting your cursor inside the WYSIWYG. This update will force the range to be set to the editor if it is not already.

mauritslamers commented 8 years ago

Looks good to me. Merging.