Methods
addElementAt
- addElementAt(elementId: string | Element[], cx: number, cy: number, container?: Content | null): void
-
Parameters
-
elementId: string | Element[]
-
cx: number
-
cy: number
-
Optional container: Content | null
Returns void
getBaseUrl
- getBaseUrl(includeLanguage?: undefined | false | true): string
-
Parameters
-
Optional includeLanguage: undefined | false | true
Returns string
getCompositionCollections
getModeEnabled
- getModeEnabled(mode: string): boolean
-
Parameters
Returns boolean
getPlanUpgradeUrl
- getPlanUpgradeUrl(): string | null
getSiteLanding
- getSiteLanding(): boolean
getSiteMenus
- getSiteMenus(): MenuStruct[]
goToPage
- goToPage(pageId: number | null, customUrl?: undefined | string): void
-
Parameters
-
pageId: number | null
-
Optional customUrl: undefined | string
Returns void
init
- init(elem: JQuery | HTMLElement): void
-
Parameters
-
elem: JQuery | HTMLElement
Returns void
isAutoLayoutAvailable
- isAutoLayoutAvailable(): boolean
isAutoLayoutEnabled
- isAutoLayoutEnabled(): boolean
isBlockSavingAvailable
- isBlockSavingAvailable(): boolean
isBlockSavingEnabled
- isBlockSavingEnabled(): boolean
isComposerMode
- isComposerMode(): boolean
isElementCompositionSavingEnabled
- isElementCompositionSavingEnabled(): boolean
isElementStyleSavingAvailable
- isElementStyleSavingAvailable(): boolean
isElementStyleSavingEnabled
- isElementStyleSavingEnabled(): boolean
isFullScreenSupported
- isFullScreenSupported(): boolean
isHelpAvailable
- isHelpAvailable(): boolean
isHistoryRedoAvailable
- isHistoryRedoAvailable(): boolean
isHistoryUndoAvailable
- isHistoryUndoAvailable(): boolean
isImportAvailable
- isImportAvailable(): boolean
isImportVisible
- isImportVisible(): boolean
isPublishAvailable
- isPublishAvailable(): boolean
isResetTemplateButtonVisible
- isResetTemplateButtonVisible(): boolean
isTemplateSavingAvailable
- isTemplateSavingAvailable(): boolean
isTemplateSavingEnabled
- isTemplateSavingEnabled(): boolean
isTemplateSelectorVisible
- isTemplateSelectorVisible(): boolean
resetSite
- resetSite(needComfirmDialog?: undefined | false | true): void
-
Parameters
-
Optional needComfirmDialog: undefined | false | true
Returns void
save
- save(useDialog: boolean, callback?: undefined | function): void
-
Parameters
-
useDialog: boolean
-
Optional callback: undefined | function
Returns void
saveElementComposition
- saveElementComposition(): void
setAutoLayoutEnabled
- setAutoLayoutEnabled(enabled: boolean): void
setMode
- setMode(mode: string): void
setModeEnabled
- setModeEnabled(mode: string, enabled: boolean): void
-
Parameters
-
mode: string
-
enabled: boolean
Returns void
setPreviewWidth
- setPreviewWidth(width: number): void
setSiteLanding
- setSiteLanding(enabled: boolean): void
showBackupRestoreDialog
- showBackupRestoreDialog(): void
showGridAndGuidesDialog
- showGridAndGuidesDialog(): void
showSaveAsTemplateDialog
- showSaveAsTemplateDialog(): void
showSaveBlockDialog
- showSaveBlockDialog(): void
showSaveElementStyleDialog
- showSaveElementStyleDialog(): void
showSiteBackgroundDialog
- showSiteBackgroundDialog(): void
showSiteFaviconDialog
- showSiteFaviconDialog(): void
showSitePropertiesDialog
- showSitePropertiesDialog(): void
showSiteSEODialog
- showSiteSEODialog(): void
showSiteStylesDialog
- showSiteStylesDialog(): void
showTemplateChooser
- showTemplateChooser(): void
sortAndAutoAlignElements
- sortAndAutoAlignElements(): void
toggleFullScreen
- toggleFullScreen(): boolean
Will be removed after 2019-06-01. Use getCompositionCollections instead.