Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
ckeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vanilla ckeditor-3.3
[ckeditor.git]
/
_source
/
core
/
dom
/
elementpath.js
diff --git
a/_source/core/dom/elementpath.js
b/_source/core/dom/elementpath.js
index
bc9f01a
..
3c74a92
100644
(file)
--- a/
_source/core/dom/elementpath.js
+++ b/
_source/core/dom/elementpath.js
@@
-1,12
+1,12
@@
/*
\r
/*
\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
(function()
\r
{
\r
// Elements that may be considered the "Block boundary" in an element path.
\r
For licensing, see LICENSE.html or http://ckeditor.com/license
\r
*/
\r
\r
(function()
\r
{
\r
// Elements that may be considered the "Block boundary" in an element path.
\r
- var 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 };
\r
+ var 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,dd:1 };
\r
\r
// Elements that may be considered the "Block limit" in an element path.
\r
var pathBlockLimitElements = { body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1 };
\r
\r
// Elements that may be considered the "Block limit" in an element path.
\r
var pathBlockLimitElements = { body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:1,form:1 };
\r
@@
-100,5
+100,17
@@
CKEDITOR.dom.elementPath.prototype =
}
\r
\r
return true;
\r
}
\r
\r
return true;
\r
+ },
\r
+
\r
+ contains : function( tagNames )
\r
+ {
\r
+ var elements = this.elements;
\r
+ for ( var i = 0 ; i < elements.length ; i++ )
\r
+ {
\r
+ if ( elements[ i ].getName() in tagNames )
\r
+ return elements[ i ];
\r
+ }
\r
+
\r
+ return null;
\r
}
\r
};
\r
}
\r
};
\r