--- /dev/null
+/*\r
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
+ * Copyright (C) 2003-2008 Frederico Caldeira Knabben\r
+ *\r
+ * == BEGIN LICENSE ==\r
+ *\r
+ * Licensed under the terms of any of the following licenses at your\r
+ * choice:\r
+ *\r
+ * - GNU General Public License Version 2 or later (the "GPL")\r
+ * http://www.gnu.org/licenses/gpl.html\r
+ *\r
+ * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
+ * http://www.gnu.org/licenses/lgpl.html\r
+ *\r
+ * - Mozilla Public License Version 1.1 or later (the "MPL")\r
+ * http://www.mozilla.org/MPL/MPL-1.1.html\r
+ *\r
+ * == END LICENSE ==\r
+ *\r
+ * Active selection functions.\r
+ */\r
+\r
+var FCKSelection = FCK.Selection =\r
+{\r
+ GetParentBlock : function()\r
+ {\r
+ var retval = this.GetParentElement() ;\r
+ while ( retval )\r
+ {\r
+ if ( FCKListsLib.BlockBoundaries[retval.nodeName.toLowerCase()] )\r
+ break ;\r
+ retval = retval.parentNode ;\r
+ }\r
+ return retval ;\r
+ },\r
+\r
+ ApplyStyle : function( styleDefinition )\r
+ {\r
+ FCKStyles.ApplyStyle( new FCKStyle( styleDefinition ) ) ;\r
+ }\r
+} ;\r