(properties and functions starting with an underscore ('_') are private and actually not to be used from outside the editor; if you use it and would love to have it made public, please file a ticket at http://dev.fckeditor.net/)
This list was generated by simply iterating the editorInstance for FCKeditor 2.6.1
var list = ''; for (name in editorInstance) { list += typeof(editorInstance[name]) + ' ' + name + '<br />';// +' = '+ editorInstance[a]; } document.write(list);
functions
AttachToOnSelectionChange
CreateElement
CreateLink
ExecOnSelectionChange
ExecOnSelectionChangeTimer
ExecuteNamedCommand
ExecuteRedirectedNamedCommand
FixBody
Focus
GetClipboardHTML
GetData
GetHTML
GetInstanceObject
GetLinkedFieldValue
GetNamedCommandState
GetNamedCommandValue
GetParentForm
GetRealElement
GetXHTML
InitializeBehaviors
InsertElement
InsertElementAndGetIt
InsertHtml
IsDirty
MakeEditable
OnAfterSetHTML
OnDoubleClick
Paste
PasteAsPlainText
PasteFromWord
Preview
ProtectEvents
ProtectEventsRestore
ProtectTags
ProtectUrls
RegisterDoubleClickHandler
ResetIsDirty
SetData
SetHTML
SetStatus
StartEditor
SwitchEditMode
UpdateLinkedField
_BaseGetNamedCommandState
_DblClickListener
_ExecCheckCaret
_ExecCheckEmptyBlock
_ExecDrop
_ExecPaste
_FillEmptyBlock
_InsertBlockElement
_IsFunctionKey
_KeyDownListener
_KeyDownUndo
_TabKeyHandler
booleans
HasFocus
MouseDownFlag
_ForceResetIsDirty
numbers
EditMode
Status
objects
Commands
Config
ContextMenu
DTD
DataProcessor
DocTypeDeclaration
EditingArea
EditorDocument
EditorWindow
EnterKeyHandler
Events
FocusManager
KeystrokeHandler
Language
LinkedField
Plugins
RedirectNamedCommands
RegisteredDoubleClickHandlers
Selection
Styles
Toolbar
ToolbarSet
strings
Description
Name
StartupValue
TempBaseTag
Re: editorInstance (API) properties and functions - 2.6.1
how can i get the instance on window onload of the fckEditor.It is giving Error FCKEditorAPI is null.
Regards
Re: editorInstance (API) properties and functions - 2.6.1
Finding all instances on the page can be done like this:
so if you have only one you could do
After this code you'll have the variables fckeditorName and editorInstance.
Or you could use the FCKeditor_OnComplete to get it (the function receives the editorInstance as a parameter, see http://docs.fckeditor.net/FCKeditor_2.x ... API#Events)
Re: editorInstance (API) properties and functions - 2.6.1
I am making the FCK Editor like
window.onload = function()
{
var oFCKeditor = new FCKeditor("ctl00_MainContent_txtBody_MailSender") ;
oFCKeditor.BasePath = "../../Scripts/fckeditor/" ;
oFCKeditor.Height = 300;
}
How to proceed to attach a event to it.How to get the instance from it.All is done in window.load().
please help
Re: editorInstance (API) properties and functions - 2.6.1
Did you open http://docs.fckeditor.net/FCKeditor_2.x ... API#Events?
Just create the function FCKeditor_OnComplete anywhere in your script. It will be called when the FCKeditor has finished loading and will receive the editorInstance as a parameter.