[ 
http://jira.xwiki.org/jira/browse/XWIKI-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_21848
 ] 

Vincent Massol commented on XWIKI-2021:
---------------------------------------

I 've noticed this today too.

For example if you go to 
http://code.xwiki.org/xwiki/bin/inline/Snippets/TestSnippet?parent=Snippets.WebHome&template=XWiki.SnippetClassTemplate&sheet=1&webname=Snippets&name=TestSnippet&snippet=test
 you'll notice a {/pre} tag after the text area input. I believe this is 
because the stylesheet for this page is:

{noformat}
{pre}
$doc.display("content")
{/pre}
{noformat}

The reason I have this is because the pre tags are required in view mode. They 
are not needed in edit mode since the display() call will add another pre tag 
set...

JV, do you know why we're wrapping the edit mode with pre tags instead of 
letting the user decide whether to use them or not? I'd like to understand this 
before we decide on a solution.

Thanks
-Vincent


> The document "edit" display type (used to display properties in edit mode) 
> always add {pre}s
> --------------------------------------------------------------------------------------------
>
>                 Key: XWIKI-2021
>                 URL: http://jira.xwiki.org/jira/browse/XWIKI-2021
>             Project: XWiki Platform
>          Issue Type: New Feature
>            Reporter: Jean-Vincent Drean
>            Priority: Minor
>         Attachments: editnopre.patch
>
>
> There are several display types used to display document's properties : view, 
> hidden, rendered, etc.
> The edit type is protected with {pre} but in one case -- having upper level 
> {pre}s since radeox doesn't handle multiple levels of {pre}s -- we can need 
> to avoid them. This is the goal of editnopre

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to