diff --git a/webapp/WEB-INF/setupdata/vfs/system/workplace/editors/msdhtml/edithtml.js b/webapp/WEB-INF/setupdata/vfs/system/workplace/editors/msdhtml/edithtml.js
index <HASH>..<HASH> 100644
--- a/webapp/WEB-INF/setupdata/vfs/system/workplace/editors/msdhtml/edithtml.js
+++ b/webapp/WEB-INF/setupdata/vfs/system/workplace/editors/msdhtml/edithtml.js
@@ -42,7 +42,7 @@ function hasSelectedText() {
 	    selectedRange = range;

 	}

 	

-	if ((selectedRange == null) || (selectedRange.htmlText == "") || (selectedRange.htmlText == null)) {

+	if ((selectedRange == null) || (selectedRange.htmlText == null) || (selectedRange.htmlText == "") || (selectedRange.htmlText.search(/<P>&nbsp;<\/P>/) != -1)) {

 		// no text selected, check if an image is selected		

 		try {

 			range = range.item(0);
fixed issue in getSelectedText method throwing JavaScript error