|
@@ -38,7 +38,7 @@ export default function insertContent( model, content, selectable ) {
|
|
|
|
|
|
|
|
if ( !selectable ) {
|
|
if ( !selectable ) {
|
|
|
selection = model.document.selection;
|
|
selection = model.document.selection;
|
|
|
- } else if ( selectable instanceof DocumentSelection ) {
|
|
|
|
|
|
|
+ } else if ( selectable instanceof Selection ) {
|
|
|
selection = selectable;
|
|
selection = selectable;
|
|
|
} else {
|
|
} else {
|
|
|
selection = new Selection( selectable );
|
|
selection = new Selection( selectable );
|