Sha256: 0aa399277acbb376196f480f3e771fa5b33a9485df2413cc4d44743579f1f642

Contents?: true

Size: 413 Bytes

Versions: 5

Compression:

Stored size: 413 Bytes

Contents

document.addEventListener("DOMContentLoaded", () => {
  Array.from(document.querySelectorAll(".wysiwyg")).forEach(e => {
    if(!window.CKEDITOR) return
    CKEDITOR.timestamp = new Date().valueOf()
    e.ckeditor = CKEDITOR.replace(e.id, {
      width: e.getBoundingClientRect().width,
      height: e.getBoundingClientRect().height,
      customConfig: '<%= asset_path "ckeditor/config.js" %>',
    })
  })
})

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adva-0.2.4 app/assets/javascripts/adva_cms/ckeditor.js.erb
adva-0.2.3 app/assets/javascripts/adva_cms/ckeditor.js.erb
adva-0.2.2 app/assets/javascripts/adva_cms/ckeditor.js.erb
adva-0.2.1 app/assets/javascripts/adva_cms/ckeditor.js.erb
adva-0.2.0 app/assets/javascripts/adva_cms/ckeditor.js.erb