当前时间: 2010年09月04日, 20:27 你好, 欢迎光临! (登录注册)


发表回复 
 
主题评价:
  • 1 次(票) - 平均星级: 4
  • 1
  • 2
  • 3
  • 4
  • 5
赶快增加TinyMCE 3.2.1.1 UBB编辑器吧!
2009年04月27日, 10:41 (这个帖子最后修改于: 2009年04月27日 12:01 by admin.)
赶快增加TinyMCE 3.2.1.1 UBB编辑器吧!
mybb的程序很好,但不足的是编辑器太过于简单了。
论坛的特点就是交流,而一旦当“语言”成为障碍的时候,那么交流就会更加艰难,所以人性化的,才会被大家所认可。这个论坛也才会有所发展。成为一个友好的互动平台。

下面我就想说我在英文官方找到了一个编辑器修改插件,但是包括安装使用还有界面都是英文的,我只想希望有心人能帮忙一起把丫给汉化过来,那么我想这个要是弄好的话,那在P​HP论坛的领域里,mybb就更有竞争力了哈~ 酷

英文原文:
Wysiwyg BBCode Editor: Tutorial to integrating TinyMCE 3.2.1.1 with Mybb 1.4
(2009年01月31日 10:38)aglioeolio 提到:Yes, the latest Opensource Wysiwyg Text Editor "TinyMCE" does support BBC, without the need to enable HTML permission - a known security risk.

Docs >> http://wiki.moxiecode.com/index.php/Tiny...on_Example

引用:You Don´t need to modify any mybb or tinyMCE core files.

Then you can use a Theme "A" with wysiwyg enabled and other "B" with default editor.

Just make the code edits in mybb templates and upload tinyMCE core files to the right path.

Tutorial by Claudio (AgliOEoliO) - http://www.agleoeoleo.org

Installation

1. Download TinyMCE 2.3.1.1 stable here
2. Unpack the complete "tiny_mce" folder in the "\jscript\" folder of your forum - to look like this: "www.yoursite.com/forum/jscript/tiny_mce/"
3. Follow the Template edits and test yourself in a test/non-production forum.

- The attached Files have the Template changes basic integration.
- Note that my original templates don´t have any plugins installed - this is why I suggest to make your own template backups or go testing in a default/test theme..

There is no demo at this time, see pictures bellow from my Xampplite (localhost) test

English (from this tutorial) interface
[Image: english-interface.jpg]

Portuguese interface:
[Image: wysiwyg-bbcode-mybb.jpg]
[Image: bbcode-preview.jpg]

Features:
- BBCode support - no html parsing needed to wysiwyg
- "Search and Replace" function wich is awesome to fix broken code
- Custom BBCode could be used in "Edit HTML Source" window
- Multiquote is OK as far as I´ve tested...
- IE7, Opera 9.5, Safari 3.1 and Firefox 3 compatible

Know bugs/limitations:
- styles (CSS) in wysiwyg form is using TinyMCE skin/plugin configuration - so Quote/Code won´t show accordly (check "Edit HTML Source" they will be there)
- Smilies couldn´t be used in Popup and won't be shown in wysiwyg form - in Preview post will be OK - My solution: Link with target=_blank the file "misc.php?action=smilies" in the "get more" link
- 140kb+ file loading (jscripts/tiny_mce/tiny_mce.js) in html HEAD section of edited pages (not true if you get gzip version) - but it´s cached by the browser, so it´s not that much pain.
- multiquote it´s OK, but user/link back is not working
- Font size it´s like:
代码:
[size= x-small]some text[/size]
so use "Search and Replace" function to fix that space in size= blablabla - then after the 1st post preview not Font size wysiwyg anymore

Tips:
- TinyMCE has Language and RTL support. Visit this page to get informed about it.
- Download lang. files here
- There is a gzip function to cache tinyMCE called "Compressor" - read my "custom code" to see the example - wich uses "lang" function too

Credits
Full credits to TinyMCE and Mybb Developers. This is my 10min contribution using 2 well documented software like them both are - there was no need to edit core files of any sort

Thanks to Evilito (HotEditor 1.2.x updates) and SaeedGh (Anelectron wysiwyg for 1.4.x) for their effort in share this same type of integration/tutorials that I used so many times...

any tips on how to integrate TinyMCE better (Quote Link backs, Quote and Code correct Preview, Smilies integration, etc.) will be much appreciated - my english is very poor so I hope the tutorials are clear enough to help someone 微笑
查找这个用户的全部帖子
引用并回复
2009年04月27日, 12:02 (这个帖子最后修改于: 2009年04月27日 18:50 by admin.)
RE: 赶快增加TinyMCE 3.2.1.1 UBB编辑器吧!
好的,这个好,只需要修改模板就可以搞定,稍后我会翻译出来,敬请期待
原文地址: http://community.mybboard.net/thread-44328.html
查找这个用户的全部帖子
引用并回复
2009年06月27日, 12:05
RE: 赶快增加TinyMCE 3.2.1.1 UBB编辑器吧!
翻译好了吗?
查找这个用户的全部帖子
引用并回复
2009年06月27日, 19:59 (这个帖子最后修改于: 2009年06月27日 20:10 by admin.)
RE: 赶快增加TinyMCE 3.2.1.1 UBB编辑器吧!
翻译好了,在教程区
所见即所得 BBCode 编辑器: 整合 TinyMCE 3.2.1.1 到 Mybb 1.4 [教程]
查找这个用户的全部帖子
引用并回复
发表回复 


论坛跳转:


正在浏览该主题的用户: 1 个游客

联系我们 | MyBB中文站 | 回到顶部 | 回到正文区 | 精简(归档)模式 | RSS 聚合