trusty-cms 7.0.45 → 7.0.46
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/Gemfile.lock +1 -1
- data/app/assets/builds/trusty_cms/ckeditor5.css +5288 -5647
- data/app/assets/builds/trusty_cms/ckeditor5.css.map +3 -3
- data/app/assets/builds/trusty_cms/ckeditor5.js +54172 -56593
- data/app/assets/builds/trusty_cms/ckeditor5.js.map +4 -4
- data/app/javascript/plugins/asset_tags/asset_tag_builder.js +1 -1
- data/app/javascript/trusty_cms/ckeditor5.js +4 -4
- data/app/views/admin/page_parts/_page_part.html.haml +0 -1
- data/app/views/layouts/application.html.haml +1 -2
- data/lib/trusty_cms/version.rb +1 -1
- metadata +2 -3
- data/app/javascript/plugins/asset_tags/asset_tags.js +0 -8
|
@@ -46,7 +46,7 @@ const defaultStyleDefinitions = [
|
|
|
46
46
|
}
|
|
47
47
|
]
|
|
48
48
|
|
|
49
|
-
import AssetTagBuilder from '../plugins/asset_tags/
|
|
49
|
+
import AssetTagBuilder from '../plugins/asset_tags/asset_tag_builder';
|
|
50
50
|
|
|
51
51
|
import {
|
|
52
52
|
ClassicEditor,
|
|
@@ -112,9 +112,7 @@ import {
|
|
|
112
112
|
TextTransformation,
|
|
113
113
|
TodoList,
|
|
114
114
|
Underline
|
|
115
|
-
} from 'ckeditor5';
|
|
116
|
-
|
|
117
|
-
import "ckeditor5/ckeditor5.css";
|
|
115
|
+
} from 'ckeditor5/src/index.js';
|
|
118
116
|
|
|
119
117
|
|
|
120
118
|
const editorConfig = {
|
|
@@ -369,6 +367,8 @@ editorElements.forEach((editorElement) => {
|
|
|
369
367
|
if (!hiddenInput) {
|
|
370
368
|
return;
|
|
371
369
|
}
|
|
370
|
+
|
|
371
|
+
editor.setData(hiddenInput.value || '');
|
|
372
372
|
editor.ui.focusTracker.on( 'change:isFocused', ( evt, name, isFocused ) => {
|
|
373
373
|
if ( !isFocused ) {
|
|
374
374
|
editor.plugins.get( 'SourceEditing' ).updateEditorData()
|
|
@@ -14,5 +14,4 @@
|
|
|
14
14
|
.editor-container.editor-container_classic-editor.editor-container_include-style.editor-container_include-fullscreen#editor-container
|
|
15
15
|
.editor-container__editor
|
|
16
16
|
%div{ id: "editor_#{ page_part.name.to_slug }", data: { part: page_part.name.to_slug } }
|
|
17
|
-
= page_part.content.to_s.html_safe # rubocop:disable Rails/OutputSafety
|
|
18
17
|
= hidden_field_tag :page_part, page_part.content || '', name: "page[parts_attributes][#{ page_part_counter }][content]", id: "part_#{ page_part.name.to_slug }_content"
|
|
@@ -37,11 +37,10 @@
|
|
|
37
37
|
|
|
38
38
|
- stylesheet_overrides.each do |stylesheet|
|
|
39
39
|
= stylesheet_link_tag stylesheet
|
|
40
|
-
|
|
41
40
|
- javascript_overrides.each do |javascript|
|
|
42
41
|
= javascript_include_tag javascript
|
|
43
42
|
|
|
44
|
-
= stylesheet_link_tag
|
|
43
|
+
= stylesheet_link_tag 'ckeditor5/dist/ckeditor5.css'
|
|
45
44
|
= csrf_meta_tags
|
|
46
45
|
|
|
47
46
|
:javascript
|
data/lib/trusty_cms/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: trusty-cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 7.0.
|
|
4
|
+
version: 7.0.46
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- TrustyCms CMS dev team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activestorage-validator
|
|
@@ -819,7 +819,6 @@ files:
|
|
|
819
819
|
- app/helpers/site_helper.rb
|
|
820
820
|
- app/helpers/sites_helper.rb
|
|
821
821
|
- app/javascript/plugins/asset_tags/asset_tag_builder.js
|
|
822
|
-
- app/javascript/plugins/asset_tags/asset_tags.js
|
|
823
822
|
- app/javascript/trusty_cms/ckeditor5.js
|
|
824
823
|
- app/mailers/application_mailer.rb
|
|
825
824
|
- app/mailers/devise_mailer.rb
|