Bonjour,

J'ai trouvé trois sujets qui traitent de la fonction execCommand mais aucune qui traite d'un cas semblable au mien. Quelqu'un peut m'éclairer?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
 
execCommand(formatBlock, false, <p>)                    //Ça fonctionne
execCommand(formatBlock, false, <p class='normal'>)     //Ne fonctionne pas
execCommand(formatBlock, false, <p class=\'normal\'>)   //Ne fonctionne pas
execCommand(formatBlock, false, <p class=normal>)       //Ne fonctionne pas
execCommand(formatBlock, false, <p\ class=\'normal\'>)  //Ne fonctionne pas
execCommand(formatBlock, false, <p\ class\=\'normal\'>) //Ne fonctionne pas