Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jan 11, 2010 05:33
open dhtmlx forum
show data from databse to dhtmlxEditor

Hello,

i want to show data in dhtmlxEditor from database . i m sending u my code to u please tell me how isit possible.



                                        <script>

                                        

                        var editor = new dhtmlXEditor("editorObj");

                        editor.setIconsPath("codebase/imgs/");

                        //document.getElementById('editorObj').value="<?php //echo $tmp;?>";

                        editor.init();

                    </script>

                        <input type="submit" value="show html content" onclick="document.getElementById('res').value = editor.getContent()" name="abc">


<link rel="stylesheet" type="text/css" href="common/codebase/dhtmlxcontainer.css">

    

    <script src="codebase/dhtmlxcommon.js" type="text/javascript"></script>

    <script src="codebase/dhtmlxeditor.js" type="text/javascript"></script>



please reply me . i am integrating the editor in my project.

waiting for reply

regards
seema
Answer posted by Alex (support) on Jan 12, 2010 02:26

Hello,

you case setContent method:

editor.setContent(htmlString);