Aplicando imágenes adaptables con TinyMCE

Logotipo de tinymce.Recientemente hemos comentado como utilizamos las imágenes para que se vean de una forma adaptable, sobretodo en el móvil. Hoy vamos a comentar como realizamos esto con TinyMCE en drupal.

Configuración

En primer lugar comentaremos que la versión que estamos utilizando es la 3.5, y no hemos actualizado todavía a la 4.1 ya que el rendimiento que estamos obteniendo actualmente es óptimo. Esto puede hacer que algunas capturas de pantalla sean diferentes a esta última versión, aunque la idea de funcionamiento es la misma.

Dentro de drupal utilizamos el módulo Wysiwyg, tal y como explicamos en la entrada sobre la instalación del editor de textos en drupal. En este módulo tenemos que tener en cuenta un check en su configuración. Para ello accedemos, dentro de la administración de la plataforma, a Configuración > Autoría del contenido > Wysiwyg profiles y, dentro de esta página seleccionamos la opción u opciones donde tenemos configurada la inserción de imágenes, en nuestro caso en la opción HTML Completo (Full HTML) y pulsamos sobre Editar.

Una vez en la página de edición buscamos el check o casilla de verificación Imagen avanzada y lo marcamos. Esta opción se encuentra en el apartado Botones y extensiones.

Con esto ya tenemos una ventana emergente con muchas más opciones al insertar una imagen en el editor de textos. Sobre todo nos interesa una opción, que es la de Estilos.

Adición de estilos

Después de los pasos previos mostramos como actualizar la imagen. Para ello lo que haremos será indicar el tamaño por estilos en lugar de por campos de la etiqueta imagen. Esto que puede parecer muy complejo, en realidad es bastante simple desde el editor de textos.

Imagen con los campos a modificar para hacerla más usable.

Una vez que accedemos a la inserción de imágenes del editor y seleccionamos una imagen, nos muestra tres pestañas (nos las muestra desde el principio, pero ahora algunos campos ya están completos).

En la pestaña General indicaremos campos como la ruta de la imagen a utilizar, la descripción de la imagen (texto para sustituir la imagen en caso de que no pueda cargarse) y el título (texto que se muestra al pasar el ratón por encima de la imagen).

En la pestaña Avanzado podemos incluir una imagen alternativa para que se muestre al pasar el ratón por encima y otros aspectos que no vamos a tratar en esta entrada.

La pestaña que nos interesa es la de Apariencia, que es la que se muestra en la imagen. En esta imagen nos muestra el tamaño de la misma. Tomamos nota del primer valor, que corresponde al ancho de la imagen y borramos los dos valores de tamaño, dejándolo vacío.

En el campo estilos indicaremos los estilos a utilizar para esta imagen, que serán los que corresponden a la entrada sobre imágenes adaptables.

img {width: 100%; max-width: 510px;}

En este caso lo escribiremos todo en una línea, que para el caso de la imagen será:

width:100%;max-width:510px;

Aquí ya no hemos de indicar que se trata del tipo imagen, ya que se aplica directamente sobre la imagen actual.

Con esto ya tenemos nuestra imagen accesible.

Centrado de imágenes

El centrado de imágenes con CSS daría para otro post, pero lo vamos a hacer en este mismo de forma rápida y así lo aprovechamos para cuando queremos mostrar una imagen en el centro.

Los estilos para mostrar una imagen o cualquier otro bloque en CSS son los siguientes;

  1. img {
  2. display: block;
  3. margin-left: auto;
  4. margin-right: auto;
  5. }

Por lo que tendríamos que añadir, a los indicados en el apartado anterior, el siguiente texto.

display: block;margin-left: auto;margin-right: auto;

Con esto ya tendríamos una imagen centrada.

Enlace en las imágenes

Finalmente, lo que estamos haciendo en algunas imágenes es añadir un enlace a la imagen a la misma imagen. De este modo, en caso de verse pequeña se puede acceder a la imagen en tamaño real para poder apreciar los detalles.

En este caso, simplemente hemos de pulsar sobre el icono de enlace del editor e indicar que la URL del hipervínculo es la imagen a la que queremos enlazar.

Todos estos aspectos, imagen adaptable, centrado y enlace, se encuentran en la imagen de esta entrada para que se puedan comprobar.

Comentarios

learntopullwomen.comkimberlymackbeautystudio.comyourcashgroup.comcash-for-old-car.combeautyfilledlife.comwifemeetslife.comonlinedatingsites.us.comwomenbikeatlanta.comwhyblackpeoplemeetheretorssexdvd.comprecolumbianwomen.comsex-pictures-post.commixeddatingsites.us.comonlinehomecashsystem.com

ratingdatingsites.us.comtorssexdvd.com3monthpaydayloans.us.comprettywithribbons.comcamsites.us.combestwebcam.us.com|bestwebcamkimberlymackbeautystudio.commixeddatingsites.us.comfreemaledatingsites.us.comfreesex.us.comyourcashgroup.comabruzzomeeting.comadultwebcamsdatingsiteswithfreetrials.us.comabruzzomeeting.comdatingsiteswithfreetrials.us.comadultdating.us.combeautyfilledlife.com

learntopullwomen.comabruzzomeeting.comherewomentalksocial.comdatingonline.us.comprecolumbianwomen.comdatingsitesfree.us.compaydayloansbadcredit.us.com3monthpaydayloans.us.comdatingsitesfree.us.com

karenmillenbeauty.comgirlmeetsbulgariaprettywittythings.comonlinedatingsites.us.comdatingsiteswithfreetrials.us.comherewomentalksocial.comdatingsitesfree.us.compaydayloansdirectlender.us.combeautyfilledlife.com

 We are now pretty confident that you can obtain the benefits of the game conveniently. Why don’t you now go ahead and make good use of it? roblox hackGTA 5 money hack no human verificationBrawl Stars Hack No Survey

This post is a pool of information. The readers are quite impressed after reading this impressive post. This impressive post certainly encourages you to choose Assignment Help Australia Services. You can email us at cs@Myassignmenthelpau.Com or Phone Number: + 61-2-8005-8227 

I am Olivia Crew as an “Academic Writer” in Livewebtutors. The above post has given reliable and genuine information about Assignment Help Australia, New Zealand, USA, UK etc. Looking forward to avail their eminent services.visit now:- assignment help, assignment help australia, my assignment help

nice post<a href="https://www.gameguardianiosdownload.online/">gameguardian for pc </a><a href="https://www.jiotvforpcapkdownload.in/">jio tv for pc </a> 

This post is a pool of information. The readers are quite impressed after reading this impressive post. This impressive post certainly encourages you to choose Assignment Help Australia Services. You can email us at cs@Myassignmenthelpau.Com or Phone Number: + 61-2-8005-8227 

Cheap Eurovan Zopiclone tadalafil cialis from india What Stores Sell Propecia Licensed Pharmacies In Los Algodones

Amazing blog! The blogger has indeed explained the subject of the blog so well and I have actually been encouraged to also check in and also leave my comment. I feel encouraged to be here and I hope that this forum will even attract more visitors for it is a nice forum. All the details of this blog are very relevant. Dissertation Project Literature Review Writing Services

I found this is an informative and interesting blog so I think so it is very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this blog.  Assignment Help

Please visit to the site My Assignment Help writing service reviews. This site contains different type of the resume forms, structures and tips, and also helps to give best guidelines about all the resume writing. This is very good and clear one.

Outstanding article! I want people to know just how good this information is in your article. Your views are much like my own concerning this subject. I will visit daily your blog because I know. It may be very beneficial for me. <a href="https://www.livewebtutors.com/my-assignment-help">My Assignment help</a>

 At Acemyhomeworkwriters we understand that writing papers is very challenging to students. This is because they come in different sizes and topics. Due to this fact, most students face multiple problems when writing their assignments. Our writing service is here to help you with this. We guarantee expert tutoring to ensure you ace that class. All our writers who are holders of masters and PhD in various disciplines. Our tutors are vetted, tested and trained before they join the writing panel. Additionally, we have years of experience in offering quality homework help to students from all over the world. Masterly of writing styles is our norm . We pride ourselves in having a dedicated customer support panel, professionally trained writers, as well as skilled editors. We are knowledgeable and passionate in providing the academic writing help. Besides that, we are always available 24/7. Support and writers are ready to help you in tackling that assignment. Visit us on https://acemyhomeworkwriters.com/ 

 At Eagle Writers we have an experienced and qualified team of writers and in line with what our values are – professionalism, dedication, responsibility, accurancy and punctuality. We provide quality writing services to clients. For over 10 years we have gained experience with international clients from many nations of the world. We normally get clients struggling to have their content properly written or documented and we put a smile on their faces when we eventually give them what they wanted within the agreed time. At Eagle Writers we are keen on details and follow the instructions of the client to the letter and off course not without suggestions where we see necessary. Visit Us at https://eaglewriters.com/  

For a first-Time reader,this blog has caught my attention.i am definitely gonna try more blogs  Trinetra is a Coffee table book project  on jyotirlinga  promoting ,story of jyotirlinga,indian heritage,indian culture,jyotirlinga,hinduism,sadhoowad,name of jyotirlinga,Mallika Empire in whole world

I appreciate your good writing skills because this information is very useful. Thanks! You can meet Professional Aviation Capstone Project Writing assistants  in our company. Additionally, we are the best firm in offering Plagiarism-free Capstone Project Writing services  that will guarantee better grades.

http://canadiannowv.com/
viagra online canadian pharmacy

http://canadiannowv.com/
viagra online canadian pharmacy

W macierzy lustrzanej RAID 1 twoje dane są dużo bezpieczniejsze niż w RAID-0 (wtedy znowu twoje dane są bezpieczniejsze na jednym dysku niż w RAID 0). W przypadku RAID 1 wszystkie dyski w macierzy muszą zakończyć się niepowodzeniem przed utratą danych. To prawda, że ​​nadal działa to jako odporność na uszkodzenia jednego dysku, który oferuje także RAID-5. RAID 1 jest idealny dla konsumentów, którzy dbają jedynie o odporność na uszkodzenia na swoich nośnikach pamięci i nie są zainteresowani wyłudzaniem gotówki za trzy lub więcej dysków twardych i obudową RAID na tyle dużą, aby zmieścić je wszystkie. RAID 1 został zaprojektowany z myślą o dwóch dyskach. Jeśli chcesz umieścić więcej niż dwa dyski w macierzy RAID, która zapewnia odporność na awarie, istnieje wiele bardziej przydatnych opcji.

Finally, when you are done with your dissertation writing, make sure you have sent it to the respective source or saved it in your drive. It’s always better to follow these assignment help tips rather than moving around with guilt of unfinished work hanging over you. We know that every student faces this situation during their academic life and when you have lots and lots to do, a proper way to manage your dissertation help you spend less time getting more adept.

For a first-Time reader,this blog has caught my attention.i am definitely gonna try more blogs Trinetra is a Coffee table book project  on jyotirlinga  promoting ,story of jyotirlinga,indian heritage,indian culture,jyotirlinga,hinduism,sadhoowad,name of jyotirlinga,Mallika Empire in whole worldhttps://www.trinetra.co/

Viagra Delivery order cialis online Rhineinc.In Cialis 20 Mg Internet Real Propecia Results Thinning Hair

Tadalafil 100mg Reviews Terbenifine And Keflex Isotretinoin Delivered On Saturday Hawaii order cialis online Propecia Commander

Outstanding article! I want people to know just how good this information is in your article. Your views are much like my own concerning this subject. I will visit daily your blog because I know. It may be very beneficial for me. Nursing Assignment Help

Acquistare Kamagra Harbour Effets Secondaires De Priligy 30mg De viagra Cialis Comprar En Andorra Take Viagra Soft Tabs

Большинство женщин стыдятся веснушчатой кожи или темных пятен. Однако прожить жизнь, намазавшись толстым слоем тоналки, невозможно. Поэтому дамы растят комплексы, стесняются выходить к людям, скрывают лицо от солнечных лучей и в результате совсем разочаровываются в себе. А ведь выход лежит на поверхности, отыскать действенный осветляющий крем либо его аналог, и найти, где его можно приобрести в своем городе.
https://medium.com/jacksonvillige/my-firs-story-380b3ffac3cb
Welltox подарит лицу ровный вид

Páginas

Añadir nuevo comentario

Filtered HTML

  • Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
  • Etiquetas HTML permitidas: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Saltos automáticos de líneas y de párrafos.

Plain text

  • No se permiten etiquetas HTML.
  • Las direcciones de las páginas web y las de correo se convierten en enlaces automáticamente.
  • Saltos automáticos de líneas y de párrafos.
CAPTCHA
Esta pregunta se realiza para comprobar que se trata de un humano y prevenir los accesos automatizados para publicar spam.