You are not logged in.
Hi
I have dynamic created xinha.
div.InnerHTML = formRequestFromAJAX;
var config = new Xinha.Config();
                                        
var xinha_editors = Xinha.makeEditors(['tresc'], config);
xinha.startEditors(xinha_editors);
                    
var editor = xinha_editors.tresc;
xinha editor it's draw and functionaly OK, but I don't get is's current value in javascript ![]()
I try:
editor = xinha_editors.tresc;
var html = editor.outwardHtml(editor.getHtml());
It's don't work... help my please ![]()
The Best Regards,
Michael
Offline
It's not possible? ![]()
Offline
Should work from what I see, more details/ a page to look at might provide deeper insight
in index.php:
in HEAD
<script language="javascript" type="text/javascript" src="js/scripts.js"></script>
<script type="text/javascript" language="javascript">
  _editor_url  = "js/xinha/"  // (preferably absolute) URL (including trailing slash) where Xinha is installed
  _editor_lang = "pl";      // And the language we need to use in the editor.
</script>
<script language="javascript" type="text/javascript" src="js/xinha/XinhaCore.js"></script>
<script language="javascript" type="text/javascript" src="js/xinha/my_config.js"></script>
In scripts.js :
function panelAktualnosciXinhaMake(id) {
    
    var config = new Xinha.Config();
                
    
                                        
    var xinha_editors = Xinha.makeEditors(['tresc_' + id], config);
    Xinha.startEditors(xinha_editors);
                    
    
}
advAJAX.post({
    url: "includes/getForm.php",
    parameters : {
    "dataType" : "news",
    "id" : id
    },
    onSuccess : function(obj) {
    var odp = obj.responseText;
    edNews.innerHTML = odp; //form; in form <textarea id="tresc_id"></textarea>
    panelAktualnosciXinhaMake(id);
    }
});
Textarea draw OK, functionally ok, but how I get value from this textarea dynamic (javascript)?
The Best Regards,
Michael
Offline