Layout and other changes

This commit is contained in:
genuineparts 2025-06-15 22:25:18 +02:00
parent 3f5ef1296a
commit 4632884065
41 changed files with 5563 additions and 544 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
{$header}
<div id="content-wrap">
<div id="content-wrap">
<div class="row">
@ -12,4 +12,4 @@
</div> <!-- end row -->
</div> <!-- end content-wrap -->
</div> <!-- end content-wrap -->

View file

@ -0,0 +1,22 @@
Copyright (c) 2012 Vadim Dobroskok
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

View file

@ -0,0 +1,197 @@
#WysiBB - WYSIWYG BBcode editor
WysiBB is a jQuery visual WYSIWYG editor for BBcode.
For more information please visit [wysibb.com](http://www.wysibb.com)
## Usage
Include the JQuery and WysiBB files
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http://cdn.wysibb.com/js/jquery.wysibb.min.js"></script>
<link rel="stylesheet" href="http://cdn.wysibb.com/css/default/wbbtheme.css" />
Activate WysiBB on an existing textarea
<script>
$(document).ready(function() {
$("#editor").wysibb()
})
</script>
<textarea id="editor" name="editor_name">My text</textarea>
To see how it works, you can try [the official demo](http://www.wysibb.com/).
## Options
####BBcodes
WysiBB comes with all BBCodes by default (allButtons). You can configure BBCode you want.
<script>
$(document).ready(function() {
var wbbOpt = {
buttons: "bold,italic,underline,|,img,link,|,code,quote"
}
$("#editor").wysibb(wbbOpt);
});
</script>
####Language
WysiBB comes in russian by default, but you can set a different language
<head>
...
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http://cdn.wysibb.com/js/jquery.wysibb.min.js"></script>
<link rel="stylesheet" href="http://cdn.wysibb.com/css/default/wbbtheme.css" />
<script src="/js/lang/fr.js"></script>
...
</head>
<script>
$(document).ready(function() {
var wbbOpt = {
lang : "fr",
buttons: "bold,italic,underline,|,img,link,|,code,quote"
}
$("#editor").wysibb(wbbOpt);
});
</script>
(languages available: Arabic (ar), Chinese (cn), English (en), French (fr), Polish (pl), Turkish (tr) & Vietnamese (ci))
####Shortkeys
You can assign any keyboard shortcuts for BBcode. By default WysiBB set some hotkeys. You can add or change their combinations for existing BBcodes.
Consider hook up hotkeys for example.
var wbbOpt = {
allButtons: {
img: {
hotkey: "ctrl+shift+5"
},
link: {
hotkey: "ctrl+shift+k"
}
}
}
$("#editor").wysibb(wbbOpt);
Note that certain key combinations are already used by browsers, so they might not work.
var wbbOpt = {
hotkeys: false, //disable hotkeys (native browser combinations will work)
showHotkeys: false //hide combination in the tooltip when you hover.
}
$("#editor").wysibb(wbbOpt);
####Custom BBCodes
You can set custom BBcode transformation, or add your own BBCodes
var wbbOpt = {
buttons: "bold,italic,underline,|,img,link,|,code,myquote",
allButtons: {
code: {
transform: {
'<div class="mycode"><div class="codetop">This program code:</div><div class="codemain">{SELTEXT}</div></div>':'[code]{SELTEXT}[/code]'
}
},
myquote: {
title: 'Insert a quote',
buttonText: 'myquote',
transform: {
'<div class="myquote">{SELTEXT}</div>':'[myquote]{SELTEXT}[/myquote]'
}
}
}
}
$("#editor").wysibb(wbbOpt);
In this configuration by using the buttons we described what BBcodes will be connected to our editor. I want to note that this option was added at once and our own BBcode myquote.
Later, using the parameter allButtons, we have changed the conclusion BBcode code and added our own, describing its title (tooltip when you hover), buttonText (text button in the toolbar).
{SELTEXT} - is the only predefined parameter.
See [the documentation](http://www.wysibb.com/ru/docs/) for more features like Sophisticated BBCodes, handlers, modal window with tabs, ...
## Browser support
WysiBB supports modern browsers, including Google Chrome, Firefox, Safari, Opera & IE8+.
It also works fine on modern smartphone & tablet browsers.
## API
Get to document editor
$("#editor").getDoc()
Get highlighted text
$("#editor").getSelectText()
Get / replace BBcode editor content
$("#editor").bbcode(); //get BBcode editor content
$("#editor").bbcode(bbdata); //set BBcode editor content
Get / replace HTML editor content
$("#editor").htmlcode(); //get HTML editor content
$("#editor").htmlcode(htmlcode); //set HTML editor content
getHTMLByCommand (command, params)
Outputs the editor content as HTML. Where command - the command name, params - object variable
$("#editor").getHTMLByCommand("code",{seltext:"this code"});
getBBCodeByCommand (command, params)
Get an outcome of the execution of commands in BB code form. Where command - the command name, params - object variable
$("#editor").getBBCodeByCommand("code",{seltext:"this code"});
insertAtCursor(data)
Insert a text where the typing cursor is
$("#editor").insertAtCursor("this code");
execCommand(command,value)
Execute the command. Where command - the command name, value - value
$("#editor").execCommand("bold");
sync()
Synchronize data editor and textarea
$("#editor").sync();
## License
WysiBB is licensed under the [MIT](http://www.opensource.org/licenses/mit-license.php) license.
If you use WysiBB a link back or a donation would be appreciated, but not required.
## Contribute
Any contributions and/or pull requests would be welcome.
Themes, translations, bug reports and bug fixes are greatly appreciated.
## Support
[Support forum](http://www.wysibb.com/forum/) (mostly in Russian)

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,74 @@
/*Arabic language by Charafweb*/
if (typeof (WBBLANG)=="undefined") {WBBLANG = {};}
WBBLANG['ar'] = {
code: "كود:",
bold: "سميك",
italic: "مائل",
underline: "سطر تحت",
strike: "تشطيب",
link: "رابط",
img: "إدراج صورة",
sup: "نص مرتفع",
sub: "نص منخفض",
justifyleft: "محاذاة إلى اليسار",
justifycenter: "محاذاة إلى الوسط",
justifyright: "محاذاة إلى اليمين",
table: "إدراج جدول",
bullist: "• قائمة غير مرتبة",
numlist: "١. قائمة مرتبة",
quote: "إقتباس",
offtop: "خارج عن الموضوع",
code: "كود برمجي",
spoiler: "إخفاء",
fontcolor: "لون الخط",
fontsize: "حجم الخط",
fontfamily: "نوع الخط",
fs_verysmall: "صغير جداً",
fs_small: "صغير",
fs_normal: "عادي",
fs_big: "كبير",
fs_verybig: "كبير جداً",
smilebox: "إدراج تعبير وجهي",
removeFormat: 'إزالة التنسيق',
modal_link_title: "إدراج رابط",
modal_link_text: "عرض النص",
modal_link_url: " رابط",
modal_email_text: "عرض البريد الإلكتروني",
modal_email_url: "البريد الإلكتروني",
modal_link_tab1: "إدراج عنوان URL",
modal_img_title: "إدراج صورة",
modal_img_tab1: "إدراج عنوان URL",
modal_img_tab2: "تحميل الصورة",
modal_imgsrc_text: "أدخل عنوان URL للصورة",
modal_img_btn: "اختر ملف",
add_attach: "إرفاق ملف",
close: "إغلاق",
save: "حفظ",
cancel: "إلغاء الأمر",
remove: "حذف",
validation_err: "البيانات المدخلة غير صحيحة",
error_onupload: "حدث خطأ أثناء تحميل الملف",
fileupload_text1: "إسقاط الملف هنا",
fileupload_text2: "أو",
loading: "جاري التحميل",
auto: "تلقائي",
views: "عدد المشاهدات",
downloads: "التنزيلات",
//smiles
sm1: "ابتسامة",
sm2: "ضحك",
sm3: "غمزة",
sm4: "شكرا",
sm5: "أنب",
sm6: "صدمة",
sm7: "غاضب",
sm8: "ألم",
sm9: "مريض"
};

View file

@ -0,0 +1,75 @@
if (typeof (WBBLANG)=="undefined") {WBBLANG = {};}
WBBLANG['cn'] = {
bold: "粗体",
italic: "斜体",
underline: "下划线",
strike: "中划线",
link: "链接",
img: "插入图片",
sup: "上标",
sub: "下标",
justifyleft: "左对齐",
justifycenter: "居中",
justifyright: "右对齐",
table: "插入表格",
bullist: "• 无序列表",
numlist: "1.有序列表",
quote: "引用",
offtop: "Offtop",
code: "代码",
spoiler: "Spoiler",
fontcolor: "字体颜色",
fontsize: "字体大小",
fontfamily: "字体",
fs_verysmall: "很小",
fs_small: "小字",
fs_normal: "正常",
fs_big: "大字",
fs_verybig: "极大",
smilebox: "插入表情符",
video: "嵌入多媒体",
removeFormat:"清除格式",
modal_link_title: "插入超级链接",
modal_link_text: "显示文本",
modal_link_url: "网址",
modal_email_text: "显示邮件地址",
modal_email_url: "邮件地址",
modal_link_tab1: "插入网址",
modal_img_title: "插入图片",
modal_img_tab1: "图片网址",
modal_img_tab2: "上传图片",
modal_imgsrc_text: "输入图片网址",
modal_img_btn: "选择文件",
add_attach: "加入附件",
modal_video_text: "输入多媒体网址",
close: "关闭",
save: "保存",
cancel: "取消",
remove: "删除",
validation_err: "输入数据无效",
error_onupload: "文件上传发生错误",
fileupload_text1: "拖动文件到此处",
fileupload_text2: "或者",
loading: "载入中",
auto: "自动",
views: "查看",
downloads: "下载",
//smiles
sm1: "微笑",
sm2: "大笑",
sm3: "秋波",
sm4: "谢谢",
sm5: "骂人",
sm6: "触电",
sm7: "生气",
sm8: "疼痛",
sm9: "生病"
};

View file

@ -0,0 +1,76 @@
if (typeof (WBBLANG)=="undefined") {WBBLANG = {};}
WBBLANG['de'] = {
// ä=\u00e4 - ö=\u00f6 - ü=\u00fc - ß=\u00df
bold: "Fett",
italic: "Kursiv",
underline: "Unterstrichen",
strike: "Durchgestrichen",
link: "Link",
img: "Bild einf\u00fcgen",
sup: "Hochgestellt",
sub: "Tiefgestellt",
justifyleft: "Linksb\u00fcndig",
justifycenter: "Zentriert",
justifyright: "Rechtsb\u00fcndig",
table: "Tabelle einf\u00fcgen",
bullist: "\u2022 Ungeordnete Liste",
numlist: "1. Geordnete Liste",
quote: "Zitat",
offtop: "Offtop",
code: "Code",
spoiler: "Spoiler",
fontcolor: "Schriftfarbe",
fontsize: "Schriftgr\u00f6\u00dfe",
fontfamily: "Schriftart",
fs_verysmall: "Sehr klein",
fs_small: "Klein",
fs_normal: "Normal",
fs_big: "Gro\u00df",
fs_verybig: "Sehr gro\u00df",
smilebox: "Emoticon einf\u00fcgen",
video: "Video einbetten",
removeFormat:"Formatierung l\u00f6schen",
modal_link_title: "Link einf\u00fcgen",
modal_link_text: "Text",
modal_link_url: "URL",
modal_email_text: "Display E-Mail",
modal_email_url: "E-Mail",
modal_link_tab1: "Insert URL",
modal_img_title: "Bild hochladen",
modal_img_tab1: "URL eingeben",
modal_img_tab2: "Bild hochladen",
modal_imgsrc_text: "Bild-URL eingeben",
modal_img_btn: "Datei aussuchen",
add_attach: "Anhang beif\u00fcgen",
modal_video_text: "Geben Sie die URL des Videos ein",
close: "Schlie\u00dfen",
save: "Speichern",
cancel: "Abbrechen",
remove: "L\u00f6schen",
validation_err: "Die eingegebenen Daten sind fehlerhaft",
error_onupload: "Fehler beim Dateiupload",
fileupload_text1: "Datei hierher ziehen",
fileupload_text2: "oder",
loading: "L\u00e4dt",
auto: "Auto",
views: "Views",
downloads: "Downloads",
//smiles
sm1: "Smile",
sm2: "Laughter",
sm3: "Wink",
sm4: "Thank you",
sm5: "Scold",
sm6: "Shock",
sm7: "Angry",
sm8: "Pain",
sm9: "Sick"
};

View file

@ -0,0 +1,72 @@
/*French translation by Charafweb*/
if (typeof (WBBLANG)=="undefined") {WBBLANG = {};}
WBBLANG['fr'] = {
bold: "Gras",
italic: "Italique",
underline: "Souligner",
strike: "Rayer",
link: "Lien",
img: "Insérer une image",
sup: "Exposant",
sub: "Indice",
justifyleft: "Alignement à gauche",
justifycenter: "Alignement au centre",
justifyright: "Alignement à droite",
table: "Insérer un tableau",
bullist: "• Liste non ordonnée",
numlist: "1. Liste ordonnée",
quote: "Citer",
offtop: "Offtop",
code: "Code",
spoiler: "Spoiler",
fontcolor: "Couleur de la police",
fontsize: "Taille de la police",
fontfamily: "Famille de polices",
fs_verysmall: "Très petit",
fs_small: "Petit",
fs_normal: "Normal",
fs_big: "Grand",
fs_verybig: "Très grand",
smilebox: "Insérer émoticône",
modal_link_title: "Insérer un lien",
modal_link_text: "Afficher le texte",
modal_link_url: "URL",
modal_email_text: "Afficher email",
modal_email_url: "Email",
modal_link_tab1: "Insérez URL",
modal_img_title: "Insérer une image",
modal_img_tab1: "Insérer URL",
modal_img_tab2: "Téléchargez image",
modal_imgsrc_text: "Entrez l'URL de l'image",
modal_img_btn: "Choisir un fichier",
add_attach: "Joindre un fichier",
close: "Fermer",
save: "Sauvgarder",
cancel: "Annuler",
remove: "Effacer",
validation_err: "Les données saisies est invalide",
error_onupload: "Erreur lors du chargement de fichier",
fileupload_text1: "Déposez le fichier ici",
fileupload_text2: "ou",
loading: "Chargement",
auto: "Auto",
views: "Vues",
downloads: "Téléchargements",
//smiles
sm1: "Sourire",
sm2: "Rire",
sm3: "Clin d'oeil",
sm4: "Merci",
sm5: "Gronder",
sm6: "Choc",
sm7: "En colère",
sm8: "Douleur",
sm9: "Malade"
};

View file

@ -0,0 +1,68 @@
if (typeof (WBBLANG)=="undefined") {WBBLANG = {};}
WBBLANG['pl'] = {
bold: "Pogrubienie",
italic: "Pochylenie",
underline: "Podkreślenie",
strike: "Przekreślenie",
link: "Link",
img: "Wstaw obraz",
sup: "Indeks górny",
sub: "Indeks dolny",
justifyleft: "Wyrównaj do lewej",
justifycenter: "Wyśrodkuj",
justifyright: "Wyrównaj do prawej",
table: "Wstaw tabelę",
bullist: "• Wypunktowana lista",
numlist: "1. Uporządkowana lista",
quote: "Cytat",
offtop: "Offtop",
code: "Kod",
spoiler: "Spoiler",
fontcolor: "Kolor czcionki",
fontsize: "Rozmiar czcionki",
fontfamily: "Rodzaj czcionki",
fs_verysmall: "Bardzo mały",
fs_small: "Mały",
fs_normal: "Normalny",
fs_big: "Duży",
fs_verybig: "Bardzo duży",
smilebox: "Wstaw emotikonę",
modal_link_title: "Wstaw link",
modal_link_text: "Wyświetlany tekst",
modal_link_url: "Adres URL",
modal_email_text: "Wyświetlany email",
modal_email_url: "Email",
modal_link_tab1: "Wstaw URL",
modal_img_title: "Wstaw obraz",
modal_img_tab1: "Podaj adres URL",
modal_img_tab2: "Wyślij obraz",
modal_imgsrc_text: "Podaj adres URL obrazu",
modal_img_btn: "Wybierz plik",
close: "Zamknij",
save: "Zapisz",
cancel: "Anuluj",
remove: "Usuń",
validation_err: "Podane dane nie są poprawne",
error_onupload: "Wystąpił błąd podczas wysyłania pliku",
fileupload_text1: "Upuść tutaj pliki",
fileupload_text2: "lub",
loading: "Ładowanie",
auto: "Auto",
//smiles
sm1: "Uśmiech",
sm2: "Chichot",
sm3: "Mrugnięcie",
sm4: "Dziękuję",
sm5: "Krzyczy",
sm6: "Szok",
sm7: "Zły",
sm8: "Boli",
sm9: "Chory"
};

View file

@ -0,0 +1,77 @@
if (typeof (WBBLANG)=="undefined") {WBBLANG = {};}
WBBLANG['ru']= CURLANG = {
bold: "Полужирный",
italic: "Курсив",
underline: "Подчеркнутый",
strike: "Зачеркнутый",
link: "Ссылка",
img: "Изображение",
sup: "Надстрочный текст",
sub: "Подстрочный текст",
justifyleft: "Текст по левому краю",
justifycenter: "Текст по центру",
justifyright: "Текст по правому краю",
table: "Вставить таблицу",
bullist: "Обычный список",
numlist: "Нумерованный список",
quote: "Цитата",
offtop: "Оффтоп",
code: "Код",
spoiler: "Сворачиваемый текст",
fontcolor: "Цвет текста",
fontsize: "Размер текста",
fontfamily: "Шрифт текста",
fs_verysmall: "Очень маленький",
fs_small: "Маленький",
fs_normal: "Нормальный",
fs_big: "Большой",
fs_verybig: "Очень большой",
smilebox: "Вставить смайл",
video: "Вставить видео",
removeFormat: "Удалить форматирование",
modal_link_title: "Вставить ссылку",
modal_link_text: "Отображаемый текст",
modal_link_url: "URL ссылки",
modal_email_text: "Отображаемый эл.адрес",
modal_email_url: "Email",
modal_link_tab1: "Вставить URL",
modal_img_title: "Вставить изображение",
modal_img_tab1: "Ввести URL",
modal_img_tab2: "Загрузить файл",
modal_imgsrc_text: "Введите адрес изображения",
modal_img_btn: "Выберите файл для загрузки",
add_attach: "Добавить вложение",
modal_video_text: "Введите URL видео",
close: "Закрыть",
save: "Сохранить",
cancel: "Отмена",
remove: "Удалить",
validation_err: "Введенные данные некорректны",
error_onupload: "Ошибка во время загрузки файла или такое расширение файла не поддерживается",
fileupload_text1: "Перетащите файл сюда",
fileupload_text2: "или",
loading: "Загрузка",
auto: "Авто",
views: "Просмотров",
downloads: "Скачиваний",
//smiles
sm1: "Улыбка",
sm2: "Смех",
sm3: "Подмигивание",
sm4: "Спасибо, класс",
sm5: "Ругаю",
sm6: "Шок",
sm7:"Злой",
sm8: "Огорчение",
sm9: "Тошнит"
};

View file

@ -0,0 +1,68 @@
/* Turkish translation by Mahmut Yaman */
if (typeof (WBBLANG) == "undefined") { WBBLANG = {}; }
WBBLANG['tr'] = {
bold: "Kalın",
italic: "İtalik",
underline: "Altı çizgili",
strike: "Üstü çizgili",
link: "Bağlantı",
img: "Resim",
sup: "Üstsimge",
sub: "Simge",
justifyleft: "Sola yasla",
justifycenter: "Ortala",
justifyright: "Sağa yasla",
table: "Tablo ekle",
bullist: "• Liste",
numlist: "1. Sıralı liste",
quote: "Alıntı",
offtop: "Konu dışı",
code: "Kod",
spoiler: "Spoiler",
fontcolor: "Metin rengi",
fontsize: "Metin boyutu",
fontfamily: "Yazı tipi",
fs_verysmall: "Çok küçük",
fs_small: "Küçük",
fs_normal: "Normal",
fs_big: "Büyük",
fs_verybig: "Çok büyük",
smilebox: "Yüz ifadeleri",
video: "YouTube",
modal_video_text: "URL",
removeFormat: "Formatı temizle",
modal_link_title: "Bağlantı Ekle",
modal_link_text: "Görüntülenecek metin",
modal_link_url: "URL",
modal_email_text: "Görüntülenecek metin",
modal_email_url: "Email",
modal_link_tab1: "Bağlantı Ekle",
modal_img_title: "Resim Ekle",
modal_img_tab1: "URL ile",
modal_img_tab2: "Dosya yükle",
modal_imgsrc_text: "Resim adresini girin",
modal_img_btn: "Bir dosya seçin",
add_attach: "Dosya ekle",
close: "Kapat",
save: "Tamam",
cancel: "İptal",
remove: "Sil",
validation_err: "Geçersiz giriş",
error_onupload: "Dosya yükleme başarısız",
fileupload_text1: "Buraya bir dosya sürükleyin",
fileupload_text2: "veya",
loading: "Yükleniyor",
auto: "Otomatik",
views: "Görüntülemeler",
downloads: "İndirmeler",
sm1: "Gülümseme",
sm2: "Gülme",
sm3: "Göz kırpma",
sm4: "Teşekkür",
sm5: "Azarlama",
sm6: "Şok",
sm7: "Kızgın",
sm8: "Üzgün",
sm9: "Kötü",
error_onupload: "Yükleme başarısız. Resim formatı desteklenmiyor."
};

View file

@ -0,0 +1,75 @@
if (typeof (WBBLANG)=="undefined") {WBBLANG = {};}
WBBLANG['ua'] = {
bold: "Напівжирний",
italic: "Курсив",
underline: "Підкреслений",
strike: "Закреслений",
link: "Посилання",
img: "Зображення",
sup: "Надрядковий текст",
sub: "Підрядковий текст",
justifyleft: "Текст по лівому краю",
justifycenter: "Текст по центру",
justifyright: "Текст по правому краю",
table: "Вставити таблицу",
bullist: "Звичайний список",
numlist: "Нумерований список",
quote: "Цитата",
offtop: "Оффтоп",
code: "Код",
spoiler: "Текст, який згортається",
fontcolor: "Колір тексту",
fontsize: "Розмір тексту",
fontfamily: "Шрифт тексту",
fs_verysmall: "Дуже маленький",
fs_small: "Маленький",
fs_normal: "Нормальний",
fs_big: "Великий",
fs_verybig: "Дуже великий",
smilebox: "Вставити смайл",
video: "Вставити відео",
removeFormat: "Видалити форматування",
modal_link_title: "Вставити посилання",
modal_link_text: "Видимий текст",
modal_link_url: "URL посилання",
modal_email_text: "Ел. адреса, яка відображатиметься",
modal_email_url: "Email",
modal_link_tab1: "Вставити URL",
modal_img_title: "Вставити зображення",
modal_img_tab1: "Ввести URL",
modal_img_tab2: "Завантажити файл",
modal_imgsrc_text: "Введіть адрес зображення",
modal_img_btn: "Виберіть файл для завантаження",
add_attach: "Додати вкладений файл",
modal_video_text: "Введіть URL відео",
close: "Закрити",
save: "Зберегти",
cancel: "Відміна",
remove: "Видалити",
validation_err: "Введенні дані некоректні",
error_onupload: "Помилка під час завантаження файлу або таке розширення файла не підтримується",
fileupload_text1: "Перетягніть файл сюди",
fileupload_text2: "або",
loading: "Завантаження",
auto: "Авто",
views: "Переглядів",
downloads: "Завантажень",
//smiles
sm1: "Посмішка",
sm2: "Сміх",
sm3: "Подморгування",
sm4: "Дякую, клас",
sm5: "Сварю",
sm6: "Шок",
sm7: "Злий",
sm8: "Засмучення",
sm9: "Нудить"
};

View file

@ -0,0 +1,71 @@
if (typeof (WBBLANG)=="undefined") {WBBLANG = {};}
WBBLANG['vi'] = {
bold: "In đậm",
italic: "In nghiêng",
underline: "Gạch chân",
strike: "Gạch ngang",
link: "Liên kết",
img: "Hình ảnh",
sup: "Superscript",
sub: "Subscript",
justifyleft: "Canh trái",
justifycenter: "Canh giữa",
justifyright: "Canh phải",
table: "Bảng",
bullist: "Bullit",
numlist: "Numlist",
quote: "Quote",
offtop: "Offtop",
code: "Code",
spoiler: "Ẩn hiện văn bản",
fontcolor: "Màu chữ",
fontsize: "Size chữ",
fontfamily: "Font chữ",
fs_verysmall: "Rất nhỏ",
fs_small: "Nhỏ",
fs_normal: "Bình thường",
fs_big: "Lớn",
fs_verybig: "Rất lớn",
smilebox: "Box Smile",
video: "Hình ảnh",
modal_link_title: "Chèn Link vào bài viết",
modal_link_text: "Text hiển thị",
modal_link_url: "URL trang",
modal_email_text: "Chèn Email liên hệ",
modal_email_url: "Email",
modal_link_tab1: "Insert URL",
modal_img_title: "Insert IMG",
modal_img_tab1: "Nhập URL",
modal_img_tab2: "Tải lên",
modal_imgsrc_text: "Nhập địa chỉ hình ảnh",
modal_img_btn: "Chọn hình ảnh tải lên",
modal_video_text: "Nhập URL video",
close: "Đóng",
save: "Lưu",
cancel: "Hủy",
remove: "Xóa",
validation_err: "Dữ liệu nhập không hợp lệ",
error_onupload: "Lỗi Upload tập tin",
fileupload_text1: "Kéo hình ảnh vào đây",
fileupload_text2: "Hoặc",
loading: "Đang tải...",
auto: "Chọn màu",
//smiles
sm1: "Nụ cười",
sm2: "Cười",
sm3: "Nháy mắt",
sm4: "Cảm ơn bạn",
sm5: "Thề",
sm6: "Sốc",
sm7: "Ác",
sm8: "Đau buồn",
sm9: "Bệnh hoạn"
};

View file

@ -0,0 +1,172 @@
WBBPRESET = {
bodyClass: "content content-phpbb3",
buttons: 'bold,italic,underline,|,quote,code,bullist,numlist,|,img,link,smilebox,fontsize,fontcolor',
traceTextarea: true,
allButtons: {
quote: {
transform: {
'<blockquote class="uncited"><div>{SELTEXT}</div></blockquote>':'[quote]{SELTEXT}[/quote]',
'<blockquote><div><cite>{AUTHOR} писал(а):</cite>{SELTEXT}</div></blockquote>':'[quote="{AUTHOR}"]{SELTEXT}[/quote]'
}
},
code: {
transform: {
'<dl class="codebox"><dt>Код: <a href="#">Выделить всё</a></dt><dd><code>{SELTEXT}</code></dd></dl>':'[code]{SELTEXT}[/code]'
}
},
bullist: {
transform: {
'<ul>{SELTEXT}</ul>':'[list]{SELTEXT}[/list]',
'<li>{SELTEXT}</li>':'[*]{SELTEXT[^\[\]\*]}'
}
},
numlist: {
transform: {
'<ol>{SELTEXT}</ol>':'[list=1]{SELTEXT}[/list]',
'<li>{SELTEXT}</li>':'[*]{SELTEXT[^\[\]\*]}'
}
},
attach: {
title: CURLANG.add_attach,
buttonHTML: '<span class="fonticon ve-tlb-attach1">\uE017</span>',
hotkey: 'ctrl+shift+5',
modal: {
title: CURLANG.add_attach,
width: "600px",
tabs: [
{
title: CURLANG.add_attach,
html: '<div id="imguploader"> <form id="fupform" class="upload" action="{img_uploadurl}" method="post" enctype="multipart/form-data" target="fupload"><input type="hidden" name="iframe" value="1"/><input type="hidden" name="idarea" value="message" /><div class="fileupload"><input id="fileupl" class="file" type="file" name="img" /><button id="nicebtn" class="wbb-button">'+CURLANG.modal_img_btn+'</button> </div> </form> </div><iframe id="fupload" name="fupload" src="about:blank" frameborder="0" style="width:0px;height:0px;display:none"></iframe></div>'
}
],
onLoad: fileModal
},
transform: {
'<div class="inline-attachment" numimg="{NUM[0-9]}" contenteditable="false"><dl class="file"><dt class="attach-image"><img src="./download/file.php?id={ID[0-9]}"></dt><dd>{ALT} Просмотров: 0</dd></dl></div>':'[attachment={NUM[0-9]}]{ID[0-9]}: {ALT}[/attachment]',
'<div class="inline-attachment" num="{NUM[0-9]}" contenteditable="false"><dl class="file"><dt><img src="./styles/prosilver/imageset/icon_topic_attach.gif" width="7" height="10" alt="" title=""><a class="postlink" href="./download/file.php?id={ID[0-9]}">{ALTFILE}</a></dt><dd>Скачиваний: 0</dd></dl></div>':'[attachment={NUM[0-9]}]{ID[0-9]}; {ALTFILE}[/attachment]'
}
}
},
smilefind: "#smiley-box"
}
//hide smilelist
$(document).ready(function() {
$("#format-buttons").hide();
$("#smiley-box").hide();
$("#message-box").css("width","100%");
});
(function($) {
//for attachments process
$.wysibb.prototype.traceTextareaEvent = function(e) {
var data = this.$txtArea.val();
if (this.options.bbmode===false && data!="" && $(e.target).closest("div.wysibb").size()==0 && !this.$txtArea.attr("wbbsync")) {
if (data.indexOf("[attachment=")!=-1) {
var num = data.replace(/\[attachment=(\d+?)\].*/,"$1");
var idfile = $("input[name='attachment_data["+num+"][attach_id]']").val();
var ext = $("input[name='attachment_data["+num+"][real_filename]']").val().replace(/.*?\.(\w+)$/,"$1");
if (ext.match(/(jpg|gif|png|bmp)/)) {
data = data.replace(/(\[attachment=\d+\])(.*?)(\[\/attachment\])/,"$1"+idfile+":$2$3");
}else{
data = data.replace(/(\[attachment=\d+\])(.*?)(\[\/attachment\])/,"$1"+";"+idfile+" $2$3");
}
}
this.insertAtCursor(this.getHTML(data,true));
this.$txtArea.val("");
}
}
$.wysibb.prototype.txtAreaInitContent = function() {
var tdata = this.txtArea.value;
tdata = tdata.replace(/(\[attachment=(\d+?)\])([^:;]*?)(\[\/attachment\])/g,function(m,left,num,cont,right) {
var idfile = $("input[name='attachment_data["+num+"][attach_id]']").val();
var ext = $("input[name='attachment_data["+num+"][real_filename]']").val();
if (ext) {
ext = ext.replace(/.*?\.(\w+)$/,"$1");
if (ext.match(/(jpg|gif|png|bmp)/)) {
return (left+idfile+":"+cont+right);
}else{
return (left+cont+";"+idfile+right);
}
}else{
return m;
}
});
this.$body.html(this.getHTML(tdata,true));
}
$.fn.closeModal = function() {
this.data("wbb").closeModal();
return this.data("wbb");
}
$.fn.insertAttach = function(id,alt,isimg) {
var num=0;
while (num<30) {
if ($("input[name='attachment_data["+num+"][attach_id]']").size()==0) {
break;
}
num++;
}
this.data("wbb").$txtArea.after('<input type="hidden" name="attachment_data['+num+'][attach_id]" value="'+id+'" /><input type="hidden" name="attachment_data['+num+'][is_orphan]" value="1" /><input type="hidden" name="attachment_data['+num+'][real_filename]" value="'+id+":"+alt+'" /><input type="hidden" name="attachment_data['+num+'][attach_comment]" value="" />');
var data = (isimg===true) ? this.data("wbb").getCodeByCommand("attach",{"id":id,"num":num,"alt":alt}):this.data("wbb").getCodeByCommand("attach",{"id":id,"num":num,"altfile":alt});
this.data("wbb").insertAtCursor(data);
return this.data("wbb");
}
})(jQuery);
function fileModal() {
$.log("fileModal");
if (this.options.imgupload===true) {
this.$modal.find("#fupform").append('<input type="hidden" name="upload_type" value="1" />');
this.$modal.find("#imguploader").dragfileupload({
url: this.strf(this.options.img_uploadurl,this.options),
themePrefix: this.options.themePrefix,
themeName: this.options.themeName,
extraParams: {
upload_type:this.options.upload_type
},
success: $.proxy(function(data) {
$.log("Success");
if (data && data.status==1) {
var num=0;
while (num<30) {
if ($("input[name='attachment_data["+num+"][attach_id]']").size()==0) {
break;
}
num++;
}
this.$txtArea.after('<input type="hidden" name="attachment_data['+num+'][attach_id]" value="'+data.id+'" /><input type="hidden" name="attachment_data['+num+'][is_orphan]" value="1" /><input type="hidden" name="attachment_data['+num+'][real_filename]" value="'+data.id+":"+data.alt+'" /><input type="hidden" name="attachment_data['+num+'][attach_comment]" value="" />');
var datastr = (data.isimg===true) ? this.getCodeByCommand("attach",{"id":data.id,"num":num,"alt":data.alt}):this.getCodeByCommand("attach",{"id":data.id,"num":num,"altfile":data.alt});
this.insertAtCursor(datastr);
}
this.closeModal();
this.updateUI();
},this),
validation: ".*$"
});
if ($.browser.msie) {
//ie not posting form by security reason, show default file upload
$.log("IE not posting form by security reason, show default file upload");
this.$modal.find("#nicebtn").hide();
this.$modal.find("#fileupl").css("opacity",1);
}
this.$modal.find("#fileupl").bind("change",function() {
$("#fupform").submit();
});
this.$modal.find("#fupform").bind("submit",$.proxy(function(e) {
$(e.target).parents("#imguploader").hide().after('<div class="loader"><img src="'+this.options.themePrefix+'/'+this.options.themeName+'/img/loader.gif" /><br/><span>'+CURLANG.loading+'</span></div>').parent().css("text-align","center");
},this))
}else{
this.$modal.find(".hastabs").removeClass("hastabs");
this.$modal.find("#imguploader").parents(".tab-cont").remove();
this.$modal.find(".wbbm-tablist").remove();
}
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,32 @@
{
"name": "wysibb",
"title": "WysiBB - Wysiwyg BBcode editor",
"description": "Wysiwyg BBcode editor based on jQuery",
"keywords": [
"wysibb",
"wysiwyg",
"bbcode",
"editor",
"ui"
],
"version": "1.5.0",
"author": {
"name": "Vadim Dobroskok",
"url": "http://www.wysibb.com"
},
"maintainers": [],
"licenses": [
{
"type": "MIT",
"url": "https://github.com/wbb/WysiBB/blob/master/LICENSE-MIT"
}
],
"bugs": "https://github.com/wbb/WysiBB/issues",
"homepage": "http://www.wysibb.com",
"docs": "http://www.wysibb.com/docs/",
"demo": "http://www.wysibb.com/demo/",
"download": "http://www.wysibb.com/download/",
"dependencies": {
"jquery": ">=1.6"
}
}