Skip to content

Commit

Permalink
Add src attribute for oik-css/css and oik-css/geshi blocks. Issue #15
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed May 15, 2021
1 parent 28365f1 commit 077f2ba
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions oik-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ function oik_css_register_dynamic_blocks() {
'render_callback'=>'oik_css_dynamic_block_css',
'attributes' =>[
'css' =>[ 'type'=>'string' ],
'text'=>[ 'type'=>'string' ]
'text'=>[ 'type'=>'string' ],
'src' => ['type'=>'string']
]
, 'editor_script' => 'oik-css-blocks-js'
, 'editor_style' => null
Expand All @@ -297,7 +298,8 @@ function oik_css_register_dynamic_blocks() {
'attributes' =>[
'lang' =>[ 'type'=>'string' ],
'text' =>[ 'type'=>'string' ],
'content'=>[ 'type'=>'string' ]
'content'=>[ 'type'=>'string' ],
'src' => ['type' => 'string']
]
, 'editor_script' => 'oik-css-blocks-js'
, 'editor_style' => null
Expand Down Expand Up @@ -383,5 +385,4 @@ function oik_css_boot_libs() {
$loaded = include_once( $oik_boot_file );
}
oik_lib_fallback( __DIR__ . '/libs' );
}

}

0 comments on commit 077f2ba

Please sign in to comment.