bringapp
    Preparing search index...

    Editor class that handles the saving of the content to the backend. It listens to the save event and sends the content to the backend. It also disables the reusable blocks. It is a singleton class.

    Editor

    init - static method to initialize the singleton instance

    disableReusableBlocks - method to disable the reusable blocks

    subscribeToSaveEvent - method to subscribe to the save event

    update - method to send the content to the backend

    parseBlocks - method to parse the blocks to a format that can be sent to the backend

    registerBlocks - method to register all blocks

    Index

    Methods

    Methods

    • Static method to initialize the singleton instance of the Editor class.

      Parameters

      • blockList: BlockConfig<any>[]

        the list of block configurations

      Returns default

      the instance of the Editor class