Disabling advanced buttons in TinyMCE

I'm using TinyMCE in a web page and need to use the advanced them for button such as subscript/superscript but do not need the rows of buttons that apparently come about by default, ex. the insert image button - does not appear in my init script, but it and its row among another row always are on.  I want only the buttons I have listed on theme_advanced_buttons1 and not the other two rows.  Hopefully someone know what I am referring to.
<!-- TinyMCE -->
<script type="text/javascript" src="java_script/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
 
		// Theme options
		theme_advanced_buttons1 : "cut,copy,paste,|,search,replace,|,bold,italic,underline,strikethrough,|,sub,sup",
		theme_advanced_toolbar_location : "bottom",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "",
		theme_advanced_resizing : true,
 
		//content_css : "css/content.css",
 
		// Drop lists for link/image/media/template dialogs
		//template_external_list_url : "lists/template_list.js",
		//external_link_list_url : "lists/link_list.js",
		//external_image_list_url : "lists/image_list.js",
		//media_external_list_url : "lists/media_list.js",
 
	});
</script>
<!-- /TinyMCE -->

Open in new window

justinvoelsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

-sg-Commented:
Change:

theme : "advanced"

to

theme : "simple"
0
Loganathan NatarajanLAMP DeveloperCommented:
though you can keep the "advanced" theme settings ... you could remove the options from the variables,

just customize "theme_advanced_buttons1" ...

and clear the cache/history pages of your browser... then it may display the settings.,
0
justinvoelsAuthor Commented:
If I change it to simple theme I was under the impression that I cannot add additional buttons. The simple theme would be excellent if I could add just two buttons, subscript and superscript.
0
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

justinvoelsAuthor Commented:
Changing the theme to simple drops my buttons I want. From what I understand form the TinyMCE documentation (which is extremely poor) is that the simple theme is just that, simple enough tot where you can't add your own buttons.
0
justinvoelsAuthor Commented:
I scoured TinyMCE's wiki (why do documentation through a wiki only, unprofesssional. stripping newlines out of the tinymce.js so the 'source code' of sorts is unreadable, unprofessional and not very LGPL)

Use the advanced theme and add in under the theme options

theme_advanced_disable : "",

inside the quotes list what you don't want to show up out of the list of advanced theme's defaults

this isn't the most desirable, but works for now
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
justinvoelsAuthor Commented:
I will leave this open for any expert to prove a better approach, especially involving moving the few buttons from the default bars to all be on one bar with my desired buttons (theme_advanced_buttons1). Here is how it looks now, aside from plug ins I will still be playing with.
<!-- TinyMCE -->
<script type="text/javascript" src="java_script/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
	tinyMCE.init({
		// General options
		mode : "textareas",
		theme : "advanced",
		plugins : "safari,pagebreak,style,iespell,inlinepopups,insertdatetime,preview,searchreplace,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking",
 
		// Theme options
 
		theme_advanced_buttons1 : "cut,copy,paste,|,search,replace,|,bold,italic,underline,strikethrough,|,sub,sup",
		theme_advanced_toolbar_location : "bottom",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "",
		theme_advanced_resizing : true,
                theme_advanced_disable : "anchor,bullist,numlist,outdent,indent,image,cleanup,help,link,unlink,code,separator,hr",
 
		//content_css : "css/content.css",
 
		// Drop lists for link/image/media/template dialogs
		//template_external_list_url : "lists/template_list.js",
		//external_link_list_url : "lists/link_list.js",
		//external_image_list_url : "lists/image_list.js",
		//media_external_list_url : "lists/media_list.js",
 
	});
</script>
<!-- /TinyMCE -->

Open in new window

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.