diff --git a/src/utils/Droppable.js b/src/utils/Droppable.js index 539d0ce7c..d1c5539f2 100644 --- a/src/utils/Droppable.js +++ b/src/utils/Droppable.js @@ -191,6 +191,9 @@ export default class Droppable { } else if (indexOf(types, 'text/json') >= 0) { const json = dataTransfer.getData('text/json'); json && (content = JSON.parse(json)); + } else if (types.length === 1 && types[0] === 'text/plain') { + // Avoid dropping non-selectable and non-editable text nodes inside the editor + content = `
${content}
`; } const result = { content };