| [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition | |
|
+16Mi Neth Lilas chrisnvidia Ombi petitefeuille msfeettoes LMRP issam89 Tony L Louaque Queen G. dragon594 SuperSpaceCab Psychotic Bitch Ezio Milouze14 20 participants |
Auteur | Message |
---|
Milouze14
Fondateur

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Mar 23 Aoû 2016 - 19:49 | |
| Hello les ami(e)s, sur le F.D.F on demande souvent de mettre un texte sur l'éditeur seulement l'iframe (le mode WYSIWYG) est pratiquement inaccessible pour des modifications. On va donc définir un texte dans le script dans une variable afin d'éviter le soucis de caractères accentués. De plus, au survol de l'éditeur le texte disparaitra pour laisser place à l'éditeur. L'aperçu imagé: Modules/ HTML JAVASCRIPT/ Gestion des codes Javascript/ Créer un nouveau JavascriptMettre un titre explicite. Cocher sur toutes les pages. Déposez ceci: - Code:
-
$(function(){$(function(){ var text='Ne postez pas d\'insulte, évitez les majuscules, faites une recherche avant de poster pour voir si la question n\'a pas été évoqué.'; $('.sceditor-container iframe').before('<textarea id="M14_textarea"placeholder="'+text+'"></textarea>'); })}); $(function(){$(function(){ $('.sceditor-container').mouseenter(function(){ $('#M14_textarea').slideUp();}); $('.sceditor-container').mouseleave(function() { $('#M14_textarea').slideDown(); });})});
Pensez a cliquer sur le bouton  Puis on va positionner le textarea : - Code:
-
#M14_textarea { position:absolute; left:2%; width:96% !important; height: auto !important; color: red !important; font-size:12px; font-style:italic;
}
Les styles suivants peuvent être modifiés - Code:
-
color: red !important; font-size:12px; font-style:italic;
Le texte modifiable pourra s'effectuer ici: - Code:
-
var text='Ne postez pas d\'insulte, évitez les majuscules, faites une recherche avant de poster pour voir si la question n\'a pas été évoqué.';
Attention toutefois aux apostrophes et accents , il devront être précédés d'une barre oblique (antislash):
Dernière édition par Milouze14 le Lun 29 Nov 2021 - 8:06, édité 5 fois | |
|
 | |
Ezio
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Ven 26 Aoû 2016 - 17:04 | |
| | |
|
 | |
Psychotic Bitch
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Jeu 1 Sep 2016 - 10:43 | |
| | |
|
 | |
Invité Invité

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Ven 7 Oct 2016 - 11:15 | |
| |
|
 | |
SuperSpaceCab
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Ven 7 Oct 2016 - 15:00 | |
| | |
|
 | |
dragon594
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Ven 7 Oct 2016 - 19:09 | |
| | |
|
 | |
Invité Invité

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Mar 11 Oct 2016 - 9:18 | |
| |
|
 | |
Psychotic Bitch
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Sam 22 Oct 2016 - 1:58 | |
| | |
|
 | |
Queen G.
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Sam 29 Oct 2016 - 20:51 | |
| | |
|
 | |
Louaque
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Jeu 24 Nov 2016 - 16:20 | |
| | |
|
 | |
Tony L
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Lun 9 Jan 2017 - 22:03 | |
| | |
|
 | |
issam89
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Mar 10 Jan 2017 - 23:52 | |
| | |
|
 | |
LMRP
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Mer 8 Mar 2017 - 20:52 | |
| | |
|
 | |
msfeettoes
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Sam 15 Avr 2017 - 16:44 | |
| | |
|
 | |
petitefeuille
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Mar 13 Mar 2018 - 15:45 | |
| | |
|
 | |
Ombi
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Lun 19 Mar 2018 - 9:24 | |
| | |
|
 | |
chrisnvidia
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Dim 13 Mai 2018 - 20:50 | |
| | |
|
 | |
Lilas
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Mer 21 Nov 2018 - 19:05 | |
| | |
|
 | |
Mi Neth
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Ven 17 Jan 2020 - 17:22 | |
| Bonjour, C'est quoi et il se trouve où? un éditeur de transition? Merci, Bonne soirée, Mi Neth, | |
|
 | |
Milouze14
Fondateur

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Ven 17 Jan 2020 - 18:41 | |
| | |
|
 | |
Splash
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Ven 17 Jan 2020 - 20:39 | |
| | |
|
 | |
Milouze14
Fondateur

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Sam 18 Jan 2020 - 5:03 | |
| De rien Splash, L'entraide est fait pour cela  . | |
|
 | |
soleda
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Lun 20 Jan 2020 - 16:00 | |
| | |
|
 | |
tritri
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Sam 25 Avr 2020 - 21:03 | |
| merci beaucoup pour ce tuto | |
|
 | |
Constellation
Milouzien

![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Mer 31 Mar 2021 - 1:14 | |
| Merci pour ce tuto très utile | |
|
 | |
Contenu sponsorisé
![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | Sujet: Re: [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition ![[TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition Empty](https://2img.net/i/empty.gif) | |
| |
|
 | |
| [TOUTES VERSIONS] Afficher un texte dans l'éditeur avec transition | |
|