Solved

TinyMCE and default needs to be Source Code

Posted on 2010-08-23
6
326 Views
Last Modified: 2012-05-10
Hello experts:

Is there any way for the textarea to show the Source Code by default when a user enters the page....??  At present it shows the "pretty version".

Below is the code that I am using at present for TinyMCE.

Any help will be greatly appreciated.

--d.
<script type="text/javascript">

tinyMCE.init({

	theme : "advanced",

	mode : "textareas",

//	plugins : "fullpage",



plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",

	

		// Theme options

	theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",

	theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",

	theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",

	theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",

	theme_advanced_toolbar_location : "top",

	theme_advanced_toolbar_align : "left",

	theme_advanced_statusbar_location : "bottom",

	theme_advanced_resizing : true

});

</script>

Open in new window

0
Comment
Question by:driven13
  • 4
  • 2
6 Comments
 
LVL 13

Expert Comment

by:StormITSolutions
ID: 33506845
You can set the users preference to use no editor and you will always see html only

but i reckon this isnt what your after

Storm
0
 

Author Comment

by:driven13
ID: 33506857
Hi:

Thanx for the response.

Where and/or how can I set the user's preference to use no editor..???

Maybe if I see what it looks like I will know better.

--d.
0
 
LVL 13

Expert Comment

by:StormITSolutions
ID: 33506882
site>user manager> select user> user editor> editor - no editor

Storm
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 13

Expert Comment

by:StormITSolutions
ID: 33506883
in the joomla backend

Storm
0
 

Author Comment

by:driven13
ID: 33506890
Ahhh sorry Storm.  I am not using Joomla.  I am using this with Classic ASP pages.  

Sorry for not mentioning this before.

I figured there might be a setting in the TinyMCE controls that will let me do this.

--d.
0
 
LVL 13

Accepted Solution

by:
StormITSolutions earned 500 total points
ID: 33506925
ah, not sure why this appeared within joomla section

Best bet is to use the tinymce website and follow the advice there

http://tinymce.moxiecode.com/

Storm
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now