Sha256: 1a0d22c964887ac403ec8297ddcb778d3615ca32fc7cda988948df1ee38c758b

Contents?: true

Size: 295 Bytes

Versions: 12

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

require_relative 'props'

module CKEditor5::Rails::Context
  module Helpers
    def ckeditor5_context(**config, &block)
      context_props = Props.new(config)

      tag.send(:'ckeditor-context-component', **context_props.to_attributes, &block)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ckeditor5-1.15.8 lib/ckeditor5/rails/context/helpers.rb
ckeditor5-1.15.7 lib/ckeditor5/rails/context/helpers.rb
ckeditor5-1.15.2 lib/ckeditor5/rails/context/helpers.rb
ckeditor5-1.15.1 lib/ckeditor5/rails/context/helpers.rb
ckeditor5-1.15.0 lib/ckeditor5/rails/context/helpers.rb
ckeditor5-1.14.1 lib/ckeditor5/rails/context/helpers.rb
ckeditor5-1.14.0 lib/ckeditor5/rails/context/helpers.rb
ckeditor5-1.12.0 lib/ckeditor5/rails/context/helpers.rb
ckeditor5-1.11.1 lib/ckeditor5/rails/context/helpers.rb
ckeditor5-1.11.0 lib/ckeditor5/rails/context/helpers.rb
ckeditor5-1.10.0 lib/ckeditor5/rails/context/helpers.rb
ckeditor5-1.9.0 lib/ckeditor5/rails/context/helpers.rb