Syx Admin
Yo. Messages : 38 Reputation : 0 Date d'inscription : 30/04/2020
| Sujet: JS perso Dim 7 Juin - 21:02 | |
| smileys à droite au click (quickreply test only) - Code:
-
var scbut = 'a.sceditor-button.sceditor-button-emoticon'; var sced = '.sceditor-dropdown.sceditor-emoticon'; $('a.sceditor-button-emoticon').removeAttr('title'); $(function() { $(scbut).click(function() { $(this).toggleClass('emote_before'); $('.bodylinewidth').toggleClass('space_emotew'); if (!$(sced).hasClass('large_emotew')) { $(sced).addClass('large_emotew'); } }); }); | |
|
Syx Admin
Yo. Messages : 38 Reputation : 0 Date d'inscription : 30/04/2020
| Sujet: Re: JS perso Lun 15 Juin - 21:34 | |
| début de live preview (prend pas le bbcode) - Code:
-
var editor = $('#text_editor_textarea').sceditor('instance');
editor.keyUp(function() { var result = editor.val();
$('.preview').html(result); }); | |
|