Set default text or html when CuteEditor is first loaded

  •  06-16-2010, 9:16 PM

    Set default text or html when CuteEditor is first loaded

    Hi,
     
    I am using CuteEditor within DotNetNuke 5.4.2 and am wonder if it possible to set some initial default text or html to be loaded into the Rich Text Editor on first load.
     
    I would like to force  <p></p> to be in the html of the editor when it is first loaded. The reason I am doing this is because I am finding my users often do not press enter before starting to type (which is required for CuteEditor to start breaking up paragraphs with <p> tags), it just puts in <br /> tags.
     
    The result is...
     
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. <br />
    Sed gravida erat eget turpis posuere a feugiat ante mollis. <br />
    Aenean condimentum velit tincidunt urna porttitor pellentesque. <br />


    ...When the desired (and more semantic html) I am after is...
     
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. </p>
    <p>Sed gravida erat eget turpis posuere a feugiat ante mollis.</p>
    <p>Aenean condimentum velit tincidunt urna porttitor pellentesque.</p>
     
    Any help on setting the default text to be in the Rich Text Editor on first load would be very much appreicated
     
    Kind Regards
     
    TJ
     
     
     
View Complete Thread