Схема структуры HTML-кода SCEditors.
<!-- Main container --> <div class="sceditor-container"> <!-- Toolbar container --> <div class="sceditor-toolbar"> <!-- Toolbar group container --> <div class="sceditor-group"> <!-- Toolbar button --> <a class="sceditor-button sceditor-button-[name]" data-sceditor-command="[name]" unselectable="on" title="[name]"> <!-- Toolbar button text container --> <div unselectable="on">[tooltip or name]</div> </a> </div> </div> <!-- Contains the WYSIWYG editor --> <iframe></iframe> <!-- Contains the source mode editor --> <textarea></textarea> <!-- Grip used to resize the editor --> <div class="sceditor-grip"></div> <!-- Used to cover the WYSIWYG editor so mousemove events are still handled --> <div class="sceditor-resize-cover"></div> <!-- This is hidden and only used so that blur() can work --> <input> </div>
Все темы по умолчанию в формате LESS CSS находятся в соответствующей src/themes/ директории.
Для сборки и минификации тем выполните команду build/build.sh –css из корневого каталога SCEditor. Результат будет помещен в этот minified/themesкаталог.