Skip to main content

@shakrmedia/editor-sdk ShakrEditor > close

ShakrEditor.close() method

Close Shakr Editor iframe window. This will trigger 'confirm_close' event if there are any data not saved yet. Or if all data were saved properly, it will close the Shakr Editor window immediately.

Signature:
close(force?: boolean): void;

Parameters

ParameterTypeDescription
forceboolean(Optional) Whether it closes Shakr Editor without confirmation from users via 'confirm_close' event or not.
Returns:

void