Check $element is not parent when deactivating
Fixes #67
Quick fix to safeApply method
fix blockquote splitting - CA-1272 tweak
build
fix + merge master
add tests for getSurroundings
remove textnode
small tidy up