PageRenderTime 32ms CodeModel.GetById 13ms app.highlight 15ms RepoModel.GetById 1ms app.codeStats 0ms

/pigeoncms/Plugins/fckeditor/editor/_source/internals/fcklistslib.js

http://pigeoncms.googlecode.com/
JavaScript | 63 lines | 15 code | 11 blank | 37 comment | 0 complexity | 2ae2f357bd07724503f513bd4e719c27 MD5 | raw file
 1/*
 2 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 3 * Copyright (C) 2003-2009 Frederico Caldeira Knabben
 4 *
 5 * == BEGIN LICENSE ==
 6 *
 7 * Licensed under the terms of any of the following licenses at your
 8 * choice:
 9 *
10 *  - GNU General Public License Version 2 or later (the "GPL")
11 *    http://www.gnu.org/licenses/gpl.html
12 *
13 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
14 *    http://www.gnu.org/licenses/lgpl.html
15 *
16 *  - Mozilla Public License Version 1.1 or later (the "MPL")
17 *    http://www.mozilla.org/MPL/MPL-1.1.html
18 *
19 * == END LICENSE ==
20 *
21 * Library of keys collections.
22 *
23 * Test have shown that check for the existence of a key in an object is the
24 * most efficient list entry check (10x faster that regex). Example:
25 *		if ( FCKListsLib.<ListName>[key] != null )
26 */
27
28var FCKListsLib =
29{
30	// We are not handling <ins> and <del> as block elements, for now.
31	BlockElements : { address:1,blockquote:1,center:1,div:1,dl:1,fieldset:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,marquee:1,noscript:1,ol:1,p:1,pre:1,script:1,table:1,ul:1 },
32
33	// Block elements that may be filled with &nbsp; if empty.
34	NonEmptyBlockElements : { p:1,div:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,address:1,pre:1,ol:1,ul:1,li:1,td:1,th:1 },
35
36	// Inline elements which MUST have child nodes.
37	InlineChildReqElements : { abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1 },
38
39	// Inline elements which are not marked as empty "Empty" in the XHTML DTD.
40	InlineNonEmptyElements : { a:1,abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1 },
41
42	// Elements marked as empty "Empty" in the XHTML DTD.
43	EmptyElements : { base:1,col:1,meta:1,link:1,hr:1,br:1,param:1,img:1,area:1,input:1 },
44
45	// Elements that may be considered the "Block boundary" in an element path.
46	PathBlockElements : { address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,li:1,dt:1,de:1 },
47
48	// Elements that may be considered the "Block limit" in an element path.
49	PathBlockLimitElements : { body:1,div:1,td:1,th:1,caption:1,form:1 },
50
51	// Block elements for the Styles System.
52	StyleBlockElements : { address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1 },
53
54	// Object elements for the Styles System.
55	StyleObjectElements : { img:1,hr:1,li:1,table:1,tr:1,td:1,embed:1,object:1,ol:1,ul:1 },
56
57	// Elements that accept text nodes, but are not possible to edit in the browser.
58	NonEditableElements : { button:1,option:1,script:1,iframe:1,textarea:1,object:1,embed:1,map:1,applet:1 },
59
60	// Elements used to separate block contents.
61	BlockBoundaries : { p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,address:1,pre:1,ol:1,ul:1,li:1,dt:1,de:1,table:1,thead:1,tbody:1,tfoot:1,tr:1,th:1,td:1,caption:1,col:1,colgroup:1,blockquote:1,body:1 },
62	ListBoundaries  : { p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,address:1,pre:1,ol:1,ul:1,li:1,dt:1,de:1,table:1,thead:1,tbody:1,tfoot:1,tr:1,th:1,td:1,caption:1,col:1,colgroup:1,blockquote:1,body:1,br:1 }
63} ;