Esta comunidad utiliza cookies
Esta comunidad utiliza cookies para almacenar información de ingreso si eres forista, y tu última visita si no lo eres. Las cookies son pequeños textos almacenados en su computadora; dichas cookies son puestas por este sitio y no posan como riesgo de seguridad. Las cookies rastrean tópicos específicos que usted haya leído. Por favor confirme si acepta o rechaza que estas cookies sean almacenadas.

Una cookie se almacenará en su navegador para prevenir que este aviso salga nuevamente. Usted podrá cambiar este ajuste utilizando el enlace a pie de página.

Copyright authors please see our disclaimer. (March 19, 2021)

Calificación:
  • 0 voto(s) - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5

Peligro cuando un cónyuge se vuelve apóstata
#2

este, hay que leer el tuto siguiente:

Cita:Webkit allows you to copy and paste images to content-editable regions, but the result is an aptly-named "webkit-fake-url" that (as far as I can tell) is completely useless for anything other than displaying the image in the local browser (there's apparently no way to get at the data from Javascript).
There's an open (but unassigned) issue in the Webkit tracker requesting that this be replaced with a data-uri:https://bugs.webkit.org/show_bug.cgi?id=49141
Steps to reproduce:
  1. Open a Mercury editor in Safari.

  2. Open an image file in an application that allows copying (e.g., Preview on the Mac).

  3. Copy the image and paste it into the Mercury editor.
The image will appear, but inspection of the HTML source code shows the (useless) webkit-fake-url.
This is likely to be confusing to users, since it looks like the image has been pasted successfully, but it will be broken if the content is saved and then viewed on another machine (or if the browser is closed and reopened -- the fake URLs go away when the browser is closed).
I worked around the issue with this crude patch, but there may be a more elegant way.
Código:
Editable.prototype.handlePaste = function(prePasteContent) {
   var cleaned, container, content, pasted;
   pasted = prePasteContent.singleDiff(this.content());
   if(pasted.indexOf("webkit-fake-url://") != -1){
       this.content(prePasteContent); // Just throw away the paste.
   }
        // Normal handlePaste code continues...

Si Lucifer fue capaz de incitar una rebelión en el cielo, eso significa celos, envidia y violencia en el cielo pese a prometerte un paraíso perfecto
[Imagen: 312554928-8634900413188542-2070329703511938974-n.jpg]
Responder


Mensajes en este hilo
Peligro cuando un cónyuge se vuelve apóstata - por Julian - 04 Jun, 2017, 11:18 AM
RE: Peligro cuando un cónyuge se vuelve apóstata - por JoseFidencioR - 04 Jun, 2017, 01:30 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por discipulo del Cristo - 04 Jun, 2017, 04:03 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por logios - 04 Jun, 2017, 04:28 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por Stargate - 04 Jun, 2017, 10:00 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por discipulo del Cristo - 05 Jun, 2017, 05:53 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por Stargate - 05 Jun, 2017, 09:12 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por Ale Rubio - 08 Jun, 2017, 02:06 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por JoseFidencioR - 05 Jun, 2017, 12:34 AM
RE: Peligro cuando un cónyuge se vuelve apóstata - por JoseFidencioR - 05 Jun, 2017, 12:53 AM
RE: Peligro cuando un cónyuge se vuelve apóstata - por discipulo del Cristo - 05 Jun, 2017, 02:19 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por JoseFidencioR - 05 Jun, 2017, 10:48 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por miker - 05 Jun, 2017, 11:45 AM
RE: Peligro cuando un cónyuge se vuelve apóstata - por Tomas Moro - 05 Jun, 2017, 12:09 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por JoseFidencioR - 05 Jun, 2017, 11:02 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por Joshuan-JTG - 07 Jun, 2017, 07:55 AM
RE: Peligro cuando un cónyuge se vuelve apóstata - por neo - 07 Jun, 2017, 11:58 AM
RE: Peligro cuando un cónyuge se vuelve apóstata - por discipulo del Cristo - 07 Jun, 2017, 05:32 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por Paciente92 - 08 Jun, 2017, 09:54 AM
RE: Peligro cuando un cónyuge se vuelve apóstata - por JoseFidencioR - 07 Jun, 2017, 11:53 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por Ale Rubio - 08 Jun, 2017, 12:39 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por Julian - 08 Jun, 2017, 01:56 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por miker - 08 Jun, 2017, 08:23 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por logios - 09 Jun, 2017, 11:13 AM
RE: Peligro cuando un cónyuge se vuelve apóstata - por Kittyoutside - 07 Oct, 2017, 02:09 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por JoseFidencioR - 29 May, 2018, 04:17 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por Aimée - 29 May, 2018, 08:21 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por Stargate - 29 May, 2018, 10:14 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por JoseFidencioR - 29 May, 2018, 11:37 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por Medieval - 30 May, 2018, 05:33 PM
RE: Peligro cuando un cónyuge se vuelve apóstata - por JoseFidencioR - 30 May, 2018, 10:18 PM

Posibles hilos similares…
Hilo / Autor Respuestas Vistas Último mensaje

Salto de foro:


Usuarios navegando en este hilo: 1 invitado(s)