phcdevworks_portfolio 4.6.0 → 4.6.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
  SHA256:
3
- metadata.gz: 463b7aa99cacc0d3829b120a640bc548b422ba1b01b12d0e39f5166675b2868c
4
- data.tar.gz: aaf66e121d3213d4edc776ec294152ff9716149284b6ec7615751596881f10bd
3
+ metadata.gz: 947a7c18b402e27e6e7beb153b2fce4eea9b84c3fd840327297c528130f38551
4
+ data.tar.gz: a6620b6e457a0feb31c5731534d8060f9ca44b05977ad057b24b31f5fa92abd8
5
5
  SHA512:
6
- metadata.gz: 69cd47a9d5820c4b29ee203a85b878819be2fd561e1737b6dc8ecf3c48281817c068a013ea8d09f0e214b56bca18d9de09c9e42104d8437dbdc7cc8cf5eea84a
7
- data.tar.gz: 22ba25380c1c5e15a786586e6cff8f4a70187084d174c0312782ecbf8382436ad14c290cd66d8336167ac55e6cbfc542c92b41a8ce2cd2f35c3c6354ac694ca2
6
+ metadata.gz: 043431c042306d724a4aaad42116013fdc2f45b374f2671046c1a8a46bcdb43f8baa8d377e502f55b2a1b4fd6c9d7af8db70cc6ba722687ddb158b50c0c76f59
7
+ data.tar.gz: c0481a36a6408a531ea9a8fca650fd7ab2625005942b31826a7bad7974ab48ecd15d228c3887cede2869a1e2f4c096a28d58b28053ec2e010e10cf56a6d546cc
@@ -67,5 +67,83 @@
67
67
  <%= javascript_include_tag "phcdevworks_portfolio/application", "data-turbolinks-track": "reload" %>
68
68
  <!-- JavaScript -->
69
69
 
70
+ <!-- JavaScript CKEditor -->
71
+ <script>ClassicEditor
72
+ .create( document.querySelector( '.editor' ), {
73
+ config: {
74
+ ui: {
75
+ width: '500px',
76
+ height: '300px'
77
+ }
78
+ }
79
+ toolbar: {
80
+ items: [
81
+ 'heading',
82
+ '|',
83
+ 'fontBackgroundColor',
84
+ 'fontColor',
85
+ 'horizontalLine',
86
+ 'fontSize',
87
+ 'fontFamily',
88
+ 'highlight',
89
+ '|',
90
+ 'bold',
91
+ 'underline',
92
+ 'italic',
93
+ 'strikethrough',
94
+ 'link',
95
+ 'removeFormat',
96
+ '|',
97
+ 'alignment',
98
+ 'indent',
99
+ 'outdent',
100
+ '|',
101
+ 'blockQuote',
102
+ 'insertTable',
103
+ 'undo',
104
+ 'redo',
105
+ '|',
106
+ 'subscript',
107
+ 'superscript',
108
+ '|',
109
+ 'codeBlock',
110
+ 'code',
111
+ '|',
112
+ 'MathType',
113
+ 'ChemType',
114
+ 'specialCharacters'
115
+ ]
116
+ },
117
+ language: 'en',
118
+ table: {
119
+ contentToolbar: [
120
+ 'tableColumn',
121
+ 'tableRow',
122
+ 'mergeTableCells',
123
+ 'tableCellProperties',
124
+ 'tableProperties'
125
+ ]
126
+ },
127
+ licenseKey: '',
128
+ } )
129
+ .then( editor => {
130
+ window.editor = editor;
131
+ } )
132
+ .editorConfig = function( config ) {
133
+ config.title = false;
134
+ ui: {
135
+ width: '100%',
136
+ height: '800px'
137
+ }
138
+ };
139
+ .catch( error => {
140
+ console.error( 'Oops, something gone wrong!' );
141
+ console.error( 'Please, report the following error in the https://github.com/ckeditor/ckeditor5 with the build id and the error stack trace:' );
142
+ console.warn( 'Build id: ulhl6ym1zxhr-qh8kt6relt0l' );
143
+ console.error( error );
144
+ } );
145
+ </script>
146
+ <!-- JavaScript CKEditor -->
147
+
70
148
  </body>
71
149
  </html>
@@ -13,7 +13,7 @@
13
13
 
14
14
  <div class="form-group field_with_errors">
15
15
  <%= form.label :post_description, "Project Description" %>
16
- <%= form.text_area :post_description, placeholder: "Project Description", class: "form-control" %>
16
+ <%= form.text_area :post_description, placeholder: "Project Description", class: "form-control editor" %>
17
17
  </div>
18
18
 
19
19
  <div class="form-group field_with_errors">
@@ -1,3 +1,3 @@
1
1
  module PhcdevworksPortfolio
2
- VERSION = "4.6.0"
2
+ VERSION = "4.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcdevworks_portfolio
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.6.0
4
+ version: 4.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-25 00:00:00.000000000 Z
11
+ date: 2020-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails