11 lines
300 B
JavaScript
11 lines
300 B
JavaScript
function commande(nom, argument){
|
|
if (typeof argument === 'undefined') {
|
|
argument = '';
|
|
}
|
|
// Exécuter la commande
|
|
document.execCommand(nom, false, argument);
|
|
}
|
|
|
|
function getContent(){
|
|
document.getElementById("detailsJpo").value = document.getElementById("editeur").innerHTML;
|
|
} |