@bygga.dev/editor 1.9.4 → 1.9.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -293,6 +293,14 @@ and the face, size, colour and weight are applied to what the author types into
|
|
|
293
293
|
empty paragraph (a mark needs text to sit on). The author can change any of it
|
|
294
294
|
afterwards, as with any block.
|
|
295
295
|
|
|
296
|
+
**Taking a style from a block.** Style a Header, Text or Button block by hand, then open
|
|
297
|
+
its settings as an admin (`permission="admin"`): a **JSON** link in the panel's head shows
|
|
298
|
+
that block's look as the `brand.styles` entry that would place it — `{ "button": { … } }`
|
|
299
|
+
— with a Copy button. Paste it into your theme's `styles` and new blocks of that kind start
|
|
300
|
+
that way. It is always the documented style shape above, never the block's stored data;
|
|
301
|
+
box settings are written out in full, zeros included, so a block type's own defaults can't
|
|
302
|
+
creep back in. Content creators don't see the link.
|
|
303
|
+
|
|
296
304
|
A hidden tile only narrows the menu: a hidden block type already in a document still
|
|
297
305
|
renders and edits. An entry naming neither a built-in type nor a registered plugin is
|
|
298
306
|
warned about, as is any style field the editor can't use — that field is dropped and
|