Here is my **HTML**:

```
<img src="Image/icons/preview.png" alt="Preview" id="imgPreviewHeader" onclick="ViewHtml(this.id);" />
<textarea rows="30" cols="22" id="txtHeader" class="editor"></textarea>`

```

And **JavaScript** code:

```
$("#" + imgPreviewHeader).closest('textarea.editor').ckeditorGet().execCommand('source');

```

Can anybody help me..?