paginas 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3682a989a4a21ce6fdb222845a1028137121cb41
4
- data.tar.gz: 4a9a3ca18632044fd179f9685b94a08380cc46b3
3
+ metadata.gz: 03043e84f64a14fc81373c8768c76925af02fb7d
4
+ data.tar.gz: 3990936367d143a4ba03e1918fa77d5c7d87b6ca
5
5
  SHA512:
6
- metadata.gz: e5b4d9062471ced95fa3a05d52a262bed41c974edf71683fe6110d250d3ebd46f832bc88196826f5651bfda48fe8efe2d4538557de0dae71e98d07b0803cfa82
7
- data.tar.gz: 0e22c90ed442f9562007ddcd211151b1278eff91982434e83a8aa80c69349a70059991d54b713bd77f62c85e94092da0db11e717eebb7aab1080156a8feb5434
6
+ metadata.gz: 26d79b13c04c55135b5b2127919dc454708d217b9f3900f276b2cdddb970bd558390ff2ec268ecb81319553ff54c4dbc5cc95c6b148e62960b21fb58b6459e28
7
+ data.tar.gz: b5ae843b768bdb8269cfef0fdc6bf45bfe3d38541a66a71bc1436ad0ddd1ddfd6ab4da1d14372c4fd69c7017e16f549a66ec0ce4afd309f37bde274d12031e3c
@@ -2,5 +2,20 @@
2
2
 
3
3
  if( typeof jQuery != 'undefined')
4
4
  {
5
- $(document).on('page:receive',function(){tinymce.remove()});
6
- }
5
+ $(document).on('page:receive',function(){
6
+ tinymce.remove();
7
+ });
8
+ $(document).ready(function(){
9
+ tinyMCE.init({
10
+ selector: "textarea.tinymce"
11
+ });
12
+ });
13
+ }
14
+ else
15
+ {
16
+ document.addEventListener("DOMContentLoaded", function(event) {
17
+ tinyMCE.init({
18
+ selector: "textarea.tinymce"
19
+ });
20
+ });
21
+ }
@@ -31,7 +31,6 @@
31
31
  <%= f.label :text %><br>
32
32
  <%= f.text_area :text, :class => "tinymce", :rows => 20, :cols => 80 %>
33
33
  </div>
34
- <%= tinymce %>
35
34
  <div class="actions">
36
35
  <%= f.submit %>
37
36
  </div>
@@ -1,10 +1,10 @@
1
1
  module Paginas
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace Paginas
4
- initializer 'paginas.action_controller' do |app|
5
- ActiveSupport.on_load :action_controller do
6
- helper Paginas::ApplicationHelper
7
- end
8
- end
4
+ # initializer 'paginas.action_controller' do |app|
5
+ # ActiveSupport.on_load :action_controller do
6
+ # helper Paginas::ApplicationHelper
7
+ # end
8
+ # end
9
9
  end
10
10
  end
@@ -1,3 +1,3 @@
1
1
  module Paginas
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -2,4 +2,5 @@ class ApplicationController < ActionController::Base
2
2
  # Prevent CSRF attacks by raising an exception.
3
3
  # For APIs, you may want to use :null_session instead.
4
4
  protect_from_forgery with: :exception
5
+ helper Paginas::ApplicationHelper
5
6
  end