cortex-plugins-core 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ckeditor/config.js +3 -2
- data/app/assets/javascripts/ckeditor/turbolinks.js +5 -2
- data/app/assets/javascripts/cortex-plugins-core/application.js +0 -1
- data/app/cells/plugins/core/text_cell.rb +1 -1
- data/lib/cortex/plugins/core/engine.rb +1 -2
- data/lib/cortex/plugins/core/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a155fa113e7ea86f592750b29e034370feb1a152
|
4
|
+
data.tar.gz: c8f9ffb752dbb9e2cfd8a1ec80756b3463f8f8cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
$('.
|
2
|
+
$('.wysiwyg_ckeditor').each(function() {
|
3
3
|
var editor_id = $(this).attr('id');
|
4
|
-
|
4
|
+
|
5
|
+
CKEDITOR.replace(editor_id, {
|
6
|
+
customConfig: '/assets/ckeditor/config.js'
|
7
|
+
});
|
5
8
|
});
|
6
9
|
};
|
7
10
|
|
@@ -46,7 +46,7 @@ module Plugins
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def render_wysiwyg
|
49
|
-
@options[:form].
|
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(
|
8
|
+
app.config.assets.precompile += %w(ckeditor/config.js)
|
10
9
|
end
|
11
10
|
end
|
12
11
|
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.
|
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-
|
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
|