class CKEditor5::Rails::Presets::SpecialCharactersBuilder

def group(name, items: [], label: nil, &block)

Other tags:
    Example: Define group with block -
    Example: Define group with items array -

Returns:
  • (Group) - Created group instance

Other tags:
    Yield: - Group configuration block

Parameters:
  • label (String, nil) -- Optional display label
  • items (Array) -- Optional array of character items
  • name (String) -- Name of the group
def group(name, items: [], label: nil, &block)
  group = Group.new(name, label: label)
  group.add_characters(items) if items.any?
  group.instance_eval(&block) if block_given?
  @groups << group
  group
end