Sha256: cab8fbd2ec99a8aa4e356b960430ae97ac04ddf0e82eb386555c0323e0f42ff3
Contents?: true
Size: 459 Bytes
Versions: 19
Compression:
Stored size: 459 Bytes
Contents
# frozen_string_literal: true module CKEditor5::Rails::Editor::Helpers module Config def ckeditor5_element_ref(selector) { '$element': selector } end def ckeditor5_preset(name = nil, &block) return CKEditor5::Rails::Engine.find_preset(name) if name raise ArgumentError, 'Configuration block is required for preset definition' unless block_given? CKEditor5::Rails::Presets::PresetBuilder.new(&block) end end end
Version data entries
19 entries across 19 versions & 1 rubygems