When
Code |
---|
Editor = Object.Translation; |
is executed the document content is set and it starts internal loading (parsing into DOM and others which a web browser performs on it) procedure when it is ended an event is fired.
So my example is complete enought. Except one thing: if the field is empty insert an empty but valid HTML in there:
Code |
---|
If IsBlankString(Object.Translation) Then
Editor = "<html><body></body></html>";
Else
Editor = Object.Translation;
EndIf; |