Nous exécutons de grands répertoires où les utilisateurs copient/collent souvent le contenu des documents Word etc dans notre éditeur html TinyMCE.javascript html éditeur copier/coller problème
Le problème est souvent le texte suivant par exemple qui est caché là-bas qui apparaît sur nos pages Web:
<!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; mso-layout-grid-align:none; punctuation-wrap:simple; text-autospace:none; font-size:10.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} p {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman";} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} -->
Yat-il un plugin TinyMCE ou un autre éditeur html croix navigateur bande automatiquement cela?
Ou une autre solution serait une commande php regex ou quelque chose qui pourrait supprimer ces déclarations de commentaires.
Bonne chance avec celui-ci. J'ai regardé et regardé et ai regardé et n'ai rien trouvé, mais je regarde ce poste comme un faucon, en espérant que quelqu'un a une meilleure solution qu'en utilisant manuellement Dreamweaver pour nettoyer le désordre de Word. – Brad
Essayez ckeditor à http://ckeditor.com/ –
duplication possible de [tinymce et importation/copier coller de Microsoft Word] (http://stackoverflow.com/questions/1255738/tinymce-and-importing-copy-paste- from-microsoft-word) –