MyBB Requests

Custom Text Editor Help

Submitted by DarSider, , Thread ID: 3980

Thread Closed

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)

Users browsing this thread: 1 Guest(s)