remove redundant code in sourcedialog plugin
Changelog entry.
Merge branch 't/11290'
Check if the white space is the end of the block in enlarge.
Makes code more readable and ready to future changes.
Check id offset == container.length before enlarge end.
Handle white spaces after element.
Prevent enlarge going outside contenteditable="false".