close
BERJAYA
BERJAYA

Blocks CSS: CSS-Editor für Gutenberg-Blöcke

Beschreibung

Blocks CSS ermöglicht es dir, direkt im Gutenberg Block-Editor individuellen CSS-Code zu deinen Blöcken hinzuzufügen.

Es stellt einen CSS-Editor mit Syntax-Highlighting bereit, mit dem du deinen Gutenberg-Blöcken zusätzliches CSS hinzufügen kannst, um sie nach deinen Wünschen zu gestalten.

Der gesamte Code und die Quellen für dieses Plugin sind unter https://github.com/Codeinwp/otter-blocks öffentlich zugänglich.

Screenshots

  • BERJAYA
    CSS-Editor
  • BERJAYA
    CSS-Editor

Blöcke

Dieses Plugin bietet 5 Blöcke.

  • Icon An inline SVG icon from the Lucide icon set.
  • Text A rich text element with tag selection.
  • Image A simple image element. Set via media library or direct URL.
  • Link An anchor element with link picker and rich text.
  • Box A generic wrapper element with tag selection and inner blocks. Supports details and summary tags for native disclosure widgets.

Rezensionen

BERJAYA
8. Februar 2026 1 Antwort
Works like a charm on any of my recent WP projects. [EDIT]I need to change my review.On some setups, I get two CSS editors shown in the „Custom CSS“ attribute panel, and only contents of the second instance are getting saved.Problem:Two CodeMirror editors are displayed in the Custom CSS panel of the Blocks CSS plugin instead of one. Both editors are located in the same container. Assumed Root Cause:WordPress enables React StrictMode by default in the Block Editor. React StrictMode runs useEffect hooks twice to detect potential side effects. Analysis:The Blocks CSS plugin initializes CodeMirror in a useEffect hook.Since this useEffect doesn’t have a cleanup function that checks whether CodeMirror is already initialized, wp.CodeMirror() is called again on every mount cycle. With StrictMode enabled, this means: twice on the same DOM element. Probable Solution:The useEffect hook should implement a cleanup function that prevents CodeMirror from being initialized multiple times on the same element.Side Notes:This only happens in some of my setups. I couldn’t figure out any possibly conflicting theme, plugin or code snippet. So I assume it might be something like a timing issue. Conclusion:I won’t change the 5-star rating, because despite of this problem the plugin does its job. And I know how to handle this issue by a simple CSS rule to hide all Block CSS CodeMirrors except the last one:#o-css-editor .CodeMirror:not(:last-child) { display: none;}
BERJAYA
24. Juli 2024 1 Antwort
„Essential, Useful Tool, Completes the Block Editor, Should be part of the core,“ The one thing they don’t mention is how quick and genuinely concerned the support is.
BERJAYA
26. September 2023 1 Antwort
Can’t think of Block Editor without this. Tiny powerful thing. Only thing I hate in this plugin is the following line: $render_css = empty( $file_name ) || strpos( $file_name, ‚post-v2‘ ) === false; This means if you deactivate Otter, your content might just break 🙁
Alle 25 Rezensionen lesen

Mitwirkende und Entwickler

„Blocks CSS: CSS-Editor für Gutenberg-Blöcke“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

„Blocks CSS: CSS-Editor für Gutenberg-Blöcke“ wurde in 9 Sprachen übersetzt. Danke an die Übersetzer für ihre Mitwirkung.

Übersetze „Blocks CSS: CSS-Editor für Gutenberg-Blöcke“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN-Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

Das Changelog findest du hier.