|
| Control ID of mce editor |
 |
Mon, 16 Oct 2006 04:20:36 +000 |
Hi everyone,
I'm using CS 2.1 Express Edition. I would like to know the ID of mce editor
control (an iframe I believe) to use it in a javascript function. Can anyone
confirm for me that the id is
mce_editor_0ctl00_ctl01_bcr_PostForm___PostBody___Editor ?
|
| Post Reply
|
| Re: Control ID of mce editor |
 |
Tue, 17 Oct 2006 03:33:52 +000 |
The id should just be mce_editor_0 and you should be able to control the editor
using the functions found in the wrapper. For example, if you want to update
the content of an editor simply call
tinyMCE.getInstanceById(tinyMCE.getEditorId('mce_editor_0')).execCommand('mceSet
Content', false, 'YOUR CONTENT HERE')
Also, I recommend using HTMLSource Viewer, it is an excellent program for
analyzing the source of a page.
|
| Post Reply
|
|
|
|
|
|
|
|
|
|