Having TinyMCE star...
 
Notifications
Clear all

Having TinyMCE start in an "off" state but still be toggle-able.

2 Posts
2 Users
0 Reactions
1,531 Views
(@hobert)
Posts: 61
Trusted Member
Topic starter
 

I was reading in a few other topics about TinyMCE, and how to completely remove it for certain fields.  What I wanted was to have it available but not loaded to start, and letting me check the box to have it turn on for a field.  Found the answer at the TinyMCE forum.

In header.php, change (after tinyMCE.init)

		mode: 'textareas',

to

		mode: 'none',

This will load the page with all the TinyMCE areas "off".  But the checkboxes are stil on!  Oh, no!!

In includes/storyform.php, remove the word "checked" from the four lines that look like

$output .= "<div class='tinytoggle'><input type='checkbox' name='toggle' onclick="toogleEditorMode('notes');" checked><label for='toggle'>"._TINYMCETOGGLE."</label></div>";

Leave the word in the ones that have

== 1 ? " checked" : "")

as that is for the completed check box and round robin boxes.

Note:  I'm not sure how to get TinyMCE to start "on" for some fields and "off" for others when the page first loads, and still have them be toggleable.  This is more than I want to do and so not really interested in working on it further.  Hope this might help some other person out there!


efiction - 3.5.3
MySql - 5.5.32
php - 5.5.22
Linex - Apache 2.2.17
Hosted by: Fatcow!
http://www.hobert.net/fic/

 
Posted : 14/08/2009 8:05 pm
(@tammy)
Posts: 2577
Member Moderator
 

FYI. This is a MOD and belongs in the MODs forum...moving there.


 
Posted : 15/08/2009 12:44 am
Share: