Support » Plugin: Gutenberg Block Editor Toolkit – EditorsKit » Add borders to columns or paragraph blocks

  • Resolved Rhand

    (@rhand)


    Is it possible to add borders to columns, paragraphs with the EditorsKit plugin? We are using your plugin, but we do not see that option yet. We can active borders in the theme

    function dh_block_padding_margin_theme_support( $editor_settings, $editor_context ) {
        if ( ! empty( $editor_context->post ) ) {
            // $editor_settings["enableCustomSpacing"] = true;
    		$editor_settings["__experimentalFeatures"]["spacing"]["margin"] = true;
    		$editor_settings["__experimentalFeatures"]["border"]["color"] = true;
    		$editor_settings["__experimentalFeatures"]["border"]["style"] = true;
    		$editor_settings["__experimentalFeatures"]["border"]["width"] = true;
    		}
    		return $editor_settings;
    }
     
    add_filter( 'block_editor_settings_all', 'dh_block_padding_margin_theme_support', 10, 2 );

    But that is all experimental so we prefer to use what we have including your plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add borders to columns or paragraph blocks’ is closed to new replies.