Sha256: b7780fca1fc02924100c778ed849bc503a42088f608ab265c6e88407902a61a8

Contents?: true

Size: 563 Bytes

Versions: 2

Compression:

Stored size: 563 Bytes

Contents

#= require jquery
#= require jquery_ujs

$(document).ready ->
  if typeof window.CKEDITOR is "undefined"
    window.CKEDITOR_BASEPATH = '/ckeditor/'
    
    $.getScript "/ckeditor/ckeditor.js", ->
      $( 'textarea.markup, textarea.markup-ckeditor' ).each ->

        textarea = $(@)
        id = textarea.attr('id')

        config = {}
        console.log($.extend(config, CKEDITOR.config))
        config.width = textarea.outerWidth()
        config.filebrowserBrowseUrl           = "/admin/ckeditor/pictures"
        
        CKEDITOR.replace( id , config )

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fullstack-ckeditor-0.1.4 app/assets/javascripts/fullstack/ckeditor.js.coffee
fullstack-ckeditor-0.1.3 app/assets/javascripts/fullstack/ckeditor.js.coffee