Christian,<br><br>You reminded me of a very valuable feature of Seam Text, one I think is worth emphasizing more: sanitation. This is too oft<br><br>Perhaps the direction to take is to allow Seam Text to support different dialects of wiki markup. That would be separate from the general cleaning that it does which is very much reusable. Seam Text would just have to set aside some patterns for basic elements that different dialects define differently. Of course, you would never expose the different dialects to the user...it would be a global setting for sure.<br>

<br>I certainly don&#39;t expect Seam Text to abstract every last syntax out there...just a handful of the ones that show up most often...giving the developer a short menu of options to go with...and possibility extend. WDYT?<br>

<br>-Dan<br><br><div class="gmail_quote">On Fri, Feb 27, 2009 at 7:43 PM, Christian Bauer <span dir="ltr">&lt;<a href="mailto:christian.bauer@gmail.com" target="_blank">christian.bauer@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I think the Seam Text really has two somewhat orthogonal features:<br>
<br>
- Seam text markup in a proprietary language that might make sense for<br>
some one-off feature requests, when you really need it.<br>
<br>
- A validated and sanitized subset of HTML; you can use the Seam Text<br>
parser and feed it HTML input, and it will tell you if it&#39;s XSS safe<br>
or not. If you have some rich client text editor that produces HTMl,<br>
that is useful.<br>
<br>
I&#39;m not sure we should do anything more/less than that inside Seam.<br>
<div><div></div><div><br>
On Fri, Feb 27, 2009 at 6:33 PM, Dan Allen &lt;<a href="mailto:dan.j.allen@gmail.com" target="_blank">dan.j.allen@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;m digging up an old thread here...<br>
&gt;<br>
&gt; Would it be possible for the tinyMCE component to output a more standard<br>
&gt; wiki syntax as well, such as textile<br>
&gt; (<a href="http://www.textism.com/tools/textile/" target="_blank">http://www.textism.com/tools/textile/</a>)? As complete as it may be, the Seam<br>
&gt; formatted text is yet another wiki syntax and the world has so many already.<br>
&gt; For people using Seam in an existing system/environment, it may be necessary<br>
&gt; to adapt. We can&#39;t support every syntax, but we can pick the most prevalent.<br>
&gt;<br>
&gt; Also, when I imagine how this component would work, I figured that all the<br>
&gt; conversation is handled by the JSF life cycle.<br>
&gt;<br>
&gt; When the editor is loaded wiki text is converted to html and displayed in<br>
&gt; the TinyMCE editor<br>
&gt; When the form is saved, the html is converted to wiki text and copied back<br>
&gt; to the model<br>
&gt;<br>
&gt; You do stand to lose some control with this approach if the wiki syntax has<br>
&gt; special hooks. But then again, if someone wants that contorl, I suppose they<br>
&gt; can just edit the wiki text directly.<br>
&gt;<br>
&gt; -Dan<br>
&gt;<br>
&gt; On Fri, Oct 3, 2008 at 8:07 AM, Jay Balunas &lt;<a href="mailto:tech4j@gmail.com" target="_blank">tech4j@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Christian,<br>
&gt;&gt;<br>
&gt;&gt; They are developing a richfaces component that implements tinyMCE<br>
&gt;&gt; (<a href="http://tinymce.moxiecode.com/" target="_blank">http://tinymce.moxiecode.com/</a>) as a JSF component.<br>
&gt;&gt;<br>
&gt;&gt; The goal is that it also supports seam text conversion on the server side<br>
&gt;&gt; (afaict) which is why they are bringing up questions on proper conversion.<br>
&gt;&gt;<br>
&gt;&gt; Two places where I have run into the issue below is when creating an<br>
&gt;&gt; outline/draft document that I am not ready to post, but want to save, the<br>
&gt;&gt; other is when I have a section that I do not need introduction text for and<br>
&gt;&gt; would instead like to begin the first sub-section immediately.<br>
&gt;&gt;<br>
&gt;&gt; +header 1<br>
&gt;&gt; ++header 2<br>
&gt;&gt;<br>
&gt;&gt; Is this a change to seam text grammar that would be acceptable?<br>
&gt;&gt;<br>
&gt;&gt; -Jay<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, Oct 3, 2008 at 8:37 AM, Christian Bauer &lt;<a href="mailto:cbauer@redhat.com" target="_blank">cbauer@redhat.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Oct 03, 2008, at 14:33 , Ilya Shaikovsky wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; html allows us to use next code<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &lt;h1&gt;header 1&lt;h1&gt;<br>
&gt;&gt;&gt;&gt; &lt;h2&gt;header 2&lt;h2&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; but next code<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; +header 1<br>
&gt;&gt;&gt;&gt; ++header 2<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; It wasn&#39;t done on purpose but I&#39;m quite happy with requiring text between<br>
&gt;&gt;&gt; headlines. That&#39;s how real texts are written, it&#39;s good style.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; How about your opinion on this?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have no idea what you guys are doing but if you want to submit<br>
&gt;&gt;&gt; reasonable changes to the seam-text.grammar, go<br>
&gt;&gt;&gt; ahead._______________________________________________<br>
&gt;&gt;&gt; seam-dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:seam-dev@lists.jboss.org" target="_blank">seam-dev@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; blog: <a href="http://in.relation.to/Bloggers/Jay" target="_blank">http://in.relation.to/Bloggers/Jay</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; seam-dev mailing list<br>
&gt;&gt; <a href="mailto:seam-dev@lists.jboss.org" target="_blank">seam-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Dan Allen<br>
&gt; Senior Software Engineer, Red Hat | Author of Seam in Action<br>
&gt;<br>
&gt; <a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br>
&gt; <a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br>
&gt;<br>
&gt; NOTE: While I make a strong effort to keep up with my email on a daily<br>
&gt; basis, personal or other work matters can sometimes keep me away<br>
&gt; from my email. If you contact me, but don&#39;t hear back for more than a week,<br>
&gt; it is very likely that I am excessively backlogged or the message was<br>
&gt; caught in the spam filters.  Please don&#39;t hesitate to resend a message if<br>
&gt; you feel that it did not reach my attention.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; seam-dev mailing list<br>
&gt; <a href="mailto:seam-dev@lists.jboss.org" target="_blank">seam-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/seam-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/seam-dev</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Dan Allen<br>Senior Software Engineer, Red Hat | Author of Seam in Action<br><br><a href="http://mojavelinux.com" target="_blank">http://mojavelinux.com</a><br>
<a href="http://mojavelinux.com/seaminaction" target="_blank">http://mojavelinux.com/seaminaction</a><br>
<br>NOTE: While I make a strong effort to keep up with my email on a daily<br>basis, personal or other work matters can sometimes keep me away<br>from my email. If you contact me, but don&#39;t hear back for more than a week,<br>

it is very likely that I am excessively backlogged or the message was<br>caught in the spam filters.  Please don&#39;t hesitate to resend a message if<br>you feel that it did not reach my attention.<br>