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.15.9 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.15.8 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.15.7 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.15.2 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.15.1 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.15.0 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.14.1 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.14.0 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.12.0 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.11.1 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.11.0 lib/ckeditor5/rails/assets/webcomponent_bundle.rb
ckeditor5-1.10.0 lib/ckeditor5/rails/assets/webcomponent_bundle.rb