Skip to content

Commit

Permalink
new: Added prefix in editor client config
Browse files Browse the repository at this point in the history
  • Loading branch information
alecszaharia committed Aug 17, 2023
1 parent cbaa6eb commit 685ce1e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions editor/editor/editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,14 @@ public function getClientConfig( $editorConfig, $context ) {
}

$config = [
'hash' => wp_create_nonce( Brizy_Editor_API::nonce ),
'editorVersion' => BRIZY_EDITOR_VERSION,
'url' => set_url_scheme( admin_url( 'admin-ajax.php' ) ),
'actions' => $this->getApiActions(),
'pageId' => $this->post->getWpPostId(),
'collectionTypes' => $editorConfig['wp']['postLoopSources']
];
'pluginPrefixprefix' => Brizy_Editor::prefix(),
'hash' => wp_create_nonce( Brizy_Editor_API::nonce ),
'editorVersion' => BRIZY_EDITOR_VERSION,
'url' => set_url_scheme( admin_url( 'admin-ajax.php' ) ),
'actions' => $this->getApiActions(),
'pageId' => $this->post->getWpPostId(),
'collectionTypes' => $editorConfig['wp']['postLoopSources']
];

$config = $this->getApiConfigFields( $config, $context );

Expand Down

0 comments on commit 685ce1e

Please sign in to comment.