Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another editor
Author Message
LadyNor
Member


Posts: 56
Joined: Feb 2009
Reputation: 0
Post: #1
Another editor
Hi.
The editor at mybb is simple [When I write a message] ...
I want an editor like vb [When the text is bold you can see that - for example]
At vb it's calls: Enhanced Interface - Full WYSIWYG Editing.
(This post was last modified: 05-23-2009, 10:21 PM by LadyNor)
05-23-2009, 10:17 PM
ByteHunter
Community builder

Support

Posts: 1,362
Joined: Dec 2008
Reputation: 17
Post: #2
RE: Another editor
I would want it too :-S
There is an editor called : Office Editor but it dosn`t offers to live preview it :(

05-23-2009, 10:40 PM
LadyNor
Member


Posts: 56
Joined: Feb 2009
Reputation: 0
Post: #3
RE: Another editor
Yeah I Saw that, but I want an editor exactly like VB ...
I don't know from where to find that XDD
05-23-2009, 11:18 PM
HolyPhoenix
Premium User


Posts: 190
Joined: Sep 2008
Reputation: 0
Post: #4
RE: Another editor
Guys, it's called a wysiwyg editor. You have the ability to integrate an existing one into mybb, but I don't like it much.

I'll post a link to where it is once mybb goes back up. It seems to be down right now. Until then you might look into trying to integrate http://www.openwebware.com/ or http://www.fckeditor.net/demo as they are a lot nicer than what was trying to be integrated into mybb and won't slow down your forums like what is currently being used. I don't remember what some people were integrating with it. I think it was hoteditor or something.

But yeah, the first one at openwebware would probably look amazing and load well with mybb. In fact, it's almost worth a try so I might work on it myself. hmmmmmmmmmmmm But I have lots of projects I never started for mybb, so IDK.

How many people would actually be interested in me integrating this?

[Image: tehholiestphoenixuserbar2.png]
05-24-2009, 02:29 AM
LadyNor
Member


Posts: 56
Joined: Feb 2009
Reputation: 0
Post: #5
RE: Another editor
How can I use the openwebware for mybb?
and I don't like hot editor
05-24-2009, 02:36 AM
ByteHunter
Community builder

Support

Posts: 1,362
Joined: Dec 2008
Reputation: 17
Post: #6
RE: Another editor
I don`t like the openwebware editor ..
Its design is bad :(
The second one is better

05-24-2009, 03:12 AM
Jake
Member


Posts: 58
Joined: May 2009
Reputation: 1
Post: #7
RE: Another editor
Openweb editor is a fantastic tool, Recommended to anyone from me!
05-24-2009, 03:24 AM
LadyNor
Member


Posts: 56
Joined: Feb 2009
Reputation: 0
Post: #8
RE: Another editor
How do I translate the editors to mybb?
05-24-2009, 04:33 AM
HolyPhoenix
Premium User


Posts: 190
Joined: Sep 2008
Reputation: 0
Post: #9
RE: Another editor
integrate. You need to download the WYSIWYG editors files, upload them, then edit some of the mybb files. I was looking at openwebware and it doesn't look hard. FCK Editor is more powerful, but also a little bit slower.

what do you have against openwebware? From looking at it it seems extremely pro, a lightweight. Perfect for integrating with a bulletin board. FCK Editor isn't much bigger, and it's a lot more powerful. I've been a fan of it for years. But it might be harder to integrate (not sure since I haven't actually coded with it, my boss uses it in scripts he builds for work).

Edit: Also, for those who wanted it here is the link to hoteditor

http://community.mybboard.net/thread-358...=hoteditor

That gives you the editor you want, but requires another pack. Plus, it's hoteditor, which some of us are not fans of.

[Image: tehholiestphoenixuserbar2.png]
(This post was last modified: 05-24-2009, 05:07 AM by HolyPhoenix)
05-24-2009, 05:02 AM
CyberClub
Junior Member


Posts: 46
Joined: Oct 2008
Reputation: 0
Post: #10
RE: Another editor
if you like all vb code work in mybb add this to class_parser.php after line 273
PHP Code:
                        //EDITOR
//Support Table here
$standard_mycode['hoteditor_table_open']['regex'] = "#\[table\]#si";
$standard_mycode['hoteditor_table_open']['replacement'] = '<table align=center style="border-collapse: collapse;border-spacing: 0px;border: 1px solid #6CAFF7;background-color: #F4F4F4;width:98%;font-family:Verdana,Arial,Sans-Serif,Tahoma;font-size:12px;color: black;">';
$standard_mycode['hoteditor_table_close']['regex'] = "#\[\/table\]#si";
$standard_mycode['hoteditor_table_close']['replacement'] = '</table>';
$standard_mycode['hoteditor_tr_open']['regex'] = "#\[tr\]#si";
$standard_mycode['hoteditor_tr_open']['replacement'] = '<tr>';
$standard_mycode['hoteditor_tr_close']['regex'] = "#\[\/tr\]#si";
$standard_mycode['hoteditor_tr_close']['replacement'] = '</tr>';
$standard_mycode['hoteditor_td_open']['regex'] = "#\[td\]#si";
$standard_mycode['hoteditor_td_open']['replacement'] = '<td style="height:25px; border: 1px solid #6CAFF7">';
$standard_mycode['hoteditor_td_close']['regex'] = "#\[\/td\]#si";
$standard_mycode['hoteditor_td_close']['replacement'] = '</td>';

$standard_mycode['hoteditor_open']['regex'] = "#\[(sub|sup|strike|blockquote|b|i|u)\]#si";
$standard_mycode['hoteditor_open']['replacement'] = '<$1>';
$standard_mycode['hoteditor_close']['regex'] = "#\[\/(sub|sup|strike|blockquote|b|i|u)\]#si";
$standard_mycode['hoteditor_close']['replacement'] = '</$1>';

$standard_mycode['hoteditor_fontface']['regex'] = "#\[font=(.*?)\]#si";
$standard_mycode['hoteditor_fontface']['replacement'] = '<font face="$1">';
$standard_mycode['hoteditor_fontcolor']['regex'] = "#\[color=(.*?)\]#si";
$standard_mycode['hoteditor_fontcolor']['replacement'] = '<font color="$1">';

    
//    $standard_mycode['color']['regex'] = "#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#si";
        //$standard_mycode['color']['replacement'] = "<span style=\"color: $1;\">$2</span>";

//$standard_mycode['hoteditor_fontsize']['regex'] = "#\[size=(.*?)\]#si";
//$standard_mycode['hoteditor_fontsize']['replacement'] = '<font size="$1">';
$standard_mycode['size']['regex'] = "#\[size=(xx-small|x-small|small|medium|large|x-large|xx-large)\](.*?)\[/size\]#si";
$standard_mycode['size']['replacement'] = "<span style=\"font-size: $1;\">$2</span>";
$standard_mycode['size_int']['regex'] = "#\[size=([0-9\+\-]+?)\](.*?)\[/size\]#si";
$standard_mycode['size_int']['replacement'] = "<span style=\"font-size: $1em;\">$2</span>";

        
$standard_mycode['size_int_quot']['regex'] = "#\[size=\"([0-9\+\-]+?)\"\](.*?)\[/size\]#esi";
        
$standard_mycode['size_int_quot']['replacement'] = "\$this->mycode_handle_size(\"$1\", \"$2\")";

$standard_mycode['hoteditor_fontclose']['regex'] = "#\[\/(font|color|size)\]#si";
$standard_mycode['hoteditor_fontclose']['replacement'] = '</font>';




$standard_mycode['highlight_open']['regex'] = "#\[highlight=(.*?)\]#si";
$standard_mycode['highlight_open']['replacement'] = "<font style=\"background-color:$1\">";
$standard_mycode['highlight_close']['regex'] = "#\[\/highlight\]#si";
$standard_mycode['highlight_close']['replacement'] = "</font>";

$standard_mycode['hoteditor_align_open']['regex'] = "#\[(center|right|left|justify)\]#si";
$standard_mycode['hoteditor_align_open']['replacement'] = '<div align="$1">';
$standard_mycode['hoteditor_align_close']['regex'] = "#\[\/(center|right|left|justify)\]#si";
$standard_mycode['hoteditor_align_close']['replacement'] = '</div>';

$standard_mycode['hoteditor_flash']['regex'] = "#\[FLASH=(.*?),(.*?)\](.*?)\[\/FLASH\]#si";
$standard_mycode['hoteditor_flash']['replacement'] = '<object width="$1" height="$2"><param name="movie" value="$3"></param><param name="wmode" value="transparent"></param><embed src="$3" type="application/x-shockwave-flash" wmode="transparent" width="$1" height="$2"></embed></object>';
//EDITOR END 

[Image: clubsig.gif]
05-26-2009, 01:16 AM
 




User(s) browsing this thread: 2 Guest(s)