jodit 3.9.4 → 3.9.6

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 (93) hide show
  1. package/.idea/workspace.xml +84 -82
  2. package/CHANGELOG.MD +109 -5
  3. package/build/jodit.css +450 -427
  4. package/build/jodit.es2018.css +298 -283
  5. package/build/jodit.es2018.en.css +298 -283
  6. package/build/jodit.es2018.en.js +539 -336
  7. package/build/jodit.es2018.en.min.css +1 -1
  8. package/build/jodit.es2018.en.min.js +1 -1
  9. package/build/jodit.es2018.js +575 -372
  10. package/build/jodit.es2018.min.css +1 -1
  11. package/build/jodit.es2018.min.js +1 -1
  12. package/build/jodit.js +1142 -876
  13. package/build/jodit.min.css +2 -2
  14. package/build/jodit.min.js +1 -1
  15. package/package.json +1 -1
  16. package/src/config.ts +18 -19
  17. package/src/core/component/component.ts +16 -15
  18. package/src/core/storage/engines/local-storage-provider.ts +9 -3
  19. package/src/core/storage/engines/memory-storage-provider.ts +6 -3
  20. package/src/core/storage/storage.ts +7 -4
  21. package/src/core/ui/icon.ts +1 -0
  22. package/src/core/ui/index.ts +1 -3
  23. package/src/core/ui/list/group.less +8 -2
  24. package/src/{modules/file-browser/consts.ts → core/ui/list/index.ts} +4 -4
  25. package/src/core/ui/list/list.less +9 -1
  26. package/src/core/ui/list/list.ts +20 -3
  27. package/src/core/ui/{separator.ts → list/separator.ts} +2 -2
  28. package/src/core/ui/list/spacer.ts +15 -0
  29. package/src/core/view/view-with-toolbar.ts +2 -1
  30. package/src/modules/dialog/dialog.less +1 -15
  31. package/src/modules/dialog/dialog.ts +8 -1
  32. package/src/modules/file-browser/builders/context-menu.ts +29 -22
  33. package/src/modules/file-browser/config.ts +10 -2
  34. package/src/modules/file-browser/file-browser.ts +50 -29
  35. package/src/modules/file-browser/listeners/native-listeners.ts +37 -19
  36. package/src/modules/file-browser/listeners/state-listeners.ts +48 -22
  37. package/src/modules/file-browser/styles/file-browser.less +4 -291
  38. package/src/modules/file-browser/styles/preview.less +11 -8
  39. package/src/modules/file-browser/ui/files/files.less +174 -0
  40. package/src/modules/file-browser/ui/files/files.ts +14 -0
  41. package/{types/modules/file-browser/consts.d.ts → src/modules/file-browser/ui/index.ts} +3 -3
  42. package/src/modules/file-browser/ui/tree/tree.less +118 -0
  43. package/src/modules/file-browser/ui/tree/tree.ts +14 -0
  44. package/src/modules/toolbar/collection/collection.ts +17 -3
  45. package/src/modules/toolbar/collection/editor-collection.ts +22 -1
  46. package/src/plugins/clipboard/drag-and-drop.ts +4 -1
  47. package/src/plugins/inline-popup/config/config.ts +1 -0
  48. package/src/plugins/inline-popup/config/items/toolbar.ts +33 -0
  49. package/src/plugins/inline-popup/inline-popup.ts +17 -0
  50. package/src/plugins/size/resize-handler.ts +5 -2
  51. package/src/plugins/size/size.less +2 -17
  52. package/src/plugins/size/size.ts +6 -1
  53. package/src/plugins/sticky/sticky.ts +2 -0
  54. package/src/styles/icons/index.ts +2 -0
  55. package/src/{plugins/size/assests → styles/icons}/resize-handler.svg +0 -0
  56. package/src/styles/mixins.less +20 -0
  57. package/src/types/ajax.d.ts +0 -1
  58. package/src/types/file-browser.d.ts +13 -1
  59. package/src/types/jodit.d.ts +7 -1
  60. package/src/types/select.d.ts +2 -0
  61. package/src/types/storage.ts +3 -3
  62. package/src/types/style.d.ts +7 -1
  63. package/src/types/toolbar.d.ts +7 -1
  64. package/src/types/types.d.ts +1 -1
  65. package/src/types/view.d.ts +1 -1
  66. package/types/core/component/component.d.ts +4 -3
  67. package/types/core/storage/engines/local-storage-provider.d.ts +3 -3
  68. package/types/core/storage/engines/memory-storage-provider.d.ts +3 -3
  69. package/types/core/storage/storage.d.ts +3 -3
  70. package/types/core/ui/index.d.ts +1 -3
  71. package/types/core/ui/list/index.d.ts +9 -0
  72. package/types/core/ui/{separator.d.ts → list/separator.d.ts} +1 -1
  73. package/types/core/ui/list/spacer.d.ts +9 -0
  74. package/types/core/view/view-with-toolbar.d.ts +2 -1
  75. package/types/modules/file-browser/file-browser.d.ts +3 -2
  76. package/types/modules/file-browser/listeners/native-listeners.d.ts +5 -1
  77. package/types/modules/file-browser/ui/files/files.d.ts +10 -0
  78. package/types/modules/file-browser/ui/index.d.ts +7 -0
  79. package/types/modules/file-browser/ui/tree/tree.d.ts +10 -0
  80. package/types/modules/toolbar/collection/collection.d.ts +5 -2
  81. package/types/modules/toolbar/collection/editor-collection.d.ts +9 -1
  82. package/types/plugins/inline-popup/inline-popup.d.ts +4 -0
  83. package/types/styles/icons/index.d.ts +2 -1
  84. package/types/types/ajax.d.ts +0 -1
  85. package/types/types/file-browser.d.ts +13 -1
  86. package/types/types/jodit.d.ts +7 -1
  87. package/types/types/select.d.ts +2 -0
  88. package/types/types/storage.d.ts +3 -3
  89. package/types/types/storage.ts +3 -3
  90. package/types/types/style.d.ts +7 -1
  91. package/types/types/toolbar.d.ts +7 -1
  92. package/types/types/types.d.ts +1 -1
  93. package/types/types/view.d.ts +1 -1
package/build/jodit.css CHANGED
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
3
3
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
4
- * Version: v3.9.4
4
+ * Version: v3.9.6
5
5
  * Url: https://xdsoft.net/jodit/
6
6
  * License(s): MIT
7
7
  */
8
8
  /*!
9
9
  * jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
10
10
  * Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/)
11
- * Version: v3.9.4
11
+ * Version: v3.9.6
12
12
  * Url: https://xdsoft.net/jodit/
13
13
  * License(s): MIT
14
14
  */
@@ -1789,6 +1789,11 @@ svg.jodit-icon {
1789
1789
  flex-basis: 100%;
1790
1790
  border-top: 1px solid #dadada;
1791
1791
  }
1792
+ .jodit-ui-spacer {
1793
+ -webkit-box-flex: 1;
1794
+ -ms-flex: 1;
1795
+ flex: 1;
1796
+ }
1792
1797
 
1793
1798
  /*!
1794
1799
  * Jodit Editor (https://xdsoft.net/jodit/)
@@ -1808,7 +1813,15 @@ svg.jodit-icon {
1808
1813
  -ms-flex-wrap: wrap;
1809
1814
  flex-wrap: wrap;
1810
1815
  }
1811
- .jodit-ui-group_separated_true:not(:last-child):after {
1816
+ .jodit-ui-group_line_true {
1817
+ display: -webkit-box;
1818
+ display: -ms-flexbox;
1819
+ display: flex;
1820
+ -webkit-box-pack: stretch;
1821
+ -ms-flex-pack: stretch;
1822
+ justify-content: stretch;
1823
+ }
1824
+ .jodit-ui-group_separated_true:not(:last-child):not(.jodit-ui-group_before-spacer_true):after {
1812
1825
  content: '';
1813
1826
  padding: 0;
1814
1827
  border-right: 1px solid #dadada;
@@ -2841,20 +2854,21 @@ svg.jodit-icon {
2841
2854
  display: flex;
2842
2855
  }
2843
2856
  .jodit-dialog__resizer {
2857
+ position: relative;
2858
+ }
2859
+ .jodit-dialog__resizer svg {
2844
2860
  position: absolute;
2845
2861
  right: 0;
2846
2862
  bottom: 0;
2847
- display: inline-block;
2848
- width: 0;
2849
- height: 0;
2850
- border-right: 0 solid transparent;
2851
- border-bottom: 10px solid #dadada;
2852
- border-left: 10px solid transparent;
2853
- cursor: se-resize;
2854
- opacity: 1;
2855
- }
2856
- .jodit-dialog__resizer:hover {
2857
- border-bottom-color: rgba(0, 0, 0, 0.6);
2863
+ overflow: hidden;
2864
+ width: 12px;
2865
+ height: 12px;
2866
+ cursor: nwse-resize;
2867
+ fill: #a5a5a5;
2868
+ -webkit-user-select: none;
2869
+ -moz-user-select: none;
2870
+ -ms-user-select: none;
2871
+ user-select: none;
2858
2872
  }
2859
2873
  @media (max-width: 480px) {
2860
2874
  .jodit-dialog__resizer {
@@ -3749,7 +3763,7 @@ svg.jodit-icon {
3749
3763
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
3750
3764
  Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
3751
3765
  }
3752
- .jodit-filebrowser_no_files {
3766
+ .jodit-filebrowser_no-files_true {
3753
3767
  padding: 8px;
3754
3768
  }
3755
3769
  @media (max-width: 480px) {
@@ -3767,7 +3781,7 @@ svg.jodit-icon {
3767
3781
  width: 100%;
3768
3782
  height: 100%;
3769
3783
  }
3770
- .jodit-filebrowser__loader i {
3784
+ .jodit-filebrowser__loader div {
3771
3785
  position: absolute;
3772
3786
  top: 50%;
3773
3787
  left: 50%;
@@ -3794,461 +3808,171 @@ svg.jodit-icon {
3794
3808
  visibility: hidden;
3795
3809
  word-break: break-all;
3796
3810
  }
3797
- .jodit-filebrowser__status.jodit-filebrowser_success {
3811
+ .jodit-filebrowser__status_success_true {
3798
3812
  color: #c5c5c5;
3799
3813
  }
3800
- .jodit-filebrowser__status.jodit-filebrowser_active {
3814
+ .jodit-filebrowser__status_active_true {
3801
3815
  opacity: 1;
3802
3816
  visibility: visible;
3803
3817
  }
3804
- .jodit-filebrowser__tree,
3805
- .jodit-filebrowser__files {
3806
- position: relative;
3807
- display: none;
3808
- height: 100%;
3809
- vertical-align: top;
3810
- overflow-anchor: auto;
3811
- }
3812
- .jodit-filebrowser__tree .jodit-button,
3813
- .jodit-filebrowser__files .jodit-button {
3814
- border-radius: 0;
3818
+ .jodit_draghover {
3819
+ background-color: #ecebe9;
3815
3820
  }
3816
- .jodit-filebrowser__tree.jodit-filebrowser_active,
3817
- .jodit-filebrowser__files.jodit-filebrowser_active {
3821
+ .jodit-dialog .jodit-dialog__header-title.jodit-filebrowser__title-box {
3818
3822
  display: -webkit-box;
3819
3823
  display: -ms-flexbox;
3820
3824
  display: flex;
3825
+ -webkit-box-align: center;
3826
+ -ms-flex-align: center;
3827
+ align-items: center;
3828
+ padding-left: 8px;
3821
3829
  }
3822
- .jodit-filebrowser__tree::-webkit-scrollbar {
3823
- width: calc(8px / 2);
3824
- }
3825
- .jodit-filebrowser__files::-webkit-scrollbar {
3826
- width: calc(8px / 2);
3827
- }
3828
- .jodit-filebrowser__tree::-webkit-scrollbar-track,
3829
- .jodit-filebrowser__files::-webkit-scrollbar-track {
3830
- -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
3831
- }
3832
- .jodit-filebrowser__tree::-webkit-scrollbar-thumb,
3833
- .jodit-filebrowser__files::-webkit-scrollbar-thumb {
3834
- background-color: darkgrey;
3835
- outline: 1px solid slategrey;
3836
- }
3837
- .jodit-filebrowser__tree.jodit-filebrowser_active {
3838
- z-index: 2;
3839
- width: 31%;
3840
- min-width: 200px;
3841
- max-width: 290px;
3842
- -webkit-box-orient: vertical;
3843
- -webkit-box-direction: normal;
3844
- -ms-flex-direction: column;
3845
- flex-direction: column;
3846
- background-color: #3f3f3f;
3847
- overflow-y: auto;
3848
- }
3849
- @media (max-width: 480px) {
3850
- .jodit-filebrowser__tree.jodit-filebrowser_active {
3851
- width: auto;
3852
- max-width: 100%;
3853
- height: 100px;
3854
- }
3855
- }
3856
- .jodit-filebrowser__tree.jodit-filebrowser_active::-webkit-scrollbar {
3857
- width: calc(8px / 2);
3858
- }
3859
- .jodit-filebrowser__tree.jodit-filebrowser_active::-webkit-scrollbar-track {
3860
- -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
3861
- }
3862
- .jodit-filebrowser__tree.jodit-filebrowser_active::-webkit-scrollbar-thumb {
3863
- background-color: rgba(127, 127, 127, 0.5);
3864
- outline: 1px solid slategrey;
3865
- }
3866
- .jodit-filebrowser__tree.jodit-filebrowser_active .jodit-filebrowser__source-title {
3867
- position: relative;
3868
- display: block;
3869
- padding: 2px 4px;
3870
- border-bottom: 1px solid #484848;
3871
- background: #5a5a5a;
3872
- color: #969696;
3873
- font-size: 12px;
3874
- -webkit-user-select: none;
3875
- -moz-user-select: none;
3876
- -ms-user-select: none;
3877
- user-select: none;
3878
- word-break: break-all;
3879
- }
3880
- .jodit-filebrowser__tree.jodit-filebrowser_active .jodit-filebrowser__tree-item {
3830
+ /*!
3831
+ * Jodit Editor (https://xdsoft.net/jodit/)
3832
+ * Released under MIT see LICENSE.txt in the project root for license information.
3833
+ * Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
3834
+ */
3835
+ .jodit-filebrowser-preview {
3881
3836
  position: relative;
3882
3837
  display: -webkit-box;
3883
3838
  display: -ms-flexbox;
3884
3839
  display: flex;
3885
- min-height: 38px;
3840
+ min-width: 400px;
3841
+ max-width: min(100%, 1000px);
3842
+ height: 100%;
3843
+ min-height: min(100%, 500px);
3844
+ max-height: 100%;
3886
3845
  -webkit-box-align: center;
3887
3846
  -ms-flex-align: center;
3888
3847
  align-items: center;
3889
- -webkit-box-pack: justify;
3890
- -ms-flex-pack: justify;
3891
- justify-content: space-between;
3892
- padding: calc(8px / 2) 8px;
3893
- border-bottom: 1px solid #474747;
3894
- color: #b1b1b1;
3895
- text-decoration: none;
3896
- -webkit-transition: background-color 0.2s ease 0s;
3897
- -o-transition: background-color 0.2s ease 0s;
3898
- transition: background-color 0.2s ease 0s;
3899
- word-break: break-all;
3848
+ -webkit-box-pack: center;
3849
+ -ms-flex-pack: center;
3850
+ justify-content: center;
3851
+ margin: auto;
3852
+ text-align: center;
3900
3853
  }
3901
- .jodit-filebrowser__tree.jodit-filebrowser_active .jodit-filebrowser__tree-item-title {
3902
- -webkit-box-flex: 1;
3903
- -ms-flex: 1;
3904
- flex: 1;
3854
+ @media (max-width: 768px) {
3855
+ .jodit-filebrowser-preview {
3856
+ min-width: auto;
3857
+ max-width: 100%;
3858
+ height: 100%;
3859
+ min-height: auto;
3860
+ max-height: 100%;
3861
+ }
3905
3862
  }
3906
- .jodit-filebrowser__tree.jodit-filebrowser_active .jodit-filebrowser__tree-item .jodit-icon_folder {
3863
+ .jodit-filebrowser-preview__box {
3907
3864
  display: -webkit-box;
3908
3865
  display: -ms-flexbox;
3909
3866
  display: flex;
3910
- width: calc(12px + 4px);
3911
- height: calc(12px + 4px);
3867
+ -webkit-box-flex: 1;
3868
+ -ms-flex-positive: 1;
3869
+ flex-grow: 1;
3912
3870
  -webkit-box-align: center;
3913
3871
  -ms-flex-align: center;
3914
3872
  align-items: center;
3915
3873
  -webkit-box-pack: center;
3916
3874
  -ms-flex-pack: center;
3917
3875
  justify-content: center;
3918
- margin-left: calc(8px / 2);
3919
- opacity: 0.3;
3920
3876
  }
3921
- .jodit-filebrowser__tree.jodit-filebrowser_active .jodit-filebrowser__tree-item .jodit-icon_folder svg {
3922
- width: 12px;
3923
- height: 12px;
3924
- fill: #b1b1b1 !important;
3925
- stroke: #b1b1b1 !important;
3877
+ .jodit-filebrowser-preview__navigation {
3878
+ position: absolute;
3879
+ top: 0;
3880
+ left: 0;
3881
+ height: 100%;
3882
+ cursor: pointer;
3926
3883
  }
3927
- .jodit-filebrowser__tree.jodit-filebrowser_active .jodit-filebrowser__tree-item .jodit-icon_folder:hover {
3928
- background: #696969;
3884
+ .jodit-filebrowser-preview__navigation_arrow_next {
3885
+ right: 0;
3886
+ left: auto;
3929
3887
  }
3930
- .jodit-filebrowser__tree.jodit-filebrowser_active .jodit-filebrowser__tree-item:hover {
3931
- background-color: #ecebe9;
3932
- color: #222;
3888
+ .jodit-filebrowser-preview__navigation svg {
3889
+ position: relative;
3890
+ top: 50%;
3891
+ width: 45px;
3892
+ height: 45px;
3893
+ fill: #9e9ba7;
3894
+ -webkit-transform: translateY(-50%);
3895
+ -ms-transform: translateY(-50%);
3896
+ transform: translateY(-50%);
3897
+ -webkit-transition: fill 0.3s linear;
3898
+ -o-transition: fill 0.3s linear;
3899
+ transition: fill 0.3s linear;
3933
3900
  }
3934
- .jodit-filebrowser__tree.jodit-filebrowser_active .jodit-filebrowser__tree-item:hover i.jodit-icon_folder {
3935
- opacity: 0.6;
3901
+ .jodit-filebrowser-preview__navigation:hover svg {
3902
+ fill: #000;
3936
3903
  }
3937
- .jodit-filebrowser__files.jodit-filebrowser_active {
3938
- width: 100%;
3939
- -ms-flex-wrap: wrap;
3940
- flex-wrap: wrap;
3941
- -ms-flex-line-pack: start;
3942
- align-content: flex-start;
3943
- padding: calc(8px / 2);
3944
- overflow-y: auto;
3904
+ .jodit-filebrowser-preview img {
3905
+ max-width: 100%;
3906
+ max-height: 100%;
3945
3907
  }
3946
- .jodit-filebrowser__files.jodit-filebrowser_active .jodit-filebrowser__source-title {
3947
- position: relative;
3948
- display: block;
3908
+
3909
+ /*!
3910
+ * Jodit Editor (https://xdsoft.net/jodit/)
3911
+ * Released under MIT see LICENSE.txt in the project root for license information.
3912
+ * Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
3913
+ */
3914
+ .jodit-image-editor {
3915
+ overflow: hidden;
3916
+ width: 100%;
3917
+ height: 100%;
3949
3918
  padding: 8px;
3950
- margin: calc(8px * -1);
3951
- margin-bottom: 0;
3952
- background: #5a5a5a;
3953
- color: #969696;
3954
- font-size: 16px;
3919
+ }
3920
+ @media (max-width: 768px) {
3921
+ .jodit-image-editor {
3922
+ height: auto;
3923
+ }
3924
+ }
3925
+ .jodit-image-editor > div,
3926
+ .jodit-image-editor > div > div {
3927
+ height: 100%;
3928
+ }
3929
+ @media (max-width: 768px) {
3930
+ .jodit-image-editor > div,
3931
+ .jodit-image-editor > div > div {
3932
+ height: auto;
3933
+ min-height: 200px;
3934
+ }
3935
+ }
3936
+ .jodit-image-editor * {
3937
+ -webkit-box-sizing: border-box;
3938
+ box-sizing: border-box;
3939
+ }
3940
+ .jodit-image-editor .jodit-image-editor__slider-title {
3941
+ padding: 0.8em 1em;
3942
+ border-bottom: 1px solid rgba(158, 158, 158, 0.31);
3943
+ background-color: #f9f9f9;
3944
+ color: #333333;
3945
+ cursor: pointer;
3946
+ font-weight: bold;
3947
+ line-height: 1em;
3948
+ -o-text-overflow: ellipsis;
3949
+ text-overflow: ellipsis;
3950
+ text-shadow: #f3f3f3 0 1px 0;
3955
3951
  -webkit-user-select: none;
3956
3952
  -moz-user-select: none;
3957
3953
  -ms-user-select: none;
3958
3954
  user-select: none;
3959
- word-break: break-all;
3960
- }
3961
- .jodit-filebrowser__files.jodit-filebrowser_active a + .jodit-filebrowser__source-title {
3962
- margin-top: 8px;
3955
+ white-space: nowrap;
3963
3956
  }
3964
- .jodit-filebrowser__files.jodit-filebrowser_active .jodit-filebrowser__files-item {
3965
- position: relative;
3966
- display: -webkit-box;
3967
- display: -ms-flexbox;
3968
- display: flex;
3969
- overflow: hidden;
3970
- width: 150px;
3971
- height: 150px;
3972
- -webkit-box-align: center;
3973
- -ms-flex-align: center;
3974
- align-items: center;
3975
- -webkit-box-pack: center;
3976
- -ms-flex-pack: center;
3977
- justify-content: center;
3978
- border: 1px solid #dadada;
3979
- margin: calc(8px / 2);
3980
- font-size: 0;
3981
- text-align: center;
3982
- -webkit-transition: border 0.1s linear, bottom 0.1s linear;
3983
- -o-transition: border 0.1s linear, bottom 0.1s linear;
3984
- transition: border 0.1s linear, bottom 0.1s linear;
3957
+ .jodit-image-editor .jodit-image-editor__slider-title svg {
3958
+ display: inline-block;
3959
+ width: 16px;
3960
+ margin-right: 8px;
3961
+ vertical-align: middle;
3985
3962
  }
3986
- @media (max-width: 480px) {
3987
- .jodit-filebrowser__files.jodit-filebrowser_active .jodit-filebrowser__files-item {
3988
- width: calc(50% - 8px);
3989
- }
3963
+ .jodit-image-editor .jodit-image-editor__slider-content {
3964
+ display: none;
3990
3965
  }
3991
- .jodit-filebrowser__files.jodit-filebrowser_active .jodit-filebrowser__files-item img {
3992
- max-width: 100%;
3966
+ .jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-title {
3967
+ background-color: #5d5d5d;
3968
+ color: #fff;
3969
+ text-shadow: #000 0 1px 0;
3993
3970
  }
3994
- .jodit-filebrowser__files.jodit-filebrowser_active .jodit-filebrowser__files-item:hover {
3995
- border-color: #433b5c;
3971
+ .jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-title svg {
3972
+ fill: white;
3996
3973
  }
3997
- .jodit-filebrowser__files.jodit-filebrowser_active .jodit-filebrowser__files-item_active_true {
3998
- border-color: #1e88e5;
3999
- background-color: #b5b5b5;
4000
- }
4001
- .jodit-filebrowser__files.jodit-filebrowser_active .jodit-filebrowser__files-item_active_true .jodit-filebrowser__files-item-info {
4002
- background-color: #b5b5b5;
4003
- color: white;
4004
- text-shadow: none;
4005
- }
4006
- .jodit-filebrowser__files.jodit-filebrowser_active .jodit-filebrowser__files-item-info {
4007
- position: absolute;
4008
- right: 0;
4009
- bottom: 0;
4010
- left: 0;
4011
- overflow: visible;
4012
- padding: 0.3em 0.6em;
4013
- background-color: #e9e9e9;
4014
- color: #333333;
4015
- font-size: 14px;
4016
- line-height: 16px;
4017
- opacity: 0.85;
4018
- text-align: left;
4019
- text-shadow: #eeeeee 0 1px 0;
4020
- -webkit-transition: opacity 400ms ease;
4021
- -o-transition: opacity 400ms ease;
4022
- transition: opacity 400ms ease;
4023
- white-space: normal;
4024
- }
4025
- .jodit-filebrowser__files.jodit-filebrowser_active .jodit-filebrowser__files-item-info > span {
4026
- display: block;
4027
- overflow: hidden;
4028
- font-size: 0.75em;
4029
- -o-text-overflow: ellipsis;
4030
- text-overflow: ellipsis;
4031
- white-space: nowrap;
4032
- }
4033
- .jodit-filebrowser__files.jodit-filebrowser_active .jodit-filebrowser__files-item-info > span.jodit-filebrowser__files-item-info-filename {
4034
- font-size: 0.9em;
4035
- font-weight: bold;
4036
- }
4037
- .jodit-filebrowser__files.jodit-filebrowser_active .jodit-filebrowser__files-item:hover:not(.jodit-filebrowser__files-item_active_true) .jodit-filebrowser__files-item-info {
4038
- bottom: -100px;
4039
- }
4040
- .jodit-filebrowser__files.jodit-filebrowser_active.jodit-filebrowser__files_view_list {
4041
- scroll-behavior: smooth;
4042
- }
4043
- .jodit-filebrowser__files.jodit-filebrowser_active.jodit-filebrowser__files_view_list a {
4044
- display: block;
4045
- width: 100%;
4046
- height: 26px;
4047
- border-width: 0 0 1px 0;
4048
- margin: 0;
4049
- line-height: 26px;
4050
- text-align: left;
4051
- white-space: nowrap;
4052
- }
4053
- .jodit-filebrowser__files.jodit-filebrowser_active.jodit-filebrowser__files_view_list a img {
4054
- display: inline-block;
4055
- min-width: 16px;
4056
- max-width: 16px;
4057
- margin-left: 4px;
4058
- vertical-align: middle;
4059
- }
4060
- .jodit-filebrowser__files.jodit-filebrowser_active.jodit-filebrowser__files_view_list a .jodit-filebrowser__files-item-info {
4061
- position: static;
4062
- display: inline-block;
4063
- width: calc(100% - 20px);
4064
- height: 100%;
4065
- padding: 0;
4066
- margin-left: 4px;
4067
- background-color: transparent;
4068
- font-size: 0;
4069
- line-height: inherit;
4070
- vertical-align: middle;
4071
- }
4072
- .jodit-filebrowser__files.jodit-filebrowser_active.jodit-filebrowser__files_view_list a .jodit-filebrowser__files-item-info > span {
4073
- display: inline-block;
4074
- height: 100%;
4075
- font-size: 12px;
4076
- }
4077
- .jodit-filebrowser__files.jodit-filebrowser_active.jodit-filebrowser__files_view_list a .jodit-filebrowser__files-item-info > span.jodit-filebrowser__files-item-info-filename {
4078
- width: 50%;
4079
- }
4080
- .jodit-filebrowser__files.jodit-filebrowser_active.jodit-filebrowser__files_view_list a .jodit-filebrowser__files-item-info > span.jodit-filebrowser__files-item-info-filesize {
4081
- width: 25%;
4082
- }
4083
- .jodit-filebrowser__files.jodit-filebrowser_active.jodit-filebrowser__files_view_list a .jodit-filebrowser__files-item-info > span.jodit-filebrowser__files-item-info-filechanged {
4084
- width: 25%;
4085
- }
4086
- .jodit-filebrowser__files.jodit-filebrowser_active.jodit-filebrowser__files_view_list a:hover {
4087
- background-color: #433b5c;
4088
- }
4089
- .jodit-filebrowser__files.jodit-filebrowser_active.jodit-filebrowser__files_view_list a:hover .jodit-filebrowser__files-item-info {
4090
- color: #fff;
4091
- text-shadow: none;
4092
- }
4093
- .jodit-filebrowser__files.jodit-filebrowser_active.jodit-filebrowser__files_view_list a::before {
4094
- display: inline-block;
4095
- height: 100%;
4096
- content: '';
4097
- vertical-align: middle;
4098
- }
4099
- .jodit_draghover {
4100
- background-color: #ecebe9;
4101
- }
4102
- .jodit-dialog .jodit-dialog__header-title.jodit-filebrowser__title-box {
4103
- display: -webkit-box;
4104
- display: -ms-flexbox;
4105
- display: flex;
4106
- -webkit-box-align: center;
4107
- -ms-flex-align: center;
4108
- align-items: center;
4109
- padding-left: 8px;
4110
- }
4111
- /*!
4112
- * Jodit Editor (https://xdsoft.net/jodit/)
4113
- * Released under MIT see LICENSE.txt in the project root for license information.
4114
- * Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
4115
- */
4116
- .jodit-filebrowser_preview {
4117
- position: relative;
4118
- display: -webkit-box;
4119
- display: -ms-flexbox;
4120
- display: flex;
4121
- min-width: 600px;
4122
- max-width: 1000px;
4123
- min-height: 700px;
4124
- max-height: 100%;
4125
- -webkit-box-align: center;
4126
- -ms-flex-align: center;
4127
- align-items: center;
4128
- -webkit-box-pack: center;
4129
- -ms-flex-pack: center;
4130
- justify-content: center;
4131
- text-align: center;
4132
- }
4133
- @media (max-width: 768px) {
4134
- .jodit-filebrowser_preview {
4135
- min-width: auto;
4136
- max-width: 100%;
4137
- height: 100%;
4138
- min-height: auto;
4139
- max-height: 100%;
4140
- }
4141
- }
4142
- .jodit-filebrowser_preview_box {
4143
- display: -webkit-box;
4144
- display: -ms-flexbox;
4145
- display: flex;
4146
- -webkit-box-flex: 1;
4147
- -ms-flex-positive: 1;
4148
- flex-grow: 1;
4149
- -webkit-box-align: center;
4150
- -ms-flex-align: center;
4151
- align-items: center;
4152
- -webkit-box-pack: center;
4153
- -ms-flex-pack: center;
4154
- justify-content: center;
4155
- }
4156
- .jodit-filebrowser_preview_navigation {
4157
- position: absolute;
4158
- top: 0;
4159
- left: 0;
4160
- height: 100%;
4161
- }
4162
- .jodit-filebrowser_preview_navigation-next {
4163
- right: 0;
4164
- left: auto;
4165
- }
4166
- .jodit-filebrowser_preview_navigation svg {
4167
- position: relative;
4168
- top: 50%;
4169
- width: 45px;
4170
- height: 45px;
4171
- margin-top: -22px;
4172
- fill: #9e9ba7;
4173
- -webkit-transition: fill 0.3s linear;
4174
- -o-transition: fill 0.3s linear;
4175
- transition: fill 0.3s linear;
4176
- }
4177
- .jodit-filebrowser_preview_navigation:hover svg {
4178
- fill: #000;
4179
- }
4180
- .jodit-filebrowser_preview img {
4181
- max-width: 100%;
4182
- max-height: 100%;
4183
- }
4184
-
4185
- /*!
4186
- * Jodit Editor (https://xdsoft.net/jodit/)
4187
- * Released under MIT see LICENSE.txt in the project root for license information.
4188
- * Copyright (c) 2013-2021 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
4189
- */
4190
- .jodit-image-editor {
4191
- overflow: hidden;
4192
- width: 100%;
4193
- height: 100%;
4194
- padding: 8px;
4195
- }
4196
- @media (max-width: 768px) {
4197
- .jodit-image-editor {
4198
- height: auto;
4199
- }
4200
- }
4201
- .jodit-image-editor > div,
4202
- .jodit-image-editor > div > div {
4203
- height: 100%;
4204
- }
4205
- @media (max-width: 768px) {
4206
- .jodit-image-editor > div,
4207
- .jodit-image-editor > div > div {
4208
- height: auto;
4209
- min-height: 200px;
4210
- }
4211
- }
4212
- .jodit-image-editor * {
4213
- -webkit-box-sizing: border-box;
4214
- box-sizing: border-box;
4215
- }
4216
- .jodit-image-editor .jodit-image-editor__slider-title {
4217
- padding: 0.8em 1em;
4218
- border-bottom: 1px solid rgba(158, 158, 158, 0.31);
4219
- background-color: #f9f9f9;
4220
- color: #333333;
4221
- cursor: pointer;
4222
- font-weight: bold;
4223
- line-height: 1em;
4224
- -o-text-overflow: ellipsis;
4225
- text-overflow: ellipsis;
4226
- text-shadow: #f3f3f3 0 1px 0;
4227
- -webkit-user-select: none;
4228
- -moz-user-select: none;
4229
- -ms-user-select: none;
4230
- user-select: none;
4231
- white-space: nowrap;
4232
- }
4233
- .jodit-image-editor .jodit-image-editor__slider-title svg {
4234
- display: inline-block;
4235
- width: 16px;
4236
- margin-right: 8px;
4237
- vertical-align: middle;
4238
- }
4239
- .jodit-image-editor .jodit-image-editor__slider-content {
4240
- display: none;
4241
- }
4242
- .jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-title {
4243
- background-color: #5d5d5d;
4244
- color: #fff;
4245
- text-shadow: #000 0 1px 0;
4246
- }
4247
- .jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-title svg {
4248
- fill: white;
4249
- }
4250
- .jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-content {
4251
- display: block;
3974
+ .jodit-image-editor .jodit-image-editor__slider.jodit-image-editor_active .jodit-image-editor__slider-content {
3975
+ display: block;
4252
3976
  }
4253
3977
  .jodit-image-editor__area {
4254
3978
  position: relative;
@@ -4407,6 +4131,305 @@ svg.jodit-icon {
4407
4131
  justify-content: center;
4408
4132
  }
4409
4133
 
4134
+ .jodit-filebrowser-files {
4135
+ position: relative;
4136
+ display: none;
4137
+ height: 100%;
4138
+ vertical-align: top;
4139
+ overflow-anchor: auto;
4140
+ }
4141
+ .jodit-filebrowser-files .jodit-button {
4142
+ border-radius: 0;
4143
+ }
4144
+ .jodit-filebrowser-files_active_true {
4145
+ display: -webkit-box;
4146
+ display: -ms-flexbox;
4147
+ display: flex;
4148
+ }
4149
+ .jodit-filebrowser-files::-webkit-scrollbar {
4150
+ width: calc(8px / 2);
4151
+ }
4152
+ .jodit-filebrowser-files::-webkit-scrollbar-track {
4153
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
4154
+ }
4155
+ .jodit-filebrowser-files::-webkit-scrollbar-thumb {
4156
+ background-color: darkgrey;
4157
+ outline: 1px solid slategrey;
4158
+ }
4159
+ .jodit-filebrowser-files_active_true {
4160
+ width: 100%;
4161
+ -ms-flex-wrap: wrap;
4162
+ flex-wrap: wrap;
4163
+ -ms-flex-line-pack: start;
4164
+ align-content: flex-start;
4165
+ padding: calc(8px / 2);
4166
+ overflow-y: auto;
4167
+ }
4168
+ .jodit-filebrowser-files__item {
4169
+ position: relative;
4170
+ display: -webkit-box;
4171
+ display: -ms-flexbox;
4172
+ display: flex;
4173
+ overflow: hidden;
4174
+ width: 150px;
4175
+ height: 150px;
4176
+ -webkit-box-align: center;
4177
+ -ms-flex-align: center;
4178
+ align-items: center;
4179
+ -webkit-box-pack: center;
4180
+ -ms-flex-pack: center;
4181
+ justify-content: center;
4182
+ border: 1px solid #dadada;
4183
+ margin: calc(8px / 2);
4184
+ font-size: 0;
4185
+ text-align: center;
4186
+ -webkit-transition: border 0.1s linear, bottom 0.1s linear;
4187
+ -o-transition: border 0.1s linear, bottom 0.1s linear;
4188
+ transition: border 0.1s linear, bottom 0.1s linear;
4189
+ }
4190
+ @media (max-width: 480px) {
4191
+ .jodit-filebrowser-files__item {
4192
+ width: calc(50% - 8px);
4193
+ }
4194
+ }
4195
+ .jodit-filebrowser-files__item img {
4196
+ max-width: 100%;
4197
+ }
4198
+ .jodit-filebrowser-files__item:hover {
4199
+ border-color: #433b5c;
4200
+ }
4201
+ .jodit-filebrowser-files__item_active_true {
4202
+ border-color: #1e88e5;
4203
+ background-color: #b5b5b5;
4204
+ }
4205
+ .jodit-filebrowser-files__item_active_true .jodit-filebrowser-files__item-info {
4206
+ background-color: #b5b5b5;
4207
+ color: white;
4208
+ text-shadow: none;
4209
+ }
4210
+ .jodit-filebrowser-files__item-info {
4211
+ position: absolute;
4212
+ right: 0;
4213
+ bottom: 0;
4214
+ left: 0;
4215
+ overflow: visible;
4216
+ padding: 0.3em 0.6em;
4217
+ background-color: #e9e9e9;
4218
+ color: #333333;
4219
+ font-size: 14px;
4220
+ line-height: 16px;
4221
+ opacity: 0.85;
4222
+ text-align: left;
4223
+ text-shadow: #eeeeee 0 1px 0;
4224
+ -webkit-transition: opacity 400ms ease;
4225
+ -o-transition: opacity 400ms ease;
4226
+ transition: opacity 400ms ease;
4227
+ white-space: normal;
4228
+ }
4229
+ .jodit-filebrowser-files__item-info > span {
4230
+ display: block;
4231
+ overflow: hidden;
4232
+ font-size: 0.75em;
4233
+ -o-text-overflow: ellipsis;
4234
+ text-overflow: ellipsis;
4235
+ white-space: nowrap;
4236
+ }
4237
+ .jodit-filebrowser-files__item-info > span.jodit-filebrowser-files__item-info-filename {
4238
+ font-size: 0.9em;
4239
+ font-weight: bold;
4240
+ }
4241
+ .jodit-filebrowser-files__item:hover:not(.jodit-filebrowser-files__item_active_true) .jodit-filebrowser-files__item-info {
4242
+ bottom: -100px;
4243
+ }
4244
+ .jodit-filebrowser-files_view_list {
4245
+ scroll-behavior: smooth;
4246
+ }
4247
+ .jodit-filebrowser-files_view_list a {
4248
+ display: block;
4249
+ width: 100%;
4250
+ height: 26px;
4251
+ border-width: 0 0 1px 0;
4252
+ margin: 0;
4253
+ line-height: 26px;
4254
+ text-align: left;
4255
+ white-space: nowrap;
4256
+ }
4257
+ .jodit-filebrowser-files_view_list a img {
4258
+ display: inline-block;
4259
+ min-width: 16px;
4260
+ max-width: 16px;
4261
+ margin-left: 4px;
4262
+ vertical-align: middle;
4263
+ }
4264
+ .jodit-filebrowser-files_view_list a .jodit-filebrowser-files__item-info {
4265
+ position: static;
4266
+ display: inline-block;
4267
+ width: calc(100% - 20px);
4268
+ height: 100%;
4269
+ padding: 0;
4270
+ margin-left: 4px;
4271
+ background-color: transparent;
4272
+ font-size: 0;
4273
+ line-height: inherit;
4274
+ vertical-align: middle;
4275
+ }
4276
+ .jodit-filebrowser-files_view_list a .jodit-filebrowser-files__item-info > span {
4277
+ display: inline-block;
4278
+ height: 100%;
4279
+ font-size: 12px;
4280
+ }
4281
+ .jodit-filebrowser-files_view_list a .jodit-filebrowser-files__item-info-filename {
4282
+ width: 50%;
4283
+ }
4284
+ .jodit-filebrowser-files_view_list a .jodit-filebrowser-files__item-info-filesize {
4285
+ width: 25%;
4286
+ }
4287
+ .jodit-filebrowser-files_view_list a .jodit-filebrowser-files__item-info-filechanged {
4288
+ width: 25%;
4289
+ }
4290
+ .jodit-filebrowser-files_view_list a:hover {
4291
+ background-color: #433b5c;
4292
+ }
4293
+ .jodit-filebrowser-files_view_list a:hover .jodit-filebrowser-files__item-info {
4294
+ color: #fff;
4295
+ text-shadow: none;
4296
+ }
4297
+ .jodit-filebrowser-files_view_list a::before {
4298
+ display: inline-block;
4299
+ height: 100%;
4300
+ content: '';
4301
+ vertical-align: middle;
4302
+ }
4303
+
4304
+ .jodit-filebrowser-tree {
4305
+ position: relative;
4306
+ display: none;
4307
+ height: 100%;
4308
+ vertical-align: top;
4309
+ overflow-anchor: auto;
4310
+ }
4311
+ .jodit-filebrowser-tree .jodit-button {
4312
+ border-radius: 0;
4313
+ }
4314
+ .jodit-filebrowser-tree_active_true {
4315
+ display: -webkit-box;
4316
+ display: -ms-flexbox;
4317
+ display: flex;
4318
+ }
4319
+ .jodit-filebrowser-tree::-webkit-scrollbar {
4320
+ width: calc(8px / 2);
4321
+ }
4322
+ .jodit-filebrowser-tree::-webkit-scrollbar-track {
4323
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
4324
+ }
4325
+ .jodit-filebrowser-tree::-webkit-scrollbar-thumb {
4326
+ background-color: darkgrey;
4327
+ outline: 1px solid slategrey;
4328
+ }
4329
+ .jodit-filebrowser-tree_active_true {
4330
+ z-index: 2;
4331
+ width: 31%;
4332
+ min-width: 200px;
4333
+ max-width: 290px;
4334
+ -webkit-box-orient: vertical;
4335
+ -webkit-box-direction: normal;
4336
+ -ms-flex-direction: column;
4337
+ flex-direction: column;
4338
+ background-color: #3f3f3f;
4339
+ overflow-y: auto;
4340
+ }
4341
+ @media (max-width: 480px) {
4342
+ .jodit-filebrowser-tree_active_true {
4343
+ width: auto;
4344
+ max-width: 100%;
4345
+ height: 100px;
4346
+ }
4347
+ }
4348
+ .jodit-filebrowser-tree_active_true::-webkit-scrollbar {
4349
+ width: calc(8px / 2);
4350
+ }
4351
+ .jodit-filebrowser-tree_active_true::-webkit-scrollbar-track {
4352
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
4353
+ }
4354
+ .jodit-filebrowser-tree_active_true::-webkit-scrollbar-thumb {
4355
+ background-color: rgba(127, 127, 127, 0.5);
4356
+ outline: 1px solid slategrey;
4357
+ }
4358
+ .jodit-filebrowser-tree__item {
4359
+ position: relative;
4360
+ display: -webkit-box;
4361
+ display: -ms-flexbox;
4362
+ display: flex;
4363
+ min-height: 38px;
4364
+ -webkit-box-align: center;
4365
+ -ms-flex-align: center;
4366
+ align-items: center;
4367
+ -webkit-box-pack: justify;
4368
+ -ms-flex-pack: justify;
4369
+ justify-content: space-between;
4370
+ padding: calc(8px / 2) 8px;
4371
+ border-bottom: 1px solid #474747;
4372
+ color: undefined;
4373
+ text-decoration: none;
4374
+ -webkit-transition: background-color 0.2s ease 0s;
4375
+ -o-transition: background-color 0.2s ease 0s;
4376
+ transition: background-color 0.2s ease 0s;
4377
+ word-break: break-all;
4378
+ }
4379
+ .jodit-filebrowser-tree__item-title {
4380
+ -webkit-box-flex: 1;
4381
+ -ms-flex: 1;
4382
+ flex: 1;
4383
+ }
4384
+ .jodit-filebrowser-tree__item .jodit-icon_folder {
4385
+ display: -webkit-box;
4386
+ display: -ms-flexbox;
4387
+ display: flex;
4388
+ width: calc(12px + 4px);
4389
+ height: calc(12px + 4px);
4390
+ -webkit-box-align: center;
4391
+ -ms-flex-align: center;
4392
+ align-items: center;
4393
+ -webkit-box-pack: center;
4394
+ -ms-flex-pack: center;
4395
+ justify-content: center;
4396
+ margin-left: calc(8px / 2);
4397
+ opacity: 0.3;
4398
+ }
4399
+ .jodit-filebrowser-tree__item .jodit-icon_folder svg {
4400
+ width: 12px;
4401
+ height: 12px;
4402
+ fill: undefined !important;
4403
+ stroke: undefined !important;
4404
+ }
4405
+ .jodit-filebrowser-tree__item .jodit-icon_folder:hover {
4406
+ background: #696969;
4407
+ }
4408
+ .jodit-filebrowser-tree__item:hover {
4409
+ background-color: #ecebe9;
4410
+ color: #222;
4411
+ }
4412
+ .jodit-filebrowser-tree__item:hover i.jodit-icon_folder {
4413
+ opacity: 0.6;
4414
+ }
4415
+ .jodit-filebrowser-tree__source-title {
4416
+ position: relative;
4417
+ display: block;
4418
+ padding: 2px 4px;
4419
+ border-bottom: 1px solid #484848;
4420
+ background: #5a5a5a;
4421
+ color: #969696;
4422
+ font-size: 12px;
4423
+ -webkit-user-select: none;
4424
+ -moz-user-select: none;
4425
+ -ms-user-select: none;
4426
+ user-select: none;
4427
+ word-break: break-all;
4428
+ }
4429
+ a + .jodit-filebrowser-tree__source-title {
4430
+ margin-top: 8px;
4431
+ }
4432
+
4410
4433
  /*!
4411
4434
  * Jodit Editor (https://xdsoft.net/jodit/)
4412
4435
  * Released under MIT see LICENSE.txt in the project root for license information.