new_ckeditor 0.1.1 → 0.1.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -12
  3. data/lib/new_ckeditor/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d5269c6e19f43f0592d530bec2baa4abbdbede929a42ca22b9db1a1c926130c
4
- data.tar.gz: d4931f06cfa320698cdafc7e4f82bdbe2e426f47a28a1710bd697339130841b9
3
+ metadata.gz: fb3007bc465dc4dd6c3c94fa4c82c931a6cff82e9a0532009ee7aafcaae7ba39
4
+ data.tar.gz: e4c0582c4d840e5319e525985726bc6f263f53edc1b796b52d5b74b63be5630f
5
5
  SHA512:
6
- metadata.gz: e39a84ef2b0afb6d76c7086aeeef9153e84cada5fe5682e9972c01be6d7098743fc509c022ac7aec5d65cf5af391df3d9ab9685f7b4f4421343bfc03dd8a8ff3
7
- data.tar.gz: a699d1bdabd2fadc75b4b7f702f1f1f9372a160a284d0cbe5211ea9524721a00288e3c1e6685b0225e0eaa0c3e52381c9d9f0a075be0e561420ea8ed55c819c4
6
+ metadata.gz: 82e02560f9ac8bc2f5618390b3fd3a152332f4d09496b7538090ae423c5b0cdb33e2a07ed3ed9855e477d5406bc9e06b9aa88e87a84a2a6685c1b28c81f45daa
7
+ data.tar.gz: 2cf998759224653577c3846168f5a85356466ea0d1f00eb02932ec0cb569d1167450a2152ce101e3f793d9861baf1b1b287d8440d327cde4abcda8be97f504dd
data/README.md CHANGED
@@ -77,13 +77,34 @@ class CreateCkEditorImages < ActiveRecord::Migration[6.0]
77
77
  end
78
78
  end
79
79
  ```
80
-
81
80
  Run this migration.
82
81
 
83
82
  3. Create Carrierwave uploader `rails g uploader CkEditorImage`. Open and edit it if needed.
84
83
 
85
84
  4. Open again controller, edit logic, check user, check params, etc. You have a full control how to implement logic of storing files.
86
85
 
86
+ ## CKEditor 5 Toolbar Customization
87
+
88
+ You can edit in appropriate JS file, for example:
89
+
90
+ ```javascript
91
+ toolbar: {
92
+ items: [
93
+ 'heading',
94
+ '|',
95
+ 'bold',
96
+ 'italic',
97
+ 'underline',
98
+ 'strikethrough',
99
+ 'link',
100
+ 'bulletedList',
101
+ 'numberedList',
102
+ 'alignment',
103
+ '|',
104
+ 'indent',
105
+ ...
106
+ ```
107
+
87
108
  ## Output
88
109
 
89
110
  ### Output RAW HTML from CKEditor
@@ -123,20 +144,12 @@ You can editor in some parent div and set height explicitly for editor inside.
123
144
 
124
145
  ## TODO
125
146
 
126
- - different types of ckeditors
127
- - generator for toolbar
128
147
  - configuration to specify toolbar
129
- - generator for controller?
130
- - store files using active storage
131
- - store with user_id, and parent?
132
- - readme, samples
148
+ - generators?
149
+ - better and better readme
133
150
  - gif with demo
134
- - sample with ajax? and with ballon?
135
151
  - tests
136
- - CSFR-Token
137
- - support inline editor?
138
- - remove title plugin
139
- - check how it works with turbolinks
152
+ - check how it works with turbolinks?
140
153
 
141
154
  ## Customization
142
155
 
@@ -1,3 +1,3 @@
1
1
  module NewCkeditor
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: new_ckeditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-05 00:00:00.000000000 Z
11
+ date: 2020-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails