Sha256: b01a92615b5c64efc6e07f720de94c71b3fd3821c7cf4e1bf1a9aa6e02e9b968

Contents?: true

Size: 1.1 KB

Versions: 3

Compression:

Stored size: 1.1 KB

Contents

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require redactor
//= require langs/sv
//= require plugins/fullscreen
//= require plugins/table

window.Godmin = window.Godmin || {};

Godmin.Redactor = (function() {
  function initialize() {
    initializeState();
  }

  function initializeState() {
    initializeRedactor($('[data-behavior~=redactor]'));
  }

  function initializeRedactor($el) {
    $el.each(function() {
      $(this).redactor($(this).data("options"));
    });
  }

  return {
    initialize: initialize
  };
})();

$(function() {
  Godmin.Redactor.initialize();
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
godmin-redactor-0.1.4 app/assets/javascripts/godmin-redactor/index.js
godmin-redactor-0.1.3 app/assets/javascripts/godmin-redactor/index.js
godmin-redactor-0.1.2 app/assets/javascripts/godmin-redactor/index.js