Sha256: 865956014adc9907fcff74efe10ec4b881604ebb1b3bf23043714cd9bb9f8523

Contents?: true

Size: 536 Bytes

Versions: 32

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

module CKEditor5::Rails::Assets
  module WebComponentBundle
    WEBCOMPONENTS_PATH = File.join(__dir__, 'webcomponents')
    WEBCOMPONENTS_MODULES = [
      'utils.mjs',
      'components/editable.mjs',
      'components/ui-part.mjs',
      'components/editor.mjs',
      'components/context.mjs'
    ].freeze

    module_function

    def source
      @source ||= WEBCOMPONENTS_MODULES.map do |file|
        File.read(File.join(WEBCOMPONENTS_PATH, file))
      end.join("\n").html_safe
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
ckeditor5-1.20.1 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.20.0 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.19.5 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.19.4 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.19.3 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.19.2 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.19.1 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.19.0 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.18.3 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.18.1 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.18.0 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.17.4 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.17.3 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.17.2 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.17.1 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.17.0 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.16.2 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.16.1 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.16.0 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.15.10 lib/ckeditor5/rails/assets/webcomponent_bundle.rb