begin process at 2012 05 29 05:24:07
  Trouver un code source :
 
dans
 
Accueil > Forum > 

Javascript / DHTML / Ajax

 > 

JavaScript Orienté objet (POO)

 > 

Function & Méthodes

 > 

editeur WYSIWYG problème


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

editeur WYSIWYG problème

vendredi 19 novembre 2010 à 21:11:13 | editeur WYSIWYG problème

gregroar


Bonjour, je m'inspire de http://www.javascriptfr.com/codes/SAISIE-WYSIWYG_24237.aspx, mixée à un tutoriel du site du zéro.
Pouriez vous m'aider?
J'ai essayé d'ajouter l'insertion de smileys et de liens et images via une fenetre popup javascript, mais je n'arrive pas à insérer dans le textarea, je ne comprends pas bien quelle est la variable qui contient le texte html.
Est-ce Fen, tmp, document, txt?
je bloque depuis plusieurs jours.
si vous avez le temps de m'aider, je vous enverrais ma source.



mon code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML Lang="fr">

<HEAD>
<!--&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;--->
<title>POST</title>
<!--&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-->
<meta http-equiv="cache-control"
content="no-cache" />
<meta http-equiv="content-Language"
content="fr-FR">
<meta http-equiv="content-type"
content="text/html; charset=ISO-8859-1" />
<meta http-equiv="expires"
content="0">
<meta http-equiv="imagetoolbar"
content="no" />
<meta http-equiv="Pragma"
content="no-cache">
<meta name="robots"
content="follow" />
<!--&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-->
<LINK REL="stylesheet"
TYPE="text/css"
HREF="wysiwyg.css">
<!--&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-->
<Script type="Text/JavaScript"
src="wysiwyg.js"></Script>

<!--&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-->
<script type="text/javascript">
<!--
function getXMLHttpRequest() {
var xhr = null;

if (window.XMLHttpRequest || window.ActiveXObject) {
if (window.ActiveXObject) {
try {
xhr = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
} else {
xhr = new XMLHttpRequest();
}
} else {
alert("Votre navigateur ne supporte pas l'objet XMLHTTPRequest...");
return null;
}

return xhr;
}

function view(textareaId, viewDiv){
var content = encodeURIComponent(document.getElementById(textareaId).value);
var xhr = getXMLHttpRequest();

if (xhr && xhr.readyState != 0) {
xhr.abort();
delete xhr;
}

xhr.onreadystatechange = function() {
if (xhr.readyState == 4 && xhr.status == 200){
document.getElementById(viewDiv).innerHTML = xhr.responseText;
} else if (xhr.readyState == 3){
document.getElementById(viewDiv).innerHTML = "<div style=\"text-align: center;\">Chargement en cours...</div>";
}
}

xhr.open("POST", "view.php", true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.send("string=" + content);
}





function insertTag(startTag, endTag, textareaId, tagType) {
var field = document.getElementById(textareaId);
var scroll = field.scrollTop;
field.focus();

/* === Partie 1 : on récupère la sélection === */
if (window.ActiveXObject) {
var textRange = document.selection.createRange();
var currentSelection = textRange.text;
} else {
var startSelection = field.value.substring(0, field.selectionStart);
var currentSelection = field.value.substring(field.selectionStart, field.selectionEnd);
var endSelection = field.value.substring(field.selectionEnd);
}

/* === Partie 2 : on analyse le tagType === */
if (tagType){ switch (tagType){

case "lien":
endTag = "</lien>";
if (currentSelection) { // Il y a une sélection
if (currentSelection.indexOf("http://") == 0 || currentSelection.indexOf("https://") == 0 || currentSelection.indexOf("ftp://") == 0 || currentSelection.indexOf("www.") == 0) {
// La sélection semble être un lien. On demande alors le libellé
var label = prompt("Texte du lien :") || "";
startTag = "<lien url=\"" + currentSelection + "\">";
currentSelection = label;
} else {// La sélection n'est pas un lien, donc c'est le libelle. On demande alors l'URL
var URL = prompt("Quelle est l'url du lien ?");
startTag = "<lien url=\"" + URL + "\">";
}} else { // Pas de sélection, donc on demande l'URL et le libelle
var URL = prompt("Quelle est l'url du lien ?") || "";
var label = prompt("Texte du lien :") || "";
startTag = "<lien url=\"" + URL + "\">";
currentSelection = label;
}break;

case "image":
endTag = " />";
if (currentSelection) { // Il y a une sélection
if (currentSelection.indexOf("http://") == 0 || currentSelection.indexOf("https://") == 0 || currentSelection.indexOf("ftp://") == 0 || currentSelection.indexOf("www.") == 0) {
// La sélection semble être un lien. On demande alors le libellé
var label = prompt("Description de l'image :") || "";
startTag = "<img src=\"" + currentSelection + "\" ";
currentSelection = "alt=\"" +label+ "\" ";
} else {// La sélection n'est pas un lien, donc c'est le libelle. On demande alors l'URL
var URL = prompt("Quelle est l'url de l'image ?");
startTag = "<img src=\"" + URL + "\" ";
}} else { // Pas de sélection, donc on demande l'URL et le libelle
var URL = prompt("Quelle est l'url de l'image ?") || "";
var label = prompt("Description de l'image : ") || "";
startTag = "<img src=\"" + URL + "\" ";
currentSelection = "alt=\"" +label+ "\" ";
}break;



}}

/* === Partie 3 : on insère le tout === */
if (window.ActiveXObject) {
textRange.text = startTag + currentSelection + endTag;
textRange.moveStart("character", -endTag.length - currentSelection.length);
textRange.moveEnd("character", -endTag.length);
textRange.select();
} else {
field.value = startSelection + startTag + currentSelection + endTag + endSelection;
field.focus();
field.setSelectionRange(startSelection.length + startTag.length, startSelection.length + startTag.length + currentSelection.length);
}

field.scrollTop = scroll;
}

function preview(textareaId, previewDiv) {
var field = textareaId.value;
if (document.getElementById('previsualisation').checked && field) {

var smiliesName = new Array(':magicien:', ':colere:', ':diable:', ':ange:', ':ninja:', '&gt;_&lt;', ':pirate:', ':zorro:', ':honte:', ':soleil:', '\'\\(', ':waw:', ':\\)', ':D', ';\\)', ':p', ':lol:', ':euh:', ':\\(', ':o', ':mechant:', 'o_O', '\\^\\^', ':\\#');

var smiliesUrl = new Array('magicien.png', 'angry.gif', 'diable.png', 'ange.png', 'ninja.png', 'pinch.png', 'pirate.png', 'zorro.png', 'rouge.png', 'soleil.png', 'pleure.png', 'waw.png', 'smile.png', 'heureux.png', 'clin.png', 'langue.png', 'rire.gif', 'unsure.gif', 'triste.png', 'huh.png', 'mechant.png', 'blink.gif', 'hihi.png', 'siffle.png');
var smiliesPath = "http://www.siteduzero.com/Templates/images/smilies/";

field = field.replace(/&/g, '&amp;');
field = field.replace(/</g, '&lt;').replace(/>/g, '&gt;');
field = field.replace(/\n/g, '<br />').replace(/\t/g, '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;');

field = field.replace(/&lt;gras&gt;([\s\S]*?)&lt;\/gras&gt;/g, '<strong>$1</strong>');
field = field.replace(/&lt;italique&gt;([\s\S]*?)&lt;\/italique&gt;/g, '<em>$1</em>');
field = field.replace(/&lt;lien&gt;([\s\S]*?)&lt;\/lien&gt;/g, '<a href="$1">$1</a>');
field = field.replace(/&lt;lien url="([\s\S]*?)"&gt;([\s\S]*?)&lt;\/lien&gt;/g, '<a href="$1" title="$2">$2</a>');
field = field.replace(/&lt;image&gt;([\s\S]*?)&lt;\/image&gt;/g, '<img src="$1" alt="Image" />');
field = field.replace(/&lt;citation nom=\"(.*?)\"&gt;([\s\S]*?)&lt;\/citation&gt;/g, '<br /><span class="citation">Citation : $1</span><div class="citation2">$2</div>');
field = field.replace(/&lt;citation lien=\"(.*?)\"&gt;([\s\S]*?)&lt;\/citation&gt;/g, '<br /><span class="citation"><a href="$1">Citation</a></span><div class="citation2">$2</div>');
field = field.replace(/&lt;citation nom=\"(.*?)\" lien=\"(.*?)\"&gt;([\s\S]*?)&lt;\/citation&gt;/g, '<br /><span class="citation"><a href="$2">Citation : $1</a></span><div class="citation2">$3</div>');
field = field.replace(/&lt;citation lien=\"(.*?)\" nom=\"(.*?)\"&gt;([\s\S]*?)&lt;\/citation&gt;/g, '<br /><span class="citation"><a href="$1">Citation : $2</a></span><div class="citation2">$3</div>');
field = field.replace(/&lt;citation&gt;([\s\S]*?)&lt;\/citation&gt;/g, '<br /><span class="citation">Citation</span><div class="citation2">$1</div>');
field = field.replace(/&lt;taille valeur=\"(.*?)\"&gt;([\s\S]*?)&lt;\/taille&gt;/g, '<span class="$1">$2</span>');

for (var i=0, c=smiliesName.length; i<c; i++) {
field = field.replace(new RegExp(" " + smiliesName[i] + " ", "g"), "&nbsp;<img src=\"" + smiliesPath + smiliesUrl[i] + "\" alt=\"" + smiliesUrl[i] + "\" />&nbsp;");
}

document.getElementById(previewDiv).innerHTML = field;
}
}

//-->
</script>
</head>
<body color=#400040
bgcolor=#FFCC99
leftmargin=5
topmargin=5
marginheight=5
marginwidth=5
style=" background-color:#98fb98;
overflow:auto;
font-family:Verdana;"
onload="initial();">



<select size=1
id="selfnt"
style="background-color:#ffffff"
onchange="FontChx(this);">
<optgroup label="Police">
<option>Arial</option>
<option>Comic sans MS</option>
<option>Courier</option>
<option>Courier New</option>
<option>Fixedsys</option>
<option>Garamond</option>
<option>Georgia</option>
<option>Lucida Console</option>
<option>MS Sans Serif</option>
<option>MS Serif</option>
<option>Time</option>
<option>Verdana</option>
</optgroup>
</select>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<select size=1
id="seltai"
style="background-color:#ffffff"
onchange="TailChx(this);">
<optgroup label="Taille">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
</optgroup>
</select>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<input type="image"
src="Bold.gif"
title="Gras"
onclick="btn1(this);"/>
<input type="image"
src="Italic.gif"
title="Italique"
onclick="btn1(this);"/>
<input type="image"
src="Underline.gif"
title="Souligné"
onclick="btn1(this);"/>
<input type="image"
src="StrikeThrough.gif"
title="Rayé"
onclick="btn1(this);"/>
<input type="image"
src="SubScript.gif"
title="Indices"
onclick="btn1(this);"/>
<input type="image"
src="SuperScript.gif"
title="Exposants"
onclick="btn1(this);"/>
<input type="image"
src="Transmettre.gif"
title="Envoyer"
onclick="maj();"/>


<br/>
<input type="image"
src="ForeColor.gif"
title="Couleur des Caractères"
onclick="CoulAff(this,document.getElementById('Saisie').style.color);"/>
<input type="image"
src="BackColor.gif"
title="Couleur du Fond"
onclick="CoulAff(this,document.getElementById('Saisie').style.backgroundColor);"/>
<input type="image"
src="JustifyLeft.gif"
title="Justifié à Gauche"
onclick="btn1(this);"/>
<input type="image"
src="JustifyRight.gif"
title="Justifié à Droite"
onclick="btn1(this)";/>
<input type="image"
src="JustifyCenter.gif"
title="Centré"
onclick="btn1(this);"/>
<input type="image"
src="InsertOrderedList.gif"
title="Liste numérotée"
onclick="btn1(this);"/>
<input type="image"
src="InsertUnorderedList.gif"
title="Liste à puces"
onclick="btn1(this);"/>
<input type="image"
src="Outdent.gif"
title="décaler à Gauche"
onclick="btn1(this);"/>
<input type="image"
src="Indent.gif"
title="décaler à Droite"
onclick="btn1(this);"/>
<input type="image"
src="Delete.gif"
title="Effacer"
onclick="btn1(this);"/>
<input type="image"
src="Undo.gif"
title="Annule actions"
onclick="btn1(this);"/>
<input type="image"
src="Redo.gif"
title="refaire l'action"
onclick="btn1(this);"/>
<input type="image"
src="SelectAll.gif"
name="imgSelectAll"
id="imgSelectAll"
title="tout sélectionner"
onclick="btn1(this);"/>
<input type="image"
src="Unselect.gif"
title="invalider la sélection"
onclick="btn1(this);"/>



<img src="images/designs/lien.png" title="lien" onclick="insertTag('<lien>','</lien>','tmp','lien');" />
<img src="images/designs/image.png" title="image" onclick="insertTag('<image>','</image>','tmp','image');" />
<br/>
<img src="images/designs/heureux.png" title=":D" onclick="insertTag(' :D ', '', 'tmp');" />
<img src="images/designs/smile.png" title=":)" onclick="insertTag(' :) ', '', 'tmp');" />
<img src="images/designs/clin.png" title=";)" onclick="insertTag(' ;) ', '', 'tmp');" />
<img src="images/designs/hihi.png" title="^^" onclick="insertTag(' ^^ ', '', 'tmp');" />
<img src="images/designs/rouge.png" title=":honte:" onclick="insertTag(' :honte: ', '', 'tmp');" />
<img src="images/designs/siffle.png" title=":#" onclick="insertTag(' :# ', '', 'tmp');" />
<img src="images/designs/triste.png" title=":(" onclick="insertTag(' :( ', '', 'tmp');" />
<img src="images/designs/pleure.png" title="'(" onclick="insertTag(' \'( ', '', 'tmp');" />
<img src="images/designs/mechant.png" title=":mechant:" onclick="insertTag(' :mechant: ', '', 'tmp');" />
<img src="images/designs/waw.png" title=":waw:" onclick="insertTag(' :waw: ', '', 'tmp');" />
<img src="images/designs/soleil.png" title=":soleil:" onclick="insertTag(' :soleil: ', '', 'tmp');" />
<img src="images/designs/langue.png" title=":p" onclick="insertTag(' :p ', '', 'tmp');" />
<img src="images/designs/pinch.png" title=">_<" onclick="insertTag(' >_< ', '', 'tmp');" />
<img src="images/designs/blink.gif" title="o_O" onclick="insertTag(' o_O ', '', 'tmp');" />
<img src="images/designs/unsure.gif" title=":euh:" onclick="insertTag(' :euh: ', '', 'tmp');" />
<img src="images/designs/rire.gif" title=":lol:" onclick="insertTag(' :lol: ', '', 'tmp');" />
<img src="images/designs/angry.gif" title=":colere:" onclick="insertTag(' :colere: ', '', 'tmp');" />
<img src="images/designs/diable.png" title=":diable:" onclick="insertTag(' :diable: ', '', 'tmp');" />
<img src="images/designs/ange.png" title=":ange:" onclick="insertTag(' :ange: ', '', 'tmp');" />
<br/>
<!--
pour FF :
execCommand("createlink",false,"http://....")
-->















<!--&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-->
<iframe style=" font-family:Verdana;
font-size:12px;
position:absolute;
border:1px solid #000000;
overflow:auto;
top:110;
width:98%;
height:65%;
color:rgb(64,0,64);
background-color:rgb(250,250,255);"
name="Saisie"
id="Saisie"></iframe> <!-- laisser les couleurs sont forme rgb=(r,g,b)
########################################### -->

<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<form action= <?php $destination = 'traitementmessage'; echo '"'.$destination.'.php"'; ?>
method= "post" name= "frm">
<label for='titre'>titre : </label>
<input name='titre' id='titre' />

<textarea
name="txt"
id="txt"
style=" font-family:Verdana;display:none;position:absolute;font-size:12px;border-color:#000000;border:1px inset gray;
overflow:auto;top:110;width:98%;height:65%;color:#400040;background-color:#ffffff;"></textarea>
</form>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->

<div id="CoulMnu"
name="CoulMnu"
style=" font-family:Verdana;
font-size:12px;
font-weight:bold;
display:none;
position:absolute;
border:1px solid #000000;
z-index:2;
left:0;
top:0;
background-color:#FFFFFF;" />

<table>
<tr>
<th> <label id="CoulQui"></label></th></tr>
<tr> <td style="text-align:right;">Choix</td>
<td> <input type="text" style="background-Color:#FFFFFF" id="chx" size=2 /></td>
<th> <button onclick="CoulVal();">Valider</button>
&nbsp;&nbsp;<button onclick="document.getElementById('CoulMnu').style.display='none';" >
Abandonner</button></th></tr>
<tr> <td></td></tr>
<tr> <td style="text-align:right;">Rouge</td>
<td> <input type="text" style="color:#FFFFFF" id="rr" size=3
onkeyup="gid('rrchgt').scrollLeft=this.value;
modCoul();" /></td>
<td> <div id="rrchgt" onscroll="modCoul();"
style="FONT-SIZE:1px;Overflow-X:scroll;WIDTH:300px;HEIGHT:20px">
<DIV style="WIDTH:555px">&nbsp;</DIV></div></td></tr>
<tr> <td style="text-align:right;">Vert</td>
<td> <input type="text" style="color:#FFFFFF" id="gg" size=3
onkeyup="gid('ggchgt').scrollLeft=this.value;
modCoul();" /></td>
<td> <div id="ggchgt" onscroll="modCoul();"
style="FONT-SIZE:1px;Overflow-X:scroll;WIDTH:300px;HEIGHT:20px">
<DIV style="WIDTH:555px">&nbsp;</DIV></div></td></tr>
<tr> <td style="text-align:right;">Bleu</td>
<td> <input type="text" style="color:#FFFFFF" id="bb" size=3
onkeyup="gid('bbchgt').scrollLeft=this.value;
modCoul();" /></td>
<td> <div id="bbchgt" onscroll="modCoul();"
style="FONT-SIZE:1px;Overflow-X:scroll;WIDTH:300px;HEIGHT:20px">
<DIV style="WIDTH:555px">&nbsp;</DIV></div></td></tr>
</table>
</div>
<!--&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-->
</body></html>
<!--&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-->
mercredi 24 novembre 2010 à 09:31:26 | Re : editeur WYSIWYG problème

Le grand Jisay

Salut,

Je ne connais pas ce WYSIWYG.

Déjà, pourrais-tu poster ton code via le flag balise de l'éditeur. Je n'ai meme pas envie de le lire tellement il est mal structuré et ce n'est pas à moi de le faire.

Ensuite, je te conseillerai peut-être d'utiliser un éditeur un peu plus connu genre TinyMCE ou CKEditor qui sont bien documentés.

Bien à toi,

Le grand Jisay


Cette discussion est classée dans : replace, lien, var, field, currentselection


Répondre à ce message

Sujets en rapport avec ce message

Lien image dynamique ? [ par rezan16000 ] Bonjour, j'aurais faire une création avec le . Pour exemple : function choix() { var URL = "http://www.nomdedomaine.com transformer un lien en texte [ par Jarod1980 ] Bonjour,J'aimerais savoir comment transformer un texte ou une image en lien sans utiliser la commande doRichEditCommand('CreateLink');En fait, ce que lien dans 2eme liste déroulante dépendante [ par mlsinformatique2 ] Bonjour,J'ai trouvé un script me permettant lier 2 listes déroulante (le choix de la première influ sur les choix de la 2ème). Par contre je ne trouve fonctionne pas [ par ichigokurosaki ] Bonjour,alors voilà, j'ai recopié ce code d'un bouquin "javascript dans son intégralité" mais j'ai beau le relire et le corriger, il donne rien. Alors Ajax et requete SQL [ par VisualBoy ] Bonjour, Je me decide de poster mon probleme parce que je tourne en rond depuis un moment deja et je comprend pas d'ou vient le probleme. Je cherche a [help]debloquer 1 lien texte suite a louverture d'une popup [ par alucka ] bonsoir tout le monde, hé oui j'ecris tard apres 2 jour de rechercher d'arache pied(ma mere commence a pousser la geullante:"reste pa scotcher a inter Replace : je n'y arrive pas ! [ par kaleidon ] Bonjour, Je suis débutant et je bloque sur l'écriture d'une partie de script javascript. Mon script est destiné à mettre une page en favori, son url probleme code "objet attendu" [ par ju0123456789 ] Bonjour, j'ai un piti probleme sur une fonction, quand je la compile sous IE ça me mets sans cesse un erreur, "objet attendu". Je génére un certain n problem script sous ie [ par zackys ] Bonjour ! voila j'ai un petit soucis avec un script que j'ai trouvé ici il fonction trés bien mais seulement sous ie j'ai un message erreur a la lign


Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Mai 2012
LMMJVSD
 123456
78910111213
14151617181920
21222324252627
28293031   

Consulter la suite du CalendriCode

A découvrir



 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,577 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales