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