[Openfirst-cvscommit] SF.net SVN: openfirst: [206] trunk/src/includes/edit.php
Brought to you by:
xtimg
From: <ast...@us...> - 2006-06-28 21:10:42
|
Revision: 206 Author: astronouth7303 Date: 2006-06-28 14:10:38 -0700 (Wed, 28 Jun 2006) ViewCVS: http://svn.sourceforge.net/openfirst/?rev=206&view=rev Log Message: ----------- Added Editor::splitText() for spellchecker support. Modified Paths: -------------- trunk/src/includes/edit.php Modified: trunk/src/includes/edit.php =================================================================== --- trunk/src/includes/edit.php 2006-06-28 18:00:46 UTC (rev 205) +++ trunk/src/includes/edit.php 2006-06-28 21:10:38 UTC (rev 206) @@ -88,6 +88,24 @@ function parseText($text) { return htmlentities($text); } + + /** + * Splits text into markup and content. + * Returns an array alternating between the two, starting with content. + * This is primarily for spellcheckers. + * + * Example: + * BBCode: "You really, [b]really[/b] don't want to do this!" + * -> array("You really, ", "[b]", "really", "[/b]", " don't want to do this!" + * + * If you were to concatanate all the content returned by this function, the + * result should be very similar to getPlainText() + * + * Returns false if this isn't supported. + */ + function splitText($text) { + return false; + } } #Default This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |