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.
- checksums.yaml +4 -4
- data/README.md +25 -12
- data/lib/new_ckeditor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb3007bc465dc4dd6c3c94fa4c82c931a6cff82e9a0532009ee7aafcaae7ba39
|
|
4
|
+
data.tar.gz: e4c0582c4d840e5319e525985726bc6f263f53edc1b796b52d5b74b63be5630f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
-
|
|
130
|
-
-
|
|
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
|
-
-
|
|
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
|
|
data/lib/new_ckeditor/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2020-03-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|