MyBB Community Forums

Full Version: calling to the Editor
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, that file calls to the Editor of MyBB?

Regards,
Firetech
jscripts/editor.js
Yes, but.. the file.. for example..: make a post
the file newthread.php call to the Editor.js?

Regards,
Firetech
yes, newthread.php loads the editor.
In which line this, I do not see it by any side. “jscripts/editor.js”
it is that I want to make an experiment put the FCKeditor to him or if not to put Tiny_Mce to him Big Grin

or there are no some steps to put a editor to him, for example, like the FCKeditor, or Tiny_Mce?

Regards..
firetech
If you want to put this somewhere else put this in your header.

<script type="text/javascript" src="jscripts/prototype.lite.js?ver=120"></script>
<script type="text/javascript" src="jscripts/moo.ajax.js?ver=120"></script>
<script type="text/javascript" src="jscripts/general.js?ver=120"></script>
<script type="text/javascript" src="jscripts/popup_menu.js?ver=120"></script>

Put this code where you want the textbox/toolbar to show up

<textarea id="message" name="message" rows="20" cols="70" tabindex="2" ></textarea>
<!-- start: codebuttons -->
<script type="text/javascript" src="jscripts/editor.js?ver=120"></script>
<script type="text/javascript">
	var editor_language = {
	title_bold: "Insert bold text",
	title_italic: "Insert italic text",
	title_underline: "Insert underlined text",
	title_left: "Align text to the left",
	title_center: "Align text to the center",
	title_right: "Align text to the right",
	title_justify: "Justify text",
	title_numlist: "Insert numbered list",
	title_bulletlist: "Insert bulleted list",
	title_image: "Insert image",
	title_hyperlink: "Insert hyperlink",
	title_email: "Insert email address",
	title_quote: "Insert quoted text",
	title_code: "Insert formatted code",
	title_php: "Insert formatted PHP code",
	title_close_tags: "Close any open MyCode tags that you currently have open",
	enter_list_item: "Enter a list item. Click cancel or leave blank to end the list.",
	enter_url: "Please enter the URL of the website.",
	enter_url_title: "Optionally, you can also enter a title for the URL.",
	enter_email: "Please enter the email address you wish to insert.",
	enter_email_title: "Optionally, you may also enter a title for the email address.",
	enter_image: "Please enter the remote URL of the image you wish to insert.",
	size_xx_small: "XX Small",
	size_x_small: "X Small",
	size_small: "Small",
	size_medium: "Medium",
	size_x_large: "X Large",
	size_xx_large: "XX Large",
	color_white: "White",
	color_black: "Black",
	color_red: "Red",
	color_yellow: "Yellow",
	color_pink: "Pink",
	color_green: "Green",
	color_orange: "Orange",
	color_purple: "Purple",
	color_blue: "Blue",
	color_beige: "Beige",
	color_brown: "Brown",
	color_teal: "Teal",
	color_navy: "Navy",
	color_maroon: "Maroon",
	color_limegreen: "Lime Green",
	font: "Font",
	size: "Text Size",
	color: "Text Color"
};
	var clickableEditor = new messageEditor("message", {lang: editor_language, rtl: 0});
</script>

And if its in a different directory than mybb copy and paste the jscripts folder to the directory you're going to put this code in.
I think he means he wants to add FCKeditor to MyBB.

Everything that is with the editor is within the template codebuttons, you should be able to change that with the FCKeditor code.

Cheers,
CraKteR.
yes.. Change the Editor for one tiny_Mce or FCKEditor Big Grin

Greets!
I want to make a call to custom editor function. But I am not able to see any call to javascript/editor.js.
When I go to admin CP -templates, I don't see codebutton option there. How to enable that?