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
Method
init - static method to initialize the singleton instance
Method
disableReusableBlocks - method to disable the reusable blocks
Method
subscribeToSaveEvent - method to subscribe to the save event
Method
update - method to send the content to the backend
Method
parseBlocks - method to parse the blocks to a format that can be sent to the backend
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
Method
init - static method to initialize the singleton instance
Method
disableReusableBlocks - method to disable the reusable blocks
Method
subscribeToSaveEvent - method to subscribe to the save event
Method
update - method to send the content to the backend
Method
parseBlocks - method to parse the blocks to a format that can be sent to the backend
Method
registerBlocks - method to register all blocks