I figured it out myself. You need to access the property called "Editor1_HTMLContent" where "Editor1" is ID of your editor control.