Ciao a tutti
devo poter impostare il testo di un fckeditor,se incollo pero' del testo da word e setto tramite js
codice:
function replacetxtint(intestaz)
{
document.getElementById("editorintestazione").innerHTML="<textarea id='editori' name='editorintestazione'>"+intestaz+"</textarea> ";
oFCKeditorintestazione = new FCKeditor( 'editori' ) ;
oFCKeditorintestazione.BasePath = "/carro/fckeditor/" ;
oFCKeditorintestazione.ReplaceTextarea() ;
}
codice:
<a href="#" onclick="replacetxtint('<?php echo(htmlentities(str_replace("\\",""",str_replace("'","'",$intestazione)))); ?>');
mi da il seguente errore JS:unterminated string leteral indicando un & quot ;come errore.
Sapete aiutarmi?
Grazie.