Custom Text Editor Help

by DarSider - 19-05-2015, 11:39 PM
Closed Account
Posts:
145
Joined:
May 2015
Likes:
9
Credits:
65
Reputation:
7
2 Years of Service
#1
OP
Posted: 19-05-2015, 11: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
dead inside
Posts:
5,135
Joined:
Jan 2015
Likes:
1,389
Credits:
20,131
Reputation:
199
Owner
2 Years of Service
#2
Posted: 20-05-2015, 01: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)
Tropical
20-05-2015, 02:02 AM
Closed Account
Posts:
1,383
Joined:
Jan 2015
Likes:
124
Credits:
1,276
Reputation:
30
2 Years of Service
#3
Posted: 20-05-2015, 01:28 AM
I think he means font awesome
Closed Account
Posts:
145
Joined:
May 2015
Likes:
9
Credits:
65
Reputation:
7
2 Years of Service
#4
OP
Posted: 20-05-2015, 01:36 AM
Nice Copy/Paste Aoki :3
I was talking about Awesome Font Icons
Thank you
dead inside
Posts:
5,135
Joined:
Jan 2015
Likes:
1,389
Credits:
20,131
Reputation:
199
Owner
2 Years of Service
#5
Posted: 20-05-2015, 01:39 AM
(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.
DarSider
20-05-2015, 01:41 AM
Closed Account
Posts:
145
Joined:
May 2015
Likes:
9
Credits:
65
Reputation:
7
2 Years of Service
#6
OP
Posted: 20-05-2015, 01:41 AM
It will be great Tongue
Thanks
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)