try and get ctrl-enter to add a clear all
[roojs1] / Roo / doc / Para.js
1 /*
2  * - LGPL
3  *
4  */
5
6 /**
7  * @class Roo.doc.Para
8  * @extends Roo.bootstrap.Component
9  * Param Element class
10  * @cfg {String} html
11  * 
12  * @constructor
13  * Create a new Paragraph
14  * @param {Object} config The config object
15  */
16
17 Roo.doc.Para = function(config){
18     Roo.doc.Para.superclass.constructor.call(this, config);
19 };
20
21 Roo.extend(Roo.doc.Para, Roo.bootstrap.Component,  {
22     
23     html : '',
24     getAutoCreate : function(){
25         
26         //?? this is the synopsis type....
27         
28         // this is not very fancy...
29         
30         var cfg ={
31             tag: 'p',
32             cls: 'para',
33             html : Roo.Markdown.toHtml(this.html)
34         };
35          
36         if (this.parent().is_list) {
37             return {
38                 tag: 'li',
39                 cls : listitme,
40                 cn : [ cfg ]
41             };
42             
43         }
44         
45         return cfg;
46     }
47      
48     
49     
50     
51     
52    
53 });
54
55  
56
57