def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def delete(arg=None):
	frappe.get_doc("Communication", frappe.form_dict['name']).delete()