[SOLUCIONADO] Poner un editor sencillo
Hola, quisiera saber si se puede poner un editor más sencillo
Ejemplo:
Que pulses el boton de las negritas y ya te escriba automaticamente en negritas sin necesidad de utilizar las balizas
Me explico?
Foro: http://neverfall.co.cc
Version: 1.6
Ejemplo:
Que pulses el boton de las negritas y ya te escriba automaticamente en negritas sin necesidad de utilizar las balizas
Me explico?
Foro: http://neverfall.co.cc
Version: 1.6
Aún no sale una version del advance quick reply para 1.6, pero la verdad y probando, eso solo cosa de modificar la plantilla de la respuesta rápida.
te dejo la planyilla que le tengo puesta yo.
showthread_quickreply:
Puedes copiar y pegarlo en el tuyo.
ahi si le quieres hacer algún edit de posicionamiento nada más editas el hatml.
Así es como se ve en mi foro:
![[Image: pantallazokd.png]](http://img97.imageshack.us/img97/6742/pantallazokd.png)
te dejo la planyilla que le tengo puesta yo.
showthread_quickreply:
Code:
<form method="post" action="newreply.php?tid={$tid}&processed=1" name="quick_reply_form" id="quick_reply_form">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<input type="hidden" name="subject" value="RE: {$thread['subject']}" />
<input type="hidden" name="action" value="do_newreply" />
<input type="hidden" name="posthash" value="{$posthash}" id="posthash" />
<input type="hidden" name="quoted_ids" value="" id="quoted_ids" />
<input type="hidden" name="lastpid" id="lastpid" value="{$last_pid}" />
<input type="hidden" name="from_page" value="{$page}" />
<input type="hidden" name="tid" value="{$tid}" />
<input type="hidden" name="method" value="quickreply" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickreply']}.gif" id="quickreply_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->quick_reply}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['quickreply_e']}" id="quickreply_e">
<tr>
<td class="trow1" valign="top" width="23%">
<div>
{$clickablesmilies}
</div>
{$closeoption}
</td>
<td class="trow1" valign="top">
<strong>{$lang->message}</strong><br />
<span class="smalltext">{$lang->message_note}<br /></span>
<div style="width: 100%">
<textarea style="width: 95%; padding: 0px; margin: 0;" rows="18" cols="65" name="message" id="message" tabindex="1"></textarea>
{$codebuttons}
</div>
<div class="editor_control_bar" style="width: 95%; padding: 4px; margin-top: 3px; display: none;" id="quickreply_multiquote">
<span class="smalltext">
{$lang->quickreply_multiquote_selected} <a href="./newreply.php?tid={$tid}&load_all_quotes=1" onclick="return Thread.loadMultiQuoted();">{$lang->quickreply_multiquote_now}</a> {$lang->or} <a href="javascript:Thread.clearMultiQuoted();">{$lang->quickreply_multiquote_deselect}</a>.
</span>
</div>
<span class="smalltext">
<label>
<input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" {$postoptionschecked['signature']} />
<strong>{$lang->signature}</strong>
</label>
<label>
<input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="1" />
<strong>{$lang->disable_smilies}</strong>
</label>
</span>
</td>
</tr>
{$captcha}
<tr>
<td colspan="2" align="center" class="tfoot"><input type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" id="quick_reply_submit" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="3" /></td>
</tr>
</tbody>
</table>
</form>Puedes copiar y pegarlo en el tuyo.
ahi si le quieres hacer algún edit de posicionamiento nada más editas el hatml.
Así es como se ve en mi foro:
![[Image: pantallazokd.png]](http://img97.imageshack.us/img97/6742/pantallazokd.png)
Hola ribon22x, puedes decirme qué fue lo que añadiste al showthread_quickreply para que te salga el editor? Un saludo!
Pero si ahi puse el codigo :S
Bueno lo pongo denuevo y en un quote en caso de que no te aparezca.
Bueno lo pongo denuevo y en un quote en caso de que no te aparezca.
Quote:<form method="post" action="newreply.php?tid={$tid}&processed=1" name="quick_reply_form" id="quick_reply_form">
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<input type="hidden" name="subject" value="RE: {$thread['subject']}" />
<input type="hidden" name="action" value="do_newreply" />
<input type="hidden" name="posthash" value="{$posthash}" id="posthash" />
<input type="hidden" name="quoted_ids" value="" id="quoted_ids" />
<input type="hidden" name="lastpid" id="lastpid" value="{$last_pid}" />
<input type="hidden" name="from_page" value="{$page}" />
<input type="hidden" name="tid" value="{$tid}" />
<input type="hidden" name="method" value="quickreply" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead" colspan="2">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['quickreply']}.gif" id="quickreply_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->quick_reply}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['quickreply_e']}" id="quickreply_e">
<tr>
<td class="trow1" valign="top" width="23%">
<div>
{$clickablesmilies}
</div>
{$closeoption}
</td>
<td class="trow1" valign="top">
<strong>{$lang->message}</strong><br />
<span class="smalltext">{$lang->message_note}<br /></span>
<div style="width: 100%">
<textarea style="width: 95%; padding: 0px; margin: 0;" rows="18" cols="65" name="message" id="message" tabindex="1"></textarea>
{$codebuttons}
</div>
<div class="editor_control_bar" style="width: 95%; padding: 4px; margin-top: 3px; display: none;" id="quickreply_multiquote">
<span class="smalltext">
{$lang->quickreply_multiquote_selected} <a href="./newreply.php?tid={$tid}&load_all_quotes=1" onclick="return Thread.loadMultiQuoted();">{$lang->quickreply_multiquote_now}</a> {$lang->or} <a href="javascript:Thread.clearMultiQuoted();">{$lang->quickreply_multiquote_deselect}</a>.
</span>
</div>
<span class="smalltext">
<label>
<input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" {$postoptionschecked['signature']} />
<strong>{$lang->signature}</strong>
</label>
<label>
<input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="1" />
<strong>{$lang->disable_smilies}</strong>
</label>
</span>
</td>
</tr>
{$captcha}
<tr>
<td colspan="2" align="center" class="tfoot"><input type="submit" class="button" value="{$lang->post_reply}" tabindex="2" accesskey="s" id="quick_reply_submit" /> <input type="submit" class="button" name="previewpost" value="{$lang->preview_post}" tabindex="3" /></td>
</tr>
</tbody>
</table>
</form>
Ya, si ya lo vi, pero yo te pedía que me dijeras SOLO lo que tuviste que añadir. Es que yo tengo la respuesta rápida editada...
.______.
Pues compara los códigos
Pues compara los códigos
Qué? ,perdona lo edite por que no salía el code xd
Es ,lo mismo que he dicho ,yo! xDD ,y lamentablemente no hay ningun plugin ,al menos que yo sepa
=)