Categories | Question details Back To List | ||
editow not wroking Hello, i m using dhtmlxeditor but when i copy the mterial and paste it in the ediotr then it will save the data in the database but not shown it <script> var editor = new dhtmlXEditor("editorObj"); editor.setIconsPath("codebase/imgs/"); editor.setContent("<?=$tmp?>"); //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"> this code i m using please tell me wht i do bcoz always i m copy the data from my mail and paste it to editor and when i refresh the ediotr then it will show me the dat from database. please tell me is it possible in the editor if possible then wht i do i am add the below data in ediotor WELCOME 2010 !!! As we walk 2009 to it's doorstep,lets welcome new year downs......... May it open up for you & family more opportunities,lead you to the path of continued success,happiness,prosperity and good health. *Happy & Prosperous New Year....to all !!!!!!!!!* best regards, waiting for rply please reply me wht i do . please give me solutions regards suraj Answer posted by Alex (support) on Jan 14, 2010 03:50 Hello, does <?=$tmp?> returns string with correct formatting the example ? the example is var str = "WELCOME 2010 !!!<br/>As we walk 2009 to it's doorstep,lets welcome new year downs.........<br/>May it open up for you & family more opportunities,lead you to the path of continued success,happiness,prosperity and good health<br/>*Happy & Prosperous New Year....to all !!!!!!!!!*"; editor.setContent(str); |