test4Mise à jour le Mardi, 16 Juin 2009 22:42 Écrit par Tr@nquille Mercredi, 10 Juin 2009 20:32 gjcgckgjcgjkcg jhcjhchj jhcfhchj
// ----------------------
function donne_selection()
{
var selection = "";
FCK.Selection.MoveToAncestorNode('p');
if(oEditor.FCK.EditorDocument.selection == null)
{
selection = oEditor.FCK.EditorWindow.getSelection(); // after this, won't be a string
selection = "" + selection; // now a string again
}
else
{
selection = oEditor.FCK.EditorDocument.selection.createRange().text;
}
return selection;
}
// ----------------------
hgckgcgcgj kgvhklflhfv et un test sur jlink Virtuemart et ses variables globales tests deux coloration fckeditor
|


