contentbox.modules.contentbox-admin.modules.contentbox-markdowneditor.models

Class MarkdownEditor

lucee.Component
    extended by contentbox.modules.contentbox-admin.modules.contentbox-markdowneditor.models.MarkdownEditor
All Implemented Interfaces:
IEditor

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- SimpleMDE Implementation

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any log


    • access = public
    • returntype = any
    • inject = logbox:logger:{this}
    true false
    Constructor Summary
    init(any coldbox, any settingService, any html)
          Constructor.
    Method Summary
    private any buildToolbarJS(any editor)
         Build the toolbar JS according to editor name.
    private any compileJS(any iData, any iData2)
         Compile the needed JS to display into the screen.
    any getDisplayName()
         Get the display name of an editor.
    string getLog()
    any getName()
         Get the internal name of an editor.
    any loadAssets()
         This is fired once editor javascript loads, you can use this to return back functions, asset calls, etc.
    any setLog(any log)
    any shutdown()
         Shutdown the editor(s) on a page.
    any startup()
         Startup the editor(s) on a page.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any coldbox, any settingService, any html)

    Constructor

    Parameters:
    coldbox
    settingService
    html

    Property Detail

    log

    property any log

    Attributes:
    access - public
    required - false
    returntype - any
    inject - logbox:logger:{this}
    serializable - true

    Method Detail

    buildToolbarJS

    private any buildToolbarJS(any editor)

    Build the toolbar JS according to editor name

    Parameters:
    editor - The editor name to bind the toolbar to

    compileJS

    private any compileJS(any iData, any iData2)

    Compile the needed JS to display into the screen

    Parameters:
    iData
    iData2

    getDisplayName

    public any getDisplayName()

    Get the display name of an editor

    Specified by:
    getDisplayName in interface IEditor

    getLog

    public string getLog()


    getName

    public any getName()

    Get the internal name of an editor

    Specified by:
    getName in interface IEditor

    loadAssets

    public any loadAssets()

    This is fired once editor javascript loads, you can use this to return back functions, asset calls, etc. return the appropriate JavaScript

    Specified by:
    loadAssets in interface IEditor

    setLog

    public any setLog(any log)

    Parameters:
    log

    shutdown

    public any shutdown()

    Shutdown the editor(s) on a page

    Specified by:
    shutdown in interface IEditor

    startup

    public any startup()

    Startup the editor(s) on a page

    Specified by:
    startup in interface IEditor