تذكير بمساهمة فاتح الموضوع :
صفحة 4 من اصل 4 • 1, 2, 3, 4
- Adminمؤسس المنتدى
تمت المشاركة 15/01/17, 02:35 am
- omarpop23
- مُشآركاتيّ : 16
تسجيليّ : 30/06/2016
تمت المشاركة 04/03/17, 05:12 am
[ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الرابط]
- omarpop23
- مُشآركاتيّ : 16
تسجيليّ : 30/06/2016
تمت المشاركة 04/03/17, 05:19 am
[ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الرابط]
- omarpop23
- مُشآركاتيّ : 16
نقآطيّ : 39
السٌّمعَة : 21
تسجيليّ : 30/06/2016
تمت المشاركة 15/04/17, 10:57 pm
[ندعوك للتسجيل في المنتدى أو التعريف بنفسك لمعاينة هذا الرابط]
- Adminمؤسس المنتدى
تمت المشاركة 20/05/17, 07:47 pm
- الكود:
/**
* Melhorar o botão CODE no SCEditor.
*
* @author: Luiz~
* @see: <a href="http://ajuda.forumeiros.com/">Fórum dos Fóruns</a>
* @licence: MIT
*/
(function ($) {
'use strict';
$(window).on('load', function () {
$('.sceditor-button-code').css('display', 'none');
var $faCode = $([
'<a class="sceditor-button sceditor-button-c0de" data-sceditor-command="fa-code" ' +
' unselectable="on" title="Code">',
' <div unselectable="on" style="background-position: 0 -544px; filter: none!important; ' +
' opacity: 1!important;">Code</div>',
'</a>',
].join('\n'))
.on('click', function () {
$('.sceditor-fa-code-drop')
.css({
left: $faCode.offset().left + 'px',
top: $faCode.offset().top + 'px'
})
.toggle();
})
.insertAfter('.sceditor-button-code')
;
$([
'<div class="sceditor-dropdown sceditor-fa-code-drop">',
' <div>',
' <label for="txt" unselectable="on">Cole o código:</label>',
' <textarea id="fa-code-content" value="" cols="20" rows="7" ' +
' style="min-width: 160px; width: 160px;"></textarea>',
' </div>',
' <div>',
' <input type="button" class="button" id="fa-code-btn" value="Inserir código">',
' </div>',
'</div>',
].join('\n'))
.css({
marginTop: '28px',
display: 'none'
})
.appendTo('body')
;
var $sceditor = $("#text_editor_textarea");
$('#fa-code-btn').on('click', function () {
$sceditor
.sceditor('instance')
.insertText('[code]' + $('#fa-code-content').val() + '[/code]')
;
$('.sceditor-fa-code-drop').toggle();
$('#fa-code-content').val('');
});
});
}(jQuery));
صفحة 4 من اصل 4 • 1, 2, 3, 4
صلاحيات هذا المنتدى:
لاتستطيع الرد على المواضيع في هذا المنتدى