Path: blob/master/web-gui/buildyourownbotnet/assets/js/ckeditor/styles.js
1293 views
/**1* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.2* For licensing, see LICENSE.md or http://ckeditor.com/license3*/45// This file contains style definitions that can be used by CKEditor plugins.6//7// The most common use for it is the "stylescombo" plugin, which shows a combo8// in the editor toolbar, containing all styles. Other plugins instead, like9// the div plugin, use a subset of the styles on their feature.10//11// If you don't have plugins that depend on this file, you can simply ignore it.12// Otherwise it is strongly recommended to customize this file to match your13// website requirements and design properly.1415CKEDITOR.stylesSet.add( 'default', [16/* Block Styles */1718// These styles are already available in the "Format" combo ("format" plugin),19// so they are not needed here by default. You may enable them to avoid20// placing the "Format" combo in the toolbar, maintaining the same features.21/*22{ name: 'Paragraph', element: 'p' },23{ name: 'Heading 1', element: 'h1' },24{ name: 'Heading 2', element: 'h2' },25{ name: 'Heading 3', element: 'h3' },26{ name: 'Heading 4', element: 'h4' },27{ name: 'Heading 5', element: 'h5' },28{ name: 'Heading 6', element: 'h6' },29{ name: 'Preformatted Text',element: 'pre' },30{ name: 'Address', element: 'address' },31*/3233{ name: 'Italic Title', element: 'h2', styles: { 'font-style': 'italic' } },34{ name: 'Subtitle', element: 'h3', styles: { 'color': '#aaa', 'font-style': 'italic' } },35{36name: 'Special Container',37element: 'div',38styles: {39padding: '5px 10px',40background: '#eee',41border: '1px solid #ccc'42}43},4445/* Inline Styles */4647// These are core styles available as toolbar buttons. You may opt enabling48// some of them in the Styles combo, removing them from the toolbar.49// (This requires the "stylescombo" plugin)50/*51{ name: 'Strong', element: 'strong', overrides: 'b' },52{ name: 'Emphasis', element: 'em' , overrides: 'i' },53{ name: 'Underline', element: 'u' },54{ name: 'Strikethrough', element: 'strike' },55{ name: 'Subscript', element: 'sub' },56{ name: 'Superscript', element: 'sup' },57*/5859{ name: 'Marker', element: 'span', attributes: { 'class': 'marker' } },6061{ name: 'Big', element: 'big' },62{ name: 'Small', element: 'small' },63{ name: 'Typewriter', element: 'tt' },6465{ name: 'Computer Code', element: 'code' },66{ name: 'Keyboard Phrase', element: 'kbd' },67{ name: 'Sample Text', element: 'samp' },68{ name: 'Variable', element: 'var' },6970{ name: 'Deleted Text', element: 'del' },71{ name: 'Inserted Text', element: 'ins' },7273{ name: 'Cited Work', element: 'cite' },74{ name: 'Inline Quotation', element: 'q' },7576{ name: 'Language: RTL', element: 'span', attributes: { 'dir': 'rtl' } },77{ name: 'Language: LTR', element: 'span', attributes: { 'dir': 'ltr' } },7879/* Object Styles */8081{82name: 'Styled image (left)',83element: 'img',84attributes: { 'class': 'left' }85},8687{88name: 'Styled image (right)',89element: 'img',90attributes: { 'class': 'right' }91},9293{94name: 'Compact table',95element: 'table',96attributes: {97cellpadding: '5',98cellspacing: '0',99border: '1',100bordercolor: '#ccc'101},102styles: {103'border-collapse': 'collapse'104}105},106107{ name: 'Borderless Table', element: 'table', styles: { 'border-style': 'hidden', 'background-color': '#E6E6FA' } },108{ name: 'Square Bulleted List', element: 'ul', styles: { 'list-style-type': 'square' } }109]);110111112113