Changeset 2149 in main for trunk/docs


Ignore:
Timestamp:
03/12/13 08:55:19 (6 years ago)
Author:
pcosquer
Message:

docs: richtext

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/en/devel/richtext.rst

    r2148 r2149  
    99================ 
    1010 
     11OpenPLM 1.3 introduces a wiki syntax to comments and some text fields. 
     12 
     13The code and this documentation speak about rich text instead of a 
     14wiki content as it is not really a wiki engine (no WikiLink automatically 
     15created). 
     16 
     17This document describes how to mark a text field as a rich text field 
     18and how to render its content. 
     19 
     20 
    1121 
    1222Model: how to enhance a textfield  
    1323=================================== 
     24 
     25OpenPLM does not store the rendered HTML. So it is possible to set 
     26a text field as a "rich" text field at any time. To do that, 
     27simply add a ``richtext`` attribute (set tot True) to the text field. 
    1428 
    1529Example: 
     
    2236        my_text_field = models.TextField() 
    2337        my_text_field.richtext = True 
     38 
     39Note that a plain text rendering is stored by the search engine. 
     40This plain text rendering is syntax dependant and you may have  
     41to reindex a model if the raw text (user input stored in the database) 
     42and the plain text may be too different. 
    2443 
    2544How to render a content 
Note: See TracChangeset for help on using the changeset viewer.