class CKEditor5::Rails::Editor::PropsPlugin
def self.normalize(plugin)
def self.normalize(plugin) case plugin when String, Symbol then new(plugin) when PropsPlugin then plugin else raise ArgumentError, "Invalid plugin: #{plugin}" end end
def import_meta
def import_meta ::CKEditor5::Rails::Assets::JSImportMeta.new( import_as: name, import_name: premium ? 'ckeditor5-premium-features' : 'ckeditor5' ) end
def initialize(name, premium: false)
def initialize(name, premium: false) @name = name @premium = premium end