cortex-plugins-core 0.7.0 → 0.7.1

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: 0e7cf40adcaf842d155d907fabb37ad735f0be83
4
- data.tar.gz: 75e74617538db293c693c8943f6fcf97f845b016
3
+ metadata.gz: a155fa113e7ea86f592750b29e034370feb1a152
4
+ data.tar.gz: c8f9ffb752dbb9e2cfd8a1ec80756b3463f8f8cc
5
5
  SHA512:
6
- metadata.gz: 671c6571905a78f197a753c02839ef55ad2497abf3c9f95114d6949b8fba83516da570ba8162014aa89487f707583135b7978faa83b1c7b8bb12f3953591f574
7
- data.tar.gz: 0c3afd99114142c6211b753ae3eecf9d358528a7d0ea5af6c55eb63e24a2783559d6c9b2cd5ed89f17b1be3b586162e3e228b5e7337d093e4e7f375b08196c7b
6
+ metadata.gz: 5ca5980dcf1f77f797e4f7b1de7879c8153e80c3b8eb9cab77c8ece7cce7775c5bf96851e3026e49f3d9dc9266d70580e06ab1321f19a83fe80d667098c29869
7
+ data.tar.gz: 849631d86ed29dd35f9c37c58a246eb78f0c2167c30ebaef90d43bb2d21ee74f116b96c635f2ef82c6c7e76f2330d2431b732a83036f81c9496b7087c936b025
@@ -1,5 +1,7 @@
1
+ CKEDITOR.plugins.addExternal( 'cortex_media_insert', '/assets/ckeditor/plugins/cortex_media_insert/' );
2
+
1
3
  CKEDITOR.editorConfig = function( config ) {
2
- config.extraPlugins = 'cortex_media_insert';
4
+ config.extraPlugins = 'cortex_media_insert';
3
5
 
4
6
  config.toolbarGroups = [
5
7
  { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
@@ -10,7 +12,6 @@ CKEDITOR.editorConfig = function( config ) {
10
12
  { name: 'colors', groups: [ 'colors' ] },
11
13
  { name: 'tools', groups: [ 'tools' ] },
12
14
  { name: 'others', groups: [ 'others' ] },
13
- { name: 'about', groups: [ 'about' ] },
14
15
  '/',
15
16
  { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
16
17
  { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
@@ -1,7 +1,10 @@
1
1
  var ckeditor_init = function() {
2
- $('.ckeditor').each(function() {
2
+ $('.wysiwyg_ckeditor').each(function() {
3
3
  var editor_id = $(this).attr('id');
4
- if (!CKEDITOR.instances[editor_id]) { CKEDITOR.replace(); }
4
+
5
+ CKEDITOR.replace(editor_id, {
6
+ customConfig: '/assets/ckeditor/config.js'
7
+ });
5
8
  });
6
9
  };
7
10
 
@@ -1,4 +1,3 @@
1
- //= require ckeditor/init
2
1
  //= require ckeditor/config
3
2
  //= require ckeditor/turbolinks
4
3
 
@@ -46,7 +46,7 @@ module Plugins
46
46
  end
47
47
 
48
48
  def render_wysiwyg
49
- @options[:form].cktext_area 'data[text]', value: value, class: "#{input_classes} ckeditor", ckeditor: input_styles
49
+ @options[:form].text_area 'data[text]', value: value, class: "#{input_classes} wysiwyg_ckeditor", style: input_styles
50
50
  end
51
51
 
52
52
  def render_multiline_input
@@ -1,4 +1,3 @@
1
- require 'ckeditor'
2
1
  require 'jsonb_accessor'
3
2
 
4
3
  module Cortex
@@ -6,7 +5,7 @@ module Cortex
6
5
  module Core
7
6
  class Engine < ::Rails::Engine
8
7
  initializer 'cortex-plugins-core.assets.precompile' do |app|
9
- app.config.assets.precompile += %w( ckeditor/* )
8
+ app.config.assets.precompile += %w(ckeditor/config.js)
10
9
  end
11
10
  end
12
11
  end
@@ -1,7 +1,7 @@
1
1
  module Cortex
2
2
  module Plugins
3
3
  module Core
4
- VERSION = '0.7.0'
4
+ VERSION = '0.7.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cortex-plugins-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - CareerBuilder Employer Site & Content Products
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-04 00:00:00.000000000 Z
11
+ date: 2017-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 0.3.2
83
- - !ruby/object:Gem::Dependency
84
- name: ckeditor
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 4.2.2
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 4.2.2
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: jsonb_accessor
99
85
  requirement: !ruby/object:Gem::Requirement