Sha256: 3f16b99f7d6e6aef4311ccf250a05807c346a6d810eb195fde779a9fc37a4418
Contents?: true
Size: 691 Bytes
Versions: 2
Compression:
Stored size: 691 Bytes
Contents
# frozen_string_literal: true require_relative '../editor/props_external_plugin' module CKEditor5::Rails::Plugins class WProofreader < CKEditor5::Rails::Editor::PropsExternalPlugin DEFAULT_VERSION = '3.1.2' DEFAULT_CDN = 'https://cdn.jsdelivr.net/npm/@webspellchecker/wproofreader-ckeditor5' def initialize(version: nil, cdn: nil) cdn ||= DEFAULT_CDN version ||= DEFAULT_VERSION script_url = "#{cdn}@#{version}/dist/browser/index.js" style_url = "#{cdn}@#{version}/dist/browser/index.css" super( :WProofreader, script: script_url, import_as: 'WProofreader', stylesheets: [style_url], ) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ckeditor5-1.18.1 | lib/ckeditor5/rails/plugins/wproofreader.rb |
ckeditor5-1.18.0 | lib/ckeditor5/rails/plugins/wproofreader.rb |