Diff
checker
Texte
Texte
Images
Documents
Excel
Dossiers
Legal
Enterprise
Application de bureau
Prix
Se connecter
Télécharger Diffchecker Desktop
Comparer le texte
Trouver la différence entre deux fichiers texte
Outils
Historique
Éditeur live
Cacher identiques
Sans retour à la ligne
Vue
Divisé
Unifié
Niveau de précision
Intelligent
Mot
Caractère
Coloration syntaxique
Choisir la syntaxe
Ignorer
Transformer le texte
Aller au premier écart
Modifier l'entrée
Diffchecker Desktop
La façon la plus sécurisée d'utiliser Diffchecker. Obtenez l'application Diffchecker Desktop : vos diffs ne quittent jamais votre ordinateur !
Obtenir Desktop
Untitled diff
Créé
il y a 9 ans
Le diff n'expire jamais
Effacer
Exporter
Partager
Expliquer
3 suppressions
Lignes
Total
Supprimé
Caractères
Total
Supprimé
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
141 lignes
Copier tout
2 ajouts
Lignes
Total
Ajouté
Caractères
Total
Ajouté
Pour continuer à utiliser cette fonctionnalité, passez à
Diff
checker
Pro
Voir les prix
138 lignes
Copier tout
<script>
<script>
<!--
<!--
var displayed = new Array();
var displayed = new Array();
displayed[${escapejs(FIELD)}] = false;
displayed[${escapejs(FIELD)}] = false;
function XMLHttpRequest_preview(field)
function XMLHttpRequest_preview(field)
{
{
if( XMLHttpRequest_preview.arguments.length == 0 )
if( XMLHttpRequest_preview.arguments.length == 0 )
field = ${escapejs(FIELD)};
field = ${escapejs(FIELD)};
var contents = tinymce.activeEditor.getContent();
var contents = tinymce.activeEditor.getContent();
var preview_field = 'xmlhttprequest-preview' + field;
var preview_field = 'xmlhttprequest-preview' + field;
if( contents == "" )
if( contents == "" )
contents = jQuery('#' + field).val();
contents = jQuery('#' + field).val();
if( contents != "" )
if( contents != "" )
{
{
if(!displayed[field])
if(!displayed[field])
jQuery("#" + preview_field).slideDown(500);
jQuery("#" + preview_field).slideDown(500);
jQuery('#loading-preview-' + field).show();
jQuery('#loading-preview-' + field).show();
displayed[field] = true;
displayed[field] = true;
jQuery.ajax({
jQuery.ajax({
url: PATH_TO_ROOT + "/kernel/framework/ajax/content_xmlhttprequest.php",
url: PATH_TO_ROOT + "/kernel/framework/ajax/content_xmlhttprequest.php",
type: "post",
type: "post",
data: {
data: {
token: '{TOKEN}',
token: '{TOKEN}',
path_to_root: '{PHP_PATH_TO_ROOT}',
path_to_root: '{PHP_PATH_TO_ROOT}',
editor: 'TinyMCE',
editor: 'TinyMCE',
page_path: '{PAGE_PATH}',
page_path: '{PAGE_PATH}',
contents: contents,
contents: contents,
ftags: '{FORBIDDEN_TAGS}'
ftags: '{FORBIDDEN_TAGS}'
},
},
success: function(returnData){
success: function(returnData){
jQuery('#' + preview_field).html(returnData);
jQuery('#' + preview_field).html(returnData);
jQuery('#loading-preview-' + field).hide();
jQuery('#loading-preview-' + field).hide();
}
}
});
});
}
}
else
else
alert("{L_REQUIRE_TEXT}");
alert("{L_REQUIRE_TEXT}");
}
}
function insertTinyMceContent(content)
function insertTinyMceContent(content)
{
{
var ed = tinymce.activeEditor;
var ed = tinymce.activeEditor;
ed.insertContent(content);
ed.insertContent(content);
ed.windowManager.close();
ed.windowManager.close();
}
}
function setTinyMceContent(content)
function setTinyMceContent(content)
{
{
tinymce.activeEditor.setContent(content);
tinymce.activeEditor.setContent(content);
}
}
-->
-->
</script>
</script>
Copier
Copié
Copier
Copié
<div id="loading-preview-{FIELD}" class="loading-preview-container" style="display:
none;">
<div id="loading-preview-{FIELD}" class="loading-preview-container" style="display:
none;">
<div class="loading-preview">
<div class="loading-preview">
<i class="fa fa-spinner fa-2x fa-spin"></i>
<i class="fa fa-spinner fa-2x fa-spin"></i>
</div>
</div>
</div>
</div>
Copier
Copié
Copier
Copié
<div id="xmlhttprequest-preview{FIELD}" class="xmlhttprequest-preview" style="display:
none;"></div>
<div id="xmlhttprequest-preview{FIELD}" class="xmlhttprequest-preview" style="display:
none;"></div>
# IF NOT C_NOT_JS_INCLUDED #
# IF NOT C_NOT_JS_INCLUDED #
<script src="{PATH_TO_ROOT}/TinyMCE/templates/js/tinymce/tinymce.min.js"></script>
<script src="{PATH_TO_ROOT}/TinyMCE/templates/js/tinymce/tinymce.min.js"></script>
# ENDIF #
# ENDIF #
<script>
<script>
<!--
<!--
tinymce.init({
tinymce.init({
selector : "textarea\#{FIELD}",
selector : "textarea\#{FIELD}",
language : "{LANGUAGE}",
language : "{LANGUAGE}",
plugins: [
plugins: [
"advlist autolink autoresize autosave link image lists charmap hr anchor",
"advlist autolink autoresize autosave link image lists charmap hr anchor",
"searchreplace wordcount visualblocks visualchars fullscreen insertdatetime media",
"searchreplace wordcount visualblocks visualchars fullscreen insertdatetime media",
"table contextmenu directionality smileys paste textcolor colorpicker textpattern imagetools"
"table contextmenu directionality smileys paste textcolor colorpicker textpattern imagetools"
],
],
Copier
Copié
Copier
Copié
external_plugins: {"nanospell": '{PATH_TO_ROOT}/TinyMCE/templates/js/tinymce/plugins/nanospell/plugin.js'},
nanospell_server: "php",
nanospell_dictionary: "fr, en",
# IF C_TOOLBAR #toolbar1: "{TOOLBAR}",# ENDIF #
# IF C_TOOLBAR #toolbar1: "{TOOLBAR}",# ENDIF #
menubar: false,
menubar: false,
imagetools_proxy: '{PATH_TO_ROOT}/TinyMCE/lib/TinyMCEPicturesProxy.php',
imagetools_proxy: '{PATH_TO_ROOT}/TinyMCE/lib/TinyMCEPicturesProxy.php',
autoresize_max_height: '500px',
autoresize_max_height: '500px',
advlist_number_styles: 'default',
advlist_number_styles: 'default',
advlist_bullet_styles: 'default',
advlist_bullet_styles: 'default',
block_formats: 'Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Preformatted=pre',
block_formats: 'Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Preformatted=pre',
fontsize_formats: '5pt 10pt 15pt 20pt 25pt 30pt 35pt 40pt 45pt',
fontsize_formats: '5pt 10pt 15pt 20pt 25pt 30pt 35pt 40pt 45pt',
convert_urls: false,
convert_urls: false,
media_alt_source: false,
media_alt_source: false,
media_poster: false,
media_poster: false,
content_css: [
content_css: [
"{PATH_TO_ROOT}/kernel/lib/css/font-awesome/css/font-awesome.css",
"{PATH_TO_ROOT}/kernel/lib/css/font-awesome/css/font-awesome.css",
"{PATH_TO_ROOT}/templates/{THEME}/theme/global.css"
"{PATH_TO_ROOT}/templates/{THEME}/theme/global.css"
],
],
style_formats: [
style_formats: [
{title: ${escapejs(LangLoader::get_message('success', 'status-messages-common'))}, inline: 'span', classes: 'success'},
{title: ${escapejs(LangLoader::get_message('success', 'status-messages-common'))}, inline: 'span', classes: 'success'},
{title: ${escapejs(LangLoader::get_message('error.question', 'status-messages-common'))}, inline: 'span', classes: 'question'},
{title: ${escapejs(LangLoader::get_message('error.question', 'status-messages-common'))}, inline: 'span', classes: 'question'},
{title: ${escapejs(LangLoader::get_message('error.notice', 'status-messages-common'))}, inline: 'span', classes: 'notice'},
{title: ${escapejs(LangLoader::get_message('error.notice', 'status-messages-common'))}, inline: 'span', classes: 'notice'},
{title: ${escapejs(LangLoader::get_message('error.warning', 'status-messages-common'))}, inline: 'span', classes: 'warning'},
{title: ${escapejs(LangLoader::get_message('error.warning', 'status-messages-common'))}, inline: 'span', classes: 'warning'},
{title: ${escapejs(LangLoader::get_message('error', 'status-messages-common'))}, inline: 'span', classes: 'error'}
{title: ${escapejs(LangLoader::get_message('error', 'status-messages-common'))}, inline: 'span', classes: 'error'}
],
],
setup : function(ed) {
setup : function(ed) {
ed.addButton('insertfile', {
ed.addButton('insertfile', {
icon: 'browse',
icon: 'browse',
onclick: function (field_name) {
onclick: function (field_name) {
ed.windowManager.open({
ed.windowManager.open({
title: '',
title: '',
url: '{PATH_TO_ROOT}/user/upload.php?popup=1&close_button=0&fd=# IF C_HTMLFORM #' + HTMLForms.get("{FORM_NAME}").getId() + '_{FIELD_NAME}# ELSE #{FIELD}# ENDIF #&edt=TinyMCE',
url: '{PATH_TO_ROOT}/user/upload.php?popup=1&close_button=0&fd=# IF C_HTMLFORM #' + HTMLForms.get("{FORM_NAME}").getId() + '_{FIELD_NAME}# ELSE #{FIELD}# ENDIF #&edt=TinyMCE',
width: 720,
width: 720,
height: 500,
height: 500,
});
});
},
},
tooltip: 'Insert file'
tooltip: 'Insert file'
});
});
ed.on('blur', function(){
ed.on('blur', function(){
jQuery("\#{FIELD}").val(ed.getContent());
jQuery("\#{FIELD}").val(ed.getContent());
# IF C_HTMLFORM #
# IF C_HTMLFORM #
HTMLForms.get("{FORM_NAME}").getField("{FIELD_NAME}").enableValidationMessage();
HTMLForms.get("{FORM_NAME}").getField("{FIELD_NAME}").enableValidationMessage();
HTMLForms.get("{FORM_NAME}").getField("{FIELD_NAME}").liveValidate();
HTMLForms.get("{FORM_NAME}").getField("{FIELD_NAME}").liveValidate();
# ENDIF #
# ENDIF #
})
})
},
},
smileys: [
smileys: [
# START smiley #
# START smiley #
# IF smiley.C_NEW_ROW #[# ENDIF #
# IF smiley.C_NEW_ROW #[# ENDIF #
{ shortcut: '{smiley.CODE}', url: '{smiley.URL}', title: '{smiley.CODE}' }# IF NOT smiley.C_LAST_OF_THE_ROW #,# ENDIF #
{ shortcut: '{smiley.CODE}', url: '{smiley.URL}', title: '{smiley.CODE}' }# IF NOT smiley.C_LAST_OF_THE_ROW #,# ENDIF #
# IF smiley.C_END_ROW #]# IF NOT smiley.C_LAST_ROW #,# ENDIF ## ENDIF #
# IF smiley.C_END_ROW #]# IF NOT smiley.C_LAST_ROW #,# ENDIF ## ENDIF #
# END smiley #
# END smiley #
]
]
});
});
-->
-->
</script>
</script>
Différences enregistrées
Texte d'origine
Ouvrir un fichier
<script> <!-- var displayed = new Array(); displayed[${escapejs(FIELD)}] = false; function XMLHttpRequest_preview(field) { if( XMLHttpRequest_preview.arguments.length == 0 ) field = ${escapejs(FIELD)}; var contents = tinymce.activeEditor.getContent(); var preview_field = 'xmlhttprequest-preview' + field; if( contents == "" ) contents = jQuery('#' + field).val(); if( contents != "" ) { if(!displayed[field]) jQuery("#" + preview_field).slideDown(500); jQuery('#loading-preview-' + field).show(); displayed[field] = true; jQuery.ajax({ url: PATH_TO_ROOT + "/kernel/framework/ajax/content_xmlhttprequest.php", type: "post", data: { token: '{TOKEN}', path_to_root: '{PHP_PATH_TO_ROOT}', editor: 'TinyMCE', page_path: '{PAGE_PATH}', contents: contents, ftags: '{FORBIDDEN_TAGS}' }, success: function(returnData){ jQuery('#' + preview_field).html(returnData); jQuery('#loading-preview-' + field).hide(); } }); } else alert("{L_REQUIRE_TEXT}"); } function insertTinyMceContent(content) { var ed = tinymce.activeEditor; ed.insertContent(content); ed.windowManager.close(); } function setTinyMceContent(content) { tinymce.activeEditor.setContent(content); } --> </script> <div id="loading-preview-{FIELD}" class="loading-preview-container" style="display:none;"> <div class="loading-preview"> <i class="fa fa-spinner fa-2x fa-spin"></i> </div> </div> <div id="xmlhttprequest-preview{FIELD}" class="xmlhttprequest-preview" style="display:none;"></div> # IF NOT C_NOT_JS_INCLUDED # <script src="{PATH_TO_ROOT}/TinyMCE/templates/js/tinymce/tinymce.min.js"></script> # ENDIF # <script> <!-- tinymce.init({ selector : "textarea\#{FIELD}", language : "{LANGUAGE}", plugins: [ "advlist autolink autoresize autosave link image lists charmap hr anchor", "searchreplace wordcount visualblocks visualchars fullscreen insertdatetime media", "table contextmenu directionality smileys paste textcolor colorpicker textpattern imagetools" ], external_plugins: {"nanospell": '{PATH_TO_ROOT}/TinyMCE/templates/js/tinymce/plugins/nanospell/plugin.js'}, nanospell_server: "php", nanospell_dictionary: "fr, en", # IF C_TOOLBAR #toolbar1: "{TOOLBAR}",# ENDIF # menubar: false, imagetools_proxy: '{PATH_TO_ROOT}/TinyMCE/lib/TinyMCEPicturesProxy.php', autoresize_max_height: '500px', advlist_number_styles: 'default', advlist_bullet_styles: 'default', block_formats: 'Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Preformatted=pre', fontsize_formats: '5pt 10pt 15pt 20pt 25pt 30pt 35pt 40pt 45pt', convert_urls: false, media_alt_source: false, media_poster: false, content_css: [ "{PATH_TO_ROOT}/kernel/lib/css/font-awesome/css/font-awesome.css", "{PATH_TO_ROOT}/templates/{THEME}/theme/global.css" ], style_formats: [ {title: ${escapejs(LangLoader::get_message('success', 'status-messages-common'))}, inline: 'span', classes: 'success'}, {title: ${escapejs(LangLoader::get_message('error.question', 'status-messages-common'))}, inline: 'span', classes: 'question'}, {title: ${escapejs(LangLoader::get_message('error.notice', 'status-messages-common'))}, inline: 'span', classes: 'notice'}, {title: ${escapejs(LangLoader::get_message('error.warning', 'status-messages-common'))}, inline: 'span', classes: 'warning'}, {title: ${escapejs(LangLoader::get_message('error', 'status-messages-common'))}, inline: 'span', classes: 'error'} ], setup : function(ed) { ed.addButton('insertfile', { icon: 'browse', onclick: function (field_name) { ed.windowManager.open({ title: '', url: '{PATH_TO_ROOT}/user/upload.php?popup=1&close_button=0&fd=# IF C_HTMLFORM #' + HTMLForms.get("{FORM_NAME}").getId() + '_{FIELD_NAME}# ELSE #{FIELD}# ENDIF #&edt=TinyMCE', width: 720, height: 500, }); }, tooltip: 'Insert file' }); ed.on('blur', function(){ jQuery("\#{FIELD}").val(ed.getContent()); # IF C_HTMLFORM # HTMLForms.get("{FORM_NAME}").getField("{FIELD_NAME}").enableValidationMessage(); HTMLForms.get("{FORM_NAME}").getField("{FIELD_NAME}").liveValidate(); # ENDIF # }) }, smileys: [ # START smiley # # IF smiley.C_NEW_ROW #[# ENDIF # { shortcut: '{smiley.CODE}', url: '{smiley.URL}', title: '{smiley.CODE}' }# IF NOT smiley.C_LAST_OF_THE_ROW #,# ENDIF # # IF smiley.C_END_ROW #]# IF NOT smiley.C_LAST_ROW #,# ENDIF ## ENDIF # # END smiley # ] }); --> </script>
Texte modifié
Ouvrir un fichier
<script> <!-- var displayed = new Array(); displayed[${escapejs(FIELD)}] = false; function XMLHttpRequest_preview(field) { if( XMLHttpRequest_preview.arguments.length == 0 ) field = ${escapejs(FIELD)}; var contents = tinymce.activeEditor.getContent(); var preview_field = 'xmlhttprequest-preview' + field; if( contents == "" ) contents = jQuery('#' + field).val(); if( contents != "" ) { if(!displayed[field]) jQuery("#" + preview_field).slideDown(500); jQuery('#loading-preview-' + field).show(); displayed[field] = true; jQuery.ajax({ url: PATH_TO_ROOT + "/kernel/framework/ajax/content_xmlhttprequest.php", type: "post", data: { token: '{TOKEN}', path_to_root: '{PHP_PATH_TO_ROOT}', editor: 'TinyMCE', page_path: '{PAGE_PATH}', contents: contents, ftags: '{FORBIDDEN_TAGS}' }, success: function(returnData){ jQuery('#' + preview_field).html(returnData); jQuery('#loading-preview-' + field).hide(); } }); } else alert("{L_REQUIRE_TEXT}"); } function insertTinyMceContent(content) { var ed = tinymce.activeEditor; ed.insertContent(content); ed.windowManager.close(); } function setTinyMceContent(content) { tinymce.activeEditor.setContent(content); } --> </script> <div id="loading-preview-{FIELD}" class="loading-preview-container" style="display: none;"> <div class="loading-preview"> <i class="fa fa-spinner fa-2x fa-spin"></i> </div> </div> <div id="xmlhttprequest-preview{FIELD}" class="xmlhttprequest-preview" style="display: none;"></div> # IF NOT C_NOT_JS_INCLUDED # <script src="{PATH_TO_ROOT}/TinyMCE/templates/js/tinymce/tinymce.min.js"></script> # ENDIF # <script> <!-- tinymce.init({ selector : "textarea\#{FIELD}", language : "{LANGUAGE}", plugins: [ "advlist autolink autoresize autosave link image lists charmap hr anchor", "searchreplace wordcount visualblocks visualchars fullscreen insertdatetime media", "table contextmenu directionality smileys paste textcolor colorpicker textpattern imagetools" ], # IF C_TOOLBAR #toolbar1: "{TOOLBAR}",# ENDIF # menubar: false, imagetools_proxy: '{PATH_TO_ROOT}/TinyMCE/lib/TinyMCEPicturesProxy.php', autoresize_max_height: '500px', advlist_number_styles: 'default', advlist_bullet_styles: 'default', block_formats: 'Paragraph=p;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Preformatted=pre', fontsize_formats: '5pt 10pt 15pt 20pt 25pt 30pt 35pt 40pt 45pt', convert_urls: false, media_alt_source: false, media_poster: false, content_css: [ "{PATH_TO_ROOT}/kernel/lib/css/font-awesome/css/font-awesome.css", "{PATH_TO_ROOT}/templates/{THEME}/theme/global.css" ], style_formats: [ {title: ${escapejs(LangLoader::get_message('success', 'status-messages-common'))}, inline: 'span', classes: 'success'}, {title: ${escapejs(LangLoader::get_message('error.question', 'status-messages-common'))}, inline: 'span', classes: 'question'}, {title: ${escapejs(LangLoader::get_message('error.notice', 'status-messages-common'))}, inline: 'span', classes: 'notice'}, {title: ${escapejs(LangLoader::get_message('error.warning', 'status-messages-common'))}, inline: 'span', classes: 'warning'}, {title: ${escapejs(LangLoader::get_message('error', 'status-messages-common'))}, inline: 'span', classes: 'error'} ], setup : function(ed) { ed.addButton('insertfile', { icon: 'browse', onclick: function (field_name) { ed.windowManager.open({ title: '', url: '{PATH_TO_ROOT}/user/upload.php?popup=1&close_button=0&fd=# IF C_HTMLFORM #' + HTMLForms.get("{FORM_NAME}").getId() + '_{FIELD_NAME}# ELSE #{FIELD}# ENDIF #&edt=TinyMCE', width: 720, height: 500, }); }, tooltip: 'Insert file' }); ed.on('blur', function(){ jQuery("\#{FIELD}").val(ed.getContent()); # IF C_HTMLFORM # HTMLForms.get("{FORM_NAME}").getField("{FIELD_NAME}").enableValidationMessage(); HTMLForms.get("{FORM_NAME}").getField("{FIELD_NAME}").liveValidate(); # ENDIF # }) }, smileys: [ # START smiley # # IF smiley.C_NEW_ROW #[# ENDIF # { shortcut: '{smiley.CODE}', url: '{smiley.URL}', title: '{smiley.CODE}' }# IF NOT smiley.C_LAST_OF_THE_ROW #,# ENDIF # # IF smiley.C_END_ROW #]# IF NOT smiley.C_LAST_ROW #,# ENDIF ## ENDIF # # END smiley # ] }); --> </script>
Trouver la différence