MyBB Requests

Custom Text Editor Help

Submitted by DarSider, , Thread ID: 3980

Thread Closed
DarSider
Member
Level:
0
Reputation:
13
Posts:
149
Likes:
14
Credits:
55
19-05-2015, 11:39 PM
#1
Hello all !
I want to add awesome font icons to editor (mybb 1.6), if someone can give me a solution :/
Thank you :D
- Web Developer & Designer

Website : https://developement.design/
Skype : ef.team
Email : [email protected]

RE: Custom Text Editor Help

Aoki
retired
Level:
83
Reputation:
348
Posts:
7.89K
Likes:
2.3K
Credits:
1.7K
20-05-2015, 01:21 AM
#2
Open jscripts/editor.js

Search for this line and add a comma after it:

Code:
{type: 'button', name: 'color', insert: 'color', dropdown: true, color_select: true, image: 'color.gif', draw_option: this.drawColorOption, options: this.colors}

Make a new line and paste this:

Code:
{type: 'button', name: 'custom', insert: 'custom', image: 'custom.png', title: 'Custom'}

Explanation:
  • Name: Name of your button
  • Insert: MyCode
  • Image: The image which will be shown on your button
  • Title: Well, the title of your button

If you want to add an image to your button, go to jscripts/editor_themes/YOUREDITOR/images/ and upload an image which is called "custom.png". (Name it like you named it in the above line)

RE: Custom Text Editor Help

AndresXZ09
Closed Account
Level:
0
Reputation:
30
Posts:
1.22K
Likes:
139
Credits:
1.51K
20-05-2015, 01:28 AM
#3
I think he means font awesome

RE: Custom Text Editor Help

DarSider
Member
Level:
0
Reputation:
13
Posts:
149
Likes:
14
Credits:
55
OP
20-05-2015, 01:36 AM
#4
Nice Copy/Paste Aoki :3
I was talking about Awesome Font Icons
Thank you
- Web Developer & Designer

Website : https://developement.design/
Skype : ef.team
Email : [email protected]

RE: Custom Text Editor Help

Aoki
retired
Level:
83
Reputation:
348
Posts:
7.89K
Likes:
2.3K
Credits:
1.7K
20-05-2015, 01:39 AM
#5
20-05-2015, 01:36 AM
DarSider Wrote:
Nice Copy/Paste Aoki :3
I was talking about Awesome Font Icons
Thank you

I didn't copy paste it.

I could install MyBB 1.6 and make an editor with fontawesome for it and release it later, if you want.

Users browsing this thread: 1 Guest(s)