Custom Text Editor Help

by DarSider - 19-05-2015, 10:39 PM
Member
Posts:
161
Joined:
May 2015
Likes:
13
Credits:
112
Reputation:
9
3 Years of Service
#1
OP
Posted: 19-05-2015, 10:39 PM
Hello all !
I want to add awesome font icons to editor (mybb 1.6), if someone can give me a solution Meh
Thank you :D
- Web Developer & Designer

Website : https://developement.design/
Skype : ef.team
Email : business@developement.design
oldfag
Administrators
Posts:
6,295
Joined:
Jan 2015
Likes:
1,790
Credits:
5,171
Reputation:
274
3 Years of Service
#2
Posted: 20-05-2015, 12:21 AM
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)
Send me a message for help. (Read the help docs first)
Steam Wishlist - Anime Watchlist
Tropical
20-05-2015, 01:02 AM
Closed Account
Posts:
1,382
Joined:
Jan 2015
Likes:
125
Credits:
1,388
Reputation:
30
3 Years of Service
#3
Posted: 20-05-2015, 12:28 AM
I think he means font awesome
Member
Posts:
161
Joined:
May 2015
Likes:
13
Credits:
112
Reputation:
9
3 Years of Service
#4
OP
Posted: 20-05-2015, 12:36 AM
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 : business@developement.design
oldfag
Administrators
Posts:
6,295
Joined:
Jan 2015
Likes:
1,790
Credits:
5,171
Reputation:
274
3 Years of Service
#5
Posted: 20-05-2015, 12:39 AM
(20-05-2015, 12: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.
Send me a message for help. (Read the help docs first)
Steam Wishlist - Anime Watchlist
DarSider
20-05-2015, 12:41 AM
Member
Posts:
161
Joined:
May 2015
Likes:
13
Credits:
112
Reputation:
9
3 Years of Service
#6
OP
Posted: 20-05-2015, 12:41 AM
It will be great Tongue
Thanks
- Web Developer & Designer

Website : https://developement.design/
Skype : ef.team
Email : business@developement.design
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)