After setting the "Default tinymce state" a couple times as either "Off" or "On" it ceased to work at all. The setting sticks and shows as being whatever I set it to last. However, no matter what I set it to it acts as though I set it to "On". I deleted the only profile I had created and this still persists.
I am now digging through the code trying to determine where I can force it to "Off", which is what I want. I like the option of this functionality, but most of my pages were written in very pretty (well-formatted) HTML which tinyMCE immediately munges into a single line whenever it gets a hold of someting.
Comments
Comment #1
analogduck commentedIf this is affecting anyone else, I "fixed" it in the worst possible way by mangling the code. Sorry, I'm too dumb to know a better way, but I can at least offer my work-around for anyone else who cares. ;)
I simply changed lines 174 and 393 from:
$status = isset($user->tinymce_status) ? $user->tinymce_status : variable_get('tinymce_default_state', 0);To:
$status = 0 ? $user->tinymce_status : variable_get('tinymce_default_state', 0);I haven't noticed any bad side-effects yet. If anyone has a more elegant solution/fix, I'm all ears! =)
Comment #2
zach harkey commentedI have the same problem except it is stuck not displaying by default. No matter how many times I click for it to display by default, it won't.
Comment #3
analogduck commentedWell at least the good news is that you can change the default state to be set with my above-used hack by simply switching the "0" to be "1".
:P
Comment #4
metzlerd commentedIf I understand this correctly, this is the way that the code is supposed to work.
The "Default Setting" only applies to new users. Once you've logged in using the default settings, then the user specific setting takes place. Try going to My Account and finding the TincyMCE setting there. It should control the TinyMCE state for your particular user. The setting in TinyMCE profiles only affects what a user fist sees as their default. Thereafter users may change whether they are using TinyMCE or not.
Does that sound right to you?
Dave
Comment #5
m3avrck commentedmetzlerd is correct. Setting the default on/off state in admin > settings affects new user accounts. Users can the login and under their 'my account' can change their default to on/off. Depending on what this and the other, you could experience those problems. However, this is how it should work.