> Has anyone seen an example of a HTML editor written in PHP (no JS)? > You know the ones - for adding HTML tags to a text field, etc. > > Thanks! You've already received a number of responses indicating that it's not possible to have a pure PHP browser enabled HTML editor, mainly due to the fact that the editing itself takes place on the client (which requires a client-side language, such as JavaScript), while PHP is only run at the server. One lateral solution, however, would be using something like the PHP ports of either the Markdown or Textile classes to provide HTML markup using a simpler syntax. Using Markdown as an example, you would type: _This sentence will be displayed with emphasis_ When you next retrieve this content and pass it through the Markdown class, it automatically becomes: <em>This sentence will be displayed with emphasis</em> The differences between the two classes is that Textile is more featured, but in my personal opinion less intuitive, while Markdown is obviously less featured, but easier to use 'without thinking about it' as you go about generating content. [1] Both of these classes are used extensively to provide content markup in blogging systems such as MovableType and WordPress, etc. There may be similar classes out there (another one is BBCode, which is popular on forum applications such as Invision PowerBoard). PHP Markdown: http://www.michelf.com/projects/php-markdown/ PHP Textile: http://jimandlissa.com/project/textilephp Hope this helps, Murray [1] Note: which one you might use would depend on how comfortable you are with their applicable syntaxes and how varied your markup needs are. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php