Слышу гимн зашитых ртов
Группа: Администратор
Ранг: Опытный
Сообщений: 1416
Дата:
10.02.2019 в 00:47
Сегодня я вам покажу как установить немного измененный визуальный редактор для uCoz. Установить можно как одним кодом так и полной установкой, покажу первый способ. По стандарту это наш унылый редактор: CKEditor 4 дает возможность поменять нам стиль и добавляет несколько новых плагинов, к примеру это фул пак: Установка проста, заходим на сайт https://ckeditor.com/ckeditor-4/download/ , находим пункт CKEditor CDN, и выбираем какой нам пакет нужен, дальше копируем ссылку и вставляем в <head >.Код
<script src="//cdn.ckeditor.com/4.11.2/full/ckeditor.js"></script>
Вот и всё, на сайте присутствуют скины на эти панели, можете скачать и устанавливать, вся документация с установкой на сайте. Ну и ещё кому надо темный вид визуального редактора для uCoz: Установка пока что через стайл, любой модуль в добавлении и редактировании, после $BODY $. Через ксс стили советую не пробовать, или через импорт, он будет работать но минут 20, ибо у стандартного редактора юкоз меняется свой юрл код, вообщем, пока сам попытаюсь разобраться..
Код
<style>.cke_editable {cursor: text;background: #282828;color:#888888;} .cke_top {border-bottom: 1px solid #323232;box-shadow: 0 1px 0 #2d2d2d inset;background: #313131;background-image: linear-gradient(to bottom,#333333,#333333);} .cke_toolgroup {border: 1px solid #636363;border-bottom-color: #505050;box-shadow: 0 1px 0 rgba(16, 16, 16, 0.5), 0 0 2px rgb(35, 35, 35) inset, 0 1px 0 rgb(25, 25, 25) inset;background: #313131;/* background-image: linear-gradient(to bottom,#1d1818,#505050);*/} .cke_toolgroup:hover {border: 1px solid #636363;border-bottom-color: #505050;box-shadow: 0 1px 0 rgba(16, 16, 16, 0.5), 0 0 2px rgb(35, 35, 35) inset, 0 1px 0 rgb(25, 25, 25) inset;background: #313131;/* background-image: linear-gradient(to bottom,#1d1818,#505050);*/} .cke_combo_text {color: #7b7b7b;text-shadow: 0 1px 0 rgba(16, 16, 16, 0.5);} .cke_wordcount > span {color: #888888;text-shadow: 0 1px 0 #000;} .cke_bottom {border-top: 1px solid #3e3e3e;box-shadow: 0 1px 0 #292929 inset;background: #2f2f2f;background-image: linear-gradient(to bottom,#2f2f2f,#2f2f2f);filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#ebebeb',endColorstr='#cfd1cf');} .cke_chrome {border: 1px solid #404040;padding: 0;} .cke_button__bold_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -0px !important;}.cke_button__italic_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -24px !important;}.cke_button__strike_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -48px !important;}.cke_button__subscript_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -72px !important;}.cke_button__superscript_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -96px !important;}.cke_button__underline_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -120px !important;}.cke_button__blockquote_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -144px !important;}.cke_rtl .cke_button__copy_icon, .cke_mixed_dir_content .cke_rtl .cke_button__copy_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -168px !important;}.cke_ltr .cke_button__copy_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -192px !important;}.cke_rtl .cke_button__cut_icon, .cke_mixed_dir_content .cke_rtl .cke_button__cut_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -216px !important;}.cke_ltr .cke_button__cut_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -240px !important;}.cke_rtl .cke_button__paste_icon, .cke_mixed_dir_content .cke_rtl .cke_button__paste_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -264px !important;}.cke_ltr .cke_button__paste_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -288px !important;}.cke_button__horizontalrule_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -312px !important;}.cke_button__image_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -336px !important;}.cke_rtl .cke_button__indent_icon, .cke_mixed_dir_content .cke_rtl .cke_button__indent_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -360px !important;}.cke_ltr .cke_button__indent_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -384px !important;}.cke_rtl .cke_button__outdent_icon, .cke_mixed_dir_content .cke_rtl .cke_button__outdent_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -408px !important;}.cke_ltr .cke_button__outdent_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -432px !important;}.cke_rtl .cke_button__anchor_icon, .cke_mixed_dir_content .cke_rtl .cke_button__anchor_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -456px !important;}.cke_ltr .cke_button__anchor_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -480px !important;}.cke_button__link_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -504px !important;}.cke_button__unlink_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -528px !important;}.cke_rtl .cke_button__bulletedlist_icon, .cke_mixed_dir_content .cke_rtl .cke_button__bulletedlist_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -552px !important;}.cke_ltr .cke_button__bulletedlist_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -576px !important;}.cke_rtl .cke_button__numberedlist_icon, .cke_mixed_dir_content .cke_rtl .cke_button__numberedlist_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -600px !important;}.cke_ltr .cke_button__numberedlist_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -624px !important;}.cke_button__maximize_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -648px !important;}.cke_rtl .cke_button__pastetext_icon, .cke_mixed_dir_content .cke_rtl .cke_button__pastetext_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -672px !important;}.cke_ltr .cke_button__pastetext_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -696px !important;}.cke_rtl .cke_button__pastefromword_icon, .cke_mixed_dir_content .cke_rtl .cke_button__pastefromword_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -720px !important;}.cke_ltr .cke_button__pastefromword_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -744px !important;}.cke_button__removeformat_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -768px !important;}.cke_rtl .cke_button__source_icon, .cke_mixed_dir_content .cke_rtl .cke_button__source_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -792px !important;}.cke_ltr .cke_button__source_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -816px !important;}.cke_button__specialchar_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -840px !important;}.cke_button__table_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -864px !important;}.cke_rtl .cke_button__redo_icon, .cke_mixed_dir_content .cke_rtl .cke_button__redo_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -888px !important;}.cke_ltr .cke_button__redo_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -912px !important;}.cke_rtl .cke_button__undo_icon, .cke_mixed_dir_content .cke_rtl .cke_button__undo_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -936px !important;}.cke_ltr .cke_button__undo_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -960px !important;}.cke_button__justifyblock_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -984px !important;}.cke_button__justifycenter_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1008px !important;}.cke_button__justifyleft_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1032px !important;}.cke_button__justifyright_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1056px !important;}.cke_button__bgcolor_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1080px !important;}.cke_button__textcolor_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1104px !important;}.cke_rtl .cke_button__find_icon, .cke_mixed_dir_content .cke_rtl .cke_button__find_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1128px !important;}.cke_ltr .cke_button__find_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1152px !important;}.cke_button__replace_icon {background: url(https://i.ibb.co/HpszkgR/https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1176px !important;}.cke_hidpi .cke_button__bold_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -0px !important;}.cke_hidpi .cke_button__italic_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -32px !important;}.cke_hidpi .cke_button__strike_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -64px !important;}.cke_hidpi .cke_button__subscript_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -96px !important;}.cke_hidpi .cke_button__superscript_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -128px !important;}.cke_hidpi .cke_button__underline_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -160px !important;}.cke_hidpi .cke_button__blockquote_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -192px !important;}.cke_rtl.cke_hidpi .cke_button__copy_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__copy_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -224px !important;}.cke_hidpi .cke_ltr .cke_button__copy_icon,.cke_ltr.cke_hidpi .cke_button__copy_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -256px !important;}.cke_rtl.cke_hidpi .cke_button__cut_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__cut_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -288px !important;}.cke_hidpi .cke_ltr .cke_button__cut_icon,.cke_ltr.cke_hidpi .cke_button__cut_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -320px !important;}.cke_rtl.cke_hidpi .cke_button__paste_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__paste_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -352px !important;}.cke_hidpi .cke_ltr .cke_button__paste_icon,.cke_ltr.cke_hidpi .cke_button__paste_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -384px !important;}.cke_hidpi .cke_button__horizontalrule_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -416px !important;}.cke_hidpi .cke_button__image_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -448px !important;}.cke_rtl.cke_hidpi .cke_button__indent_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__indent_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -480px !important;}.cke_hidpi .cke_ltr .cke_button__indent_icon,.cke_ltr.cke_hidpi .cke_button__indent_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -512px !important;}.cke_rtl.cke_hidpi .cke_button__outdent_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__outdent_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -544px !important;}.cke_hidpi .cke_ltr .cke_button__outdent_icon,.cke_ltr.cke_hidpi .cke_button__outdent_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -576px !important;}.cke_rtl.cke_hidpi .cke_button__anchor_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__anchor_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -608px !important;}.cke_hidpi .cke_ltr .cke_button__anchor_icon,.cke_ltr.cke_hidpi .cke_button__anchor_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -640px !important;}.cke_hidpi .cke_button__link_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -672px !important;}.cke_hidpi .cke_button__unlink_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -704px !important;}.cke_rtl.cke_hidpi .cke_button__bulletedlist_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__bulletedlist_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -736px !important;}.cke_hidpi .cke_ltr .cke_button__bulletedlist_icon,.cke_ltr.cke_hidpi .cke_button__bulletedlist_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -768px !important;}.cke_rtl.cke_hidpi .cke_button__numberedlist_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__numberedlist_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -800px !important;}.cke_hidpi .cke_ltr .cke_button__numberedlist_icon,.cke_ltr.cke_hidpi .cke_button__numberedlist_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -832px !important;}.cke_hidpi .cke_button__maximize_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -864px !important;}.cke_rtl.cke_hidpi .cke_button__pastetext_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__pastetext_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -896px !important;}.cke_hidpi .cke_ltr .cke_button__pastetext_icon,.cke_ltr.cke_hidpi .cke_button__pastetext_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -928px !important;}.cke_rtl.cke_hidpi .cke_button__pastefromword_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__pastefromword_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -960px !important;}.cke_hidpi .cke_ltr .cke_button__pastefromword_icon,.cke_ltr.cke_hidpi .cke_button__pastefromword_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -992px !important;}.cke_hidpi .cke_button__removeformat_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1024px !important;}.cke_rtl.cke_hidpi .cke_button__source_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__source_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1056px !important;}.cke_hidpi .cke_ltr .cke_button__source_icon,.cke_ltr.cke_hidpi .cke_button__source_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1088px !important;}.cke_hidpi .cke_button__specialchar_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1120px !important;}.cke_hidpi .cke_button__table_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1152px !important;}.cke_rtl.cke_hidpi .cke_button__redo_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__redo_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1184px !important;}.cke_hidpi .cke_ltr .cke_button__redo_icon,.cke_ltr.cke_hidpi .cke_button__redo_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1216px !important;}.cke_rtl.cke_hidpi .cke_button__undo_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__undo_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1248px !important;}.cke_hidpi .cke_ltr .cke_button__undo_icon,.cke_ltr.cke_hidpi .cke_button__undo_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1280px !important;}.cke_hidpi .cke_button__justifyblock_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1312px !important;}.cke_hidpi .cke_button__justifycenter_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1344px !important;}.cke_hidpi .cke_button__justifyleft_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1376px !important;}.cke_hidpi .cke_button__justifyright_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1408px !important;}.cke_hidpi .cke_button__bgcolor_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1440px !important;}.cke_hidpi .cke_button__textcolor_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1472px !important;}.cke_rtl.cke_hidpi .cke_button__find_icon, .cke_hidpi .cke_mixed_dir_content .cke_rtl .cke_button__find_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1504px !important;}.cke_hidpi .cke_ltr .cke_button__find_icon,.cke_ltr.cke_hidpi .cke_button__find_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1536px !important;}.cke_hidpi .cke_button__replace_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -1568px !important;} .cke_ltr .cke_button__link_icon {background: url(https://i.ibb.co/HpszkgR/icons.png?t=20af917) no-repeat 0 -504px !important;} a.cke_combo_button {border: 1px solid #4c4c4c;border-bottom-color: #292929;box-shadow: 0 1px 0 rgb(43, 42, 42), 0 0 2px rgb(43, 43, 43) inset, 0 1px 0 rgba(34, 34, 34, .15) inset;background: #1b1b1b;background-image: linear-gradient(to bottom,#313131,#313131);filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#000',endColorstr='#999999');} .cke_panel_grouptitle{cursor:default;font-size:11px;font-weight:bold;white-space:nowrap;margin:0;padding:4px 6px;color:#474747;text-shadow:0 1px 0 rgb(53, 53, 53);border-bottom:1px solid #626262;border-radius:2px 2px 0 0;box-shadow:0 1px 0 #282828 inset;background:#333;background-image:linear-gradient(to bottom,#333,#333);filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='#f5f5f5',endColorstr='#cfd1cf')} .cke_button_label{display:none;padding-left:3px;margin-top:1px;line-height:17px;vertical-align:middle;float:left;cursor:default;color:#474747;text-shadow:0 1px 0 rgba(36, 36, 36, .5)} a.cke_path_item,span.cke_path_empty{display:inline-block;float:left;padding:3px 4px;margin-right:2px;cursor:default;text-decoration:none;outline:0;border:0;color:#4c4c4c;text-shadow:0 1px 0 #2b2b2b;font-weight:bold;font-size:11px}</style>
Источник: S ynthira.ru