~ubuntu-branches/ubuntu/intrepid/moin/intrepid-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/editor/_source/internals/fckregexlib.js

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2006-02-14 16:09:24 UTC
  • mfrom: (0.2.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20060214160924-fyrx3gvknzqvt4vj
Tags: 1.5.2-1ubuntu1
Drop python2.3 package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
FCKRegexLib.AposEntity          = /'/gi ;
24
24
 
25
25
// Used by the Styles combo to identify styles that can't be applied to text.
26
 
FCKRegexLib.ObjectElements      = /^(?:IMG|TABLE|TR|TD|INPUT|SELECT|TEXTAREA|HR|OBJECT)$/i ;
 
26
FCKRegexLib.ObjectElements      = /^(?:IMG|TABLE|TR|TD|TH|INPUT|SELECT|TEXTAREA|HR|OBJECT|A|UL|OL|LI)$/i ;
27
27
 
28
28
// START iCM MODIFICATIONS
29
29
// Added TABLE and CAPTION to the block elements for ENTER key handling
30
30
// Block Elements.
 
31
/*
31
32
FCKRegexLib.BlockElements       = /^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TD|TABLE|CAPTION)$/i ;
 
33
*/
32
34
// END iCM MODIFICATIONS
 
35
FCKRegexLib.BlockElements       = /^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TD|TH)$/i ;
33
36
 
34
37
// Elements marked as empty "Empty" in the XHTML DTD.
35
38
FCKRegexLib.EmptyElements       = /^(?:BASE|META|LINK|HR|BR|PARAM|IMG|AREA|INPUT)$/i ;
53
56
FCKRegexLib.TableBorderClass = /\s*FCK__ShowTableBorders\s*/ ;
54
57
 
55
58
// Validate element names.
56
 
FCKRegexLib.ElementName = /^[A-Za-z_:][\w.-:]*$/ ;
 
59
FCKRegexLib.ElementName = /^[A-Za-z_:][\w.\-:]*$/ ;
57
60
 
58
61
// Used in conjuction with the FCKConfig.ForceSimpleAmpersand configuration option.
59
62
FCKRegexLib.ForceSimpleAmpersand = /___FCKAmp___/g ;
66
69
FCKRegexLib.TagBody = /></ ;
67
70
 
68
71
// START iCM MODIFICATIONS
 
72
/*
69
73
// HTML table cell elements
70
74
FCKRegexLib.TableCellElements   = /^(?:TD|TH)$/i ;
71
75
// Block elements that can themselves contain block elements - used within the FCKTools.SplitNode
77
81
FCKRegexLib.ListElements        = /^(?:OL|UL)$/i ;
78
82
// Used to remove empty tags after the split process used on ENTER key press
79
83
FCKRegexLib.EmptyElement = /<(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|SPAN|A)[^\>]*>\s*<\/\1>/gi ;
 
84
*/
80
85
// END iCM MODIFICATIONS
81
86
 
82
87
FCKRegexLib.StrongOpener = /<STRONG([ \>])/gi ;
83
88
FCKRegexLib.StrongCloser = /<\/STRONG>/gi ;
84
89
FCKRegexLib.EmOpener = /<EM([ \>])/gi ;
85
 
FCKRegexLib.EmCloser = /<\/EM>/gi ;
 
 
b'\\ No newline at end of file'
 
90
FCKRegexLib.EmCloser = /<\/EM>/gi ;
 
91
 
 
92
FCKRegexLib.GeckoEntitiesMarker = /#\?-\:/g ;
 
93
 
 
94
FCKRegexLib.ProtectUrlsAApo             = /(<a\s.*?href=)("|')(.+?)\2/gi ;
 
95
FCKRegexLib.ProtectUrlsANoApo   = /(<a\s.*?href=)([^"'][^ >]+)/gi ;
 
96
 
 
97
FCKRegexLib.ProtectUrlsImgApo   = /(<img\s.*?src=)("|')(.+?)\2/gi ;
 
98
FCKRegexLib.ProtectUrlsImgNoApo = /(<img\s.*?src=)([^"'][^ >]+)/gi ;