| @@ -21,14 +21,23 @@ | ||
| 21 | 21 | FLUENT_SUPPORT_VERSION, |
| 22 | 22 | true |
| 23 | 23 | ); |
| 24 | 24 | |
| 25 | + wp_register_style( | |
| 26 | + 'fluent-support/customer-portal-block-style', | |
| 27 | + $assets . 'block-editor/css/fs_block.css', | |
| 28 | + array(), | |
| 29 | + FLUENT_SUPPORT_VERSION | |
| 30 | + ); | |
| 31 | + | |
| 25 | 32 | wp_localize_script('fluent-support/customer-portal', 'fluent_support_vars', [ |
| 26 | 33 | 'rest' => $this->getRestInfo(), |
| 27 | 34 | ]); |
| 28 | 35 | |
| 29 | 36 | register_block_type('fluent-support/customer-portal', array( |
| 37 | + 'api_version' => 3, | |
| 30 | 38 | 'editor_script' => 'fluent-support/customer-portal', |
| 39 | + 'editor_style' => 'fluent-support/customer-portal-block-style', | |
| 31 | 40 | 'render_callback' => array($this, 'renderBlock'), |
| 32 | 41 | 'attributes' => BlockAttributes::CustomerPortalAttributes(), |
| 33 | 42 | )); |
| 34 | 43 | } |