URL to your eFiction: http://fannation.shades-of-moonlight.com/archive/stories.php?action=newstory
Version of eFiction: 3.4.3
Have you bridged eFiction, if so with what?: No
Version of PHP: 4/5
Version of MySQL: 5-something
Have you searched for your problem: yes
If so, what terms did you try: "tinyMCE"
State the nature of your problem:
I want to remove the tinyMCE option for all fields except the storytext field. As it is now, the tinyMCE adds html paragraphs and breakpoints when a user writes a summary/story notes/chapter notes and it ruins the formatting in the archive. I don't want to have to clean up after every member who isn't aware of this happening, so I want to permanently disable tinyMCE on the summary field, the story notes field and the chapter notes fields. Is this possible?
If anyone could point to which files I should search in, I would be really grateful.
I've had a look through the tinyMCE files in the efic download and from what I've seen, what you want to do seems unlikely. I was unable to open the jscript files (I don't think I have the proper programs to read them) so there may be something in there but other than that, I think you're out of luck.
My Site:
eFiction: v3.4.3
PHP: 5.2.6
MySQL: 5.0.45-community
Mods: Challenges, Submit Time and Word Count
I'm pretty sure that TinyMCE is deeply embedded in your files. You can delete the folder and remove it all together, but there is no simple way to remove it for selected fields without going to your php files and finding all the places and manually removing it.
No wonder I couldn't find the solution. Thanks for getting back to me.
You'd need to edit includes/storyform.php to give those fields a special class and then use a custom tinyMCE configuration (Admin->Settings -> TinyMCE Configuration)
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/editor_deselector
Have not done this, but that's where I'd start.
Thank you, thank you, THANK YOU!
That worked like a charm. All I had to do was to open the includes/storyform.php file and find:
class="textbox"
for each of the textboxes I wanted to disable tinyMCE for and change it to something else, like
class="mceNoEditor"
This made it possible for me to choose which of the boxes the tinyMCE editor should be default for and which it shouldn't be default for.
If you want to do this for other areas than the storyform, you have to open the other file where the textarea-code is located. In some other places there might not be specified a class for the textarea, in those cases you have to just add the "new" class to it (this is at least applicable in the series.php file).
I think several other users might find it useful to turn the default tinyMCE status for some boxes to "off" rather than "on", some might want to disable them completely and not give the option of turning them back on, either way, you have to find the following code located underneath the code for each box:
if($tinyMCE)
$output .= "<div class='tinytoggle'><input type='checkbox' name='toggle' onclick="toogleEditorMode('endnotes');" checked><label for='toggle'>"._TINYMCETOGGLE."</label></div>";
For those boxes you have "turned off", but want to keep it possible for users to turn them back "on" again, change it to this:
if($tinyMCE){
$output .= "<div class='tinytoggle'><input type='checkbox' name='toggle' onclick="toogleEditorMode('endnotes');"><label for='toggle'>"._TINYMCETOGGLE."</label></div>";
}
For those who wants to remove the tinyMCE option for the box entirely:
if($tinyMCE){
/*$output .= "<div class='tinytoggle'><input type='checkbox' name='toggle' onclick="toogleEditorMode('endnotes');" checked><label for='toggle'>"._TINYMCETOGGLE."</label></div>";*/
}
Your first code and the second code should behave identically.
Your first code and the second code should behave identically.
Apparently it doesn't. When I installed efiction, I made no changes to the tinyMCE setting whatsoever. Changing the class from "textbox" to something else was all I needed to do for the tinyMCE editor not to be activated on the field. And to avoid users turning the tinyMCE on for the areas I deactivated it on, I commented out the checkbox that toggled the tinyMCE option.
I have tested this out both in firefox and explorer and now only the textarea called "storytext" has the tinyMCE enabled.
It really worked for me too, I was sick and tired of fixing story summaries. Thanks!