Update pages.html
Browse files- pages.html +106 -18
pages.html
CHANGED
@@ -768,25 +768,113 @@ z-index: 1000; /* Убедитесь, что кнопка находится п
|
|
768 |
|
769 |
|
770 |
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
789 |
|
|
|
790 |
|
791 |
|
792 |
|
|
|
768 |
|
769 |
|
770 |
|
771 |
+
<script type="text/javascript">
|
772 |
+
var editor = grapesjs.init({
|
773 |
+
container: '#gjs',
|
774 |
+
fromElement: true,
|
775 |
+
height: "100vh",
|
776 |
+
storageManager: {
|
777 |
+
type: 'local',
|
778 |
+
autosave: true,
|
779 |
+
autoload: true,
|
780 |
+
stepsBeforeSave: 1,
|
781 |
+
},
|
782 |
+
plugins: [
|
783 |
+
"gjs-blocks-basic",
|
784 |
+
"grapesjs-component-countdown",
|
785 |
+
"grapesjs-component-code-editor",
|
786 |
+
"grapesjs-templates",
|
787 |
+
"grapesjs-rte-extensions",
|
788 |
+
"grapesjs-user-blocks",
|
789 |
+
"grapesjs-tabs", // Плагин вкладок
|
790 |
+
"grapesjs-tooltip", // Плагин подсказок
|
791 |
+
"grapesjs-script-editor", // Плагин редактора скриптов
|
792 |
+
"grapesjs-rulers" // Добавляем плагин линеек
|
793 |
+
],
|
794 |
+
pluginsOpts: {
|
795 |
+
"gjs-blocks-basic": {
|
796 |
+
blocks: ['column1', 'column2', 'column3', 'column3-7', 'text', 'quote', 'social'],
|
797 |
+
blocksBasicOpts: {
|
798 |
+
flexGrid: true,
|
799 |
+
stylePrefix: 'gjs-',
|
800 |
+
columns: 12,
|
801 |
+
rowHeight: 75,
|
802 |
+
addBasicStyle: true
|
803 |
+
}
|
804 |
+
},
|
805 |
+
"grapesjs-component-code-editor": {
|
806 |
+
panelId: 'views-container',
|
807 |
+
appendTo: '.gjs-pn-views-container',
|
808 |
+
openState: { pn: '35%', cv: '65%' },
|
809 |
+
closedState: { pn: '15%', cv: '85%' },
|
810 |
+
codeViewOptions: {},
|
811 |
+
preserveWidth: false,
|
812 |
+
clearData: false,
|
813 |
+
editJs: true,
|
814 |
+
cleanCssBtn: true,
|
815 |
+
htmlBtnText: 'Применить',
|
816 |
+
cssBtnText: 'Применить',
|
817 |
+
cleanCssBtnText: 'Удалить'
|
818 |
+
},
|
819 |
+
"grapesjs-templates": {
|
820 |
+
// Настройки для grapesjs-templates
|
821 |
+
},
|
822 |
+
"grapesjs-rte-extensions": {
|
823 |
+
base: {
|
824 |
+
bold: true,
|
825 |
+
italic: true,
|
826 |
+
underline: true,
|
827 |
+
strikethrough: true,
|
828 |
+
link: true,
|
829 |
+
},
|
830 |
+
fonts: {
|
831 |
+
fontColor: true,
|
832 |
+
hilite: true,
|
833 |
+
},
|
834 |
+
format: {
|
835 |
+
heading1: true,
|
836 |
+
heading2: true,
|
837 |
+
heading3: true,
|
838 |
+
paragraph: true,
|
839 |
+
clearFormatting: true,
|
840 |
+
},
|
841 |
+
align: true,
|
842 |
+
darkColorPicker: true,
|
843 |
+
maxWidth: '600px'
|
844 |
+
},
|
845 |
+
"grapesjs-user-blocks": {
|
846 |
+
// Настройки для grapesjs-user-blocks
|
847 |
+
},
|
848 |
+
"grapesjs-tabs": {
|
849 |
+
// Настройки для grapesjs-tabs
|
850 |
+
},
|
851 |
+
"grapesjs-tooltip": {
|
852 |
+
// Настройки для grapesjs-tooltip
|
853 |
+
},
|
854 |
+
"grapesjs-script-editor": {
|
855 |
+
// Настройки для grapesjs-script-editor
|
856 |
+
starter: 'let el = this',
|
857 |
+
toolbarIcon: '<i class="fa fa-puzzle-piece"></i>',
|
858 |
+
scriptTypesSupport: ['default', 'wrapper', 'text', 'textnode', 'image', 'video', 'svg'],
|
859 |
+
toolbarBtnCustomScript: {},
|
860 |
+
onRun: () => console.log('valid syntax'),
|
861 |
+
onError: err => console.log('error:', err),
|
862 |
+
modalTitle: 'Script',
|
863 |
+
codeViewOptions: {},
|
864 |
+
buttonLabel: 'save',
|
865 |
+
commandAttachScript: {}
|
866 |
+
},
|
867 |
+
"grapesjs-rulers": {
|
868 |
+
// Настройки для grapesjs-rulers
|
869 |
+
dragMode: 'translate',
|
870 |
+
rulerHeight: 15,
|
871 |
+
canvasZoom: 94,
|
872 |
+
rulerOpts: {}
|
873 |
+
}
|
874 |
+
}
|
875 |
+
});
|
876 |
|
877 |
+
</script>
|
878 |
|
879 |
|
880 |
|