Diff
checker
Texto
Texto
Imágenes
Documentos
Excel
Carpetas
Legal
Enterprise
Aplicación de escritorio
Precios
Iniciar sesión
Descargar Diffchecker Desktop
Comparar texto
Encuentra la diferencia entre dos archivos de texto
Herramientas
Historial
Editor live
Ocultar sin cambios
Sin ajuste de línea
Vista
Dividido
Unificado
Nivel de detalle
Inteligente
Palabra
Letra
Resaltado de sintaxis
Elegir sintaxis
Ignorar
Transformar texto
Ir al primer cambio
Editar entrada
Diffchecker Desktop
La forma más segura de usar Diffchecker. ¡Obtén la app de Diffchecker Desktop: tus diffs nunca salen de tu computadora!
Obtener Desktop
Untitled diff
Creado
hace 9 años
El diff nunca expira
Borrar
Exportar
Compartir
Explicar
3 eliminaciones
Líneas
Total
Eliminado
Caracteres
Total
Eliminado
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
141 líneas
Copiar todo
2 adiciones
Líneas
Total
Añadido
Caracteres
Total
Añadido
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
138 líneas
Copiar todo
<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>
Copiar
Copiado
Copiar
Copiado
<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>
Copiar
Copiado
Copiar
Copiado
<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"
],
],
Copiar
Copiado
Copiar
Copiado
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>
Diferencias guardadas
Texto original
Abrir archivo
<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>
Texto modificado
Abrir archivo
<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>
Encontrar la diferencia