Fix `editor.get$CommonParent` for some cases.
Merge branch 'selectedContainer_fix' into issue_512
`editor.hasSelection`
Use `hasSelection` here and there.
PhantomJS `.Apple-style-span`s are removed after image insertion.