Class Alfresco.BlogPostEdit
Extends Alfresco.component.Base
BlogPostEdit component.
Component provides blog post creation/edit functionality.
Component provides blog post creation/edit functionality.
Defined in: postedit.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Alfresco.BlogPostEdit(htmlId)
BlogPostEdit constructor.
|
| Field Attributes | Field Name and Description |
|---|---|
|
Stores the data of the currently edited blog post
|
|
|
Object container for initialization options
|
|
|
If true, an external publish/update will be executed after the post has been
|
- Fields borrowed from class Alfresco.component.Base:
- modules, services, widgets
| Method Attributes | Method Name and Description |
|---|---|
|
onFormCancelButtonClick(type, args)
Cancel button click handler
|
|
|
onFormPublishButtonClick(type, args)
Publish button click handler
|
|
|
onFormPublishExternalButtonClick(type, args)
Publish external button click handler
|
|
|
Reenables the inputs which got disabled as part of a comment submit
|
|
|
onFormSubmitSuccess(response)
Form submit success handler
|
|
|
onPublishExternal(postId)
Publishes the blog post to an external blog.
|
|
|
onReady()
Fired by YUI when parent element is available for scripting.
|
|
|
onUpdateExternal(postId)
Updates the external published blog post.
|
|
|
Called when a key was pressed in the rich text editor.
|
- Methods borrowed from class Alfresco.component.Base:
- attachLinkClickListeners, bind, createYUIButtons, destroy, fire, invokeAction, msg, onComponentLoaded, onComponentsLoaded, onReadyWrapper, refresh, setMessages, setOptions
Constructor Detail
Alfresco.BlogPostEdit(htmlId)
BlogPostEdit constructor.
- Parameters:
- {String} htmlId
- The HTML id of the parent element
- Returns:
- {Alfresco.BlogPostEdit} The new Post instance
Field Detail
blogPostData
Stores the data of the currently edited blog post
{object}
options
Object container for initialization options
performExternalPublish
If true, an external publish/update will be executed after the post has been
saved/updated.
saved/updated.
Method Detail
onFormCancelButtonClick(type, args)
Cancel button click handler
- Parameters:
- type
- args
onFormPublishButtonClick(type, args)
Publish button click handler
- Parameters:
- type
- args
onFormPublishExternalButtonClick(type, args)
Publish external button click handler
- Parameters:
- type
- args
onFormSubmitFailure()
Reenables the inputs which got disabled as part of a comment submit
onFormSubmitSuccess(response)
Form submit success handler
- Parameters:
- response
onPublishExternal(postId)
Publishes the blog post to an external blog.
- Parameters:
- postId
onReady()
Fired by YUI when parent element is available for scripting.
Component initialisation, including instantiation of YUI widgets and event listener binding.
Component initialisation, including instantiation of YUI widgets and event listener binding.
onUpdateExternal(postId)
Updates the external published blog post.
- Parameters:
- postId
validateAfterEditorChange()
Called when a key was pressed in the rich text editor.
Will trigger form validation after the last key stroke after a seconds pause.
Will trigger form validation after the last key stroke after a seconds pause.