Added additional checks if div or textarea are the base for editor.