added check to inline editor to make sure the document is html
updated check for tag to return null
added check to make sure selection is not more than one line when opening inline editor