Skip to content

Commit

Permalink
fetchPlugin, imagePlugin and i18nPlugin can be activated on a per-sit…
Browse files Browse the repository at this point in the history
…e basis in the website settings
  • Loading branch information
lexoyo committed Jun 5, 2024
1 parent 9ae31bc commit c2785ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions client-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ export default function (config, options = {}) {
//},
],
enable11ty: true,
//image: true,
//i18n: true,
imagePlugin: false,
i18nPlugin: false,
fetchPlugin: false,
filters: [
'generic',
'liquid',
Expand Down
4 changes: 3 additions & 1 deletion src/client/blocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { ClientConfig } from '@silexlabs/silex/src/ts/client/config'
import { EleventyPluginOptions } from '../client'

export default function(config: ClientConfig, opts: EleventyPluginOptions): void {
config.on('silex:grapesjs:end', () => {
// After the editor is ready
// And the website is loaded (because we need its settings)
config.on('silex:startup:end', () => {
const editor = config.getEditor()
// **
// Shortcode
Expand Down

0 comments on commit c2785ee

Please sign in to comment.