I am seeing a rather strange bug on my 7.0.9 site. Sometimes when you go to a section of the site, the comment toolbar does not load in correctly, it loads in a default toolbar I guess. Reloading the page often corrects the problem.
When I view the source code of the page, I see the correct TinyMCE init file has been pulled from the BxBaseConfig.php but the incorrect toolbar is loaded. What could cause this to happen. I have the cache turned off. Has anyone else seen this problem?
I have attached an image of the incorrect comment toolbar.
Geeks, making the world a better place |
This may have been a caching problem; not sure why it would happen though. Geeks, making the world a better place |
This problem still exists. I have attached a second image that shows the wrong toolbar on the photo comment box. This is the TinyMCE init copied from the page source. If you compare that with the image you will see they are nothing close.
Note: I removed the script part so it would paste as text, they are included in the code on the site.
<!-- tinyMCE gz --> <type="text/javascript" src="http://civatar.com/plugins/tiny_mce/tiny_mce_gzip.js"></> < type="text/javascript"> tinyMCE_GZ.init({ themes : "advanced", plugins: "emotions", languages : "en", disk_cache : true, debug : false /* , suffix: "_src" //for development only */ });
if (window.attachEvent) window.attachEvent( "onload", InitTiny ); else window.addEventListener( "load", InitTiny, false);
function InitTiny() { tinyMCE.init({ convert_urls : false, mode : "specific_textareas", theme : "advanced", plugins : "autolink,lists,advimage,advlink,emotions,inlinepopups,media,embed",
delta_height: -9, // just for correct sizing
editor_selector : /(group_edit_html|story_edit_area|classfiedsTextArea|blogText|comment_textarea|form_input_html)/,
theme_advanced_buttons1 : "fontselect,fontsizeselect,forecolor,backcolor,bold,italic,underline,strikethrough", theme_advanced_buttons2 : "link,unlink,|,justifyleft,justifycenter,justifyright,justifyfull,|,charmap,emotions,embed,code", theme_advanced_buttons3 : "", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "center", extended_valid_elements : "a[name|href|title],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
paste_use_dialog : false, paste_auto_cleanup_on_paste : true, paste_convert_headers_to_strong : false, paste_strip_class_attributes : "all", paste_remove_spans : false, paste_remove_styles : false }); }
<!-- /tinyMCE -->
Geeks, making the world a better place |
I am wondering if this is a browser bug?. Since the TinyMCE is a javascript control, it is handled on the client side by the browser. On Firefox, closing the browser and reopening and logging back into the site cleared the problem on the profiles comments. However, the image comment still loads in the wrong toolbar. I upgraded FireFox to the latest version and that did not fix the problem The worry here is users will have this problem as well. I am not caching anything on my browser, the cache is turned off so it can better help me in testing the site without worry about trying to clear out a cache to get things to display. Geeks, making the world a better place |
OK, a test user has confirmed this issue as well. If anyone can help shed some light on this issue, it would be appreciated. Geeks, making the world a better place |
OK, I thought maybe it was my BxBaseConfig.php file. So I uploaded from a fresh download of Dolphin and that did not fix this. Others are saying they have upgraded TinyMCE and not having any problems. I need to get this fixed and it is not just on my computer, other users are seeing it as well.
Is there something I need to clean out in the database? I have clear caches until I am sick of it. I noticed that the photo section is especially bad about loading in the wrong toolbars. I need to get this working.
Geeks, making the world a better place |
I have been chasing this bug for a long time without any answers. I may have found the problem with the help of the TinyMCE people on their forum.
< type="text/javascript"> tinyMCE_GZ.init({ themes : "advanced", plugins: "emotions",
Look at the text in red above. See anything wrong with it? I had looked over the BxBaseConfig.php file and never noticed this error. It is in every one of the TinyMCE init in that file. In case you don't know, it is suppose to be theme, not themes. This means it is an error in the Dolphin 7.0.9 distribution and will need to be fixed. In Dolphin 7.1 they moved the TinyMCE init out of BxBaseConfig.php so I have no idea if the error is in 7.1 or not.
I have submitted a ticket for this error.
Geeks, making the world a better place |
i hate that toolbar anyway.. i wish they'd just use the little one that is in the profile section for everything.. |
No, just saw the wrong toolbar load in again. What in causing this? It is Dolphin? I may have to leave Dolphin behind if I can not fix this. Geeks, making the world a better place |
I have a test site to try and fix this. On the test site there are no modules loaded, NO MODULES. I am seeing this error there as well. I saw it with the original BxBaseConfig.php file as well as my updated one. So folks that knows how this works, what is causing it? Surely the developers may have some clue here, they know Dolphin inside out, I know almost nothing about Dolphin. Geeks, making the world a better place |
So are you saying the "themes" to "theme" change is not the answer? I see lots of instances of "theme :" and "themes :" so are they both correct... possibly under unique situations? http://pkforum.dolphinhelp.com |
I have been chasing this bug for a long time without any answers. I may have found the problem with the help of the TinyMCE people on their forum.
< type="text/javascript"> tinyMCE_GZ.init({ themes : "advanced", plugins: "emotions",
Look at the text in red above. See anything wrong with it? I had looked over the BxBaseConfig.php file and never noticed this error. It is in every one of the TinyMCE init in that file. In case you don't know, it is suppose to be theme, not themes. This means it is an error in the Dolphin 7.0.9 distribution and will need to be fixed. In Dolphin 7.1 they moved the TinyMCE init out of BxBaseConfig.php so I have no idea if the error is in 7.1 or not.
I have submitted a ticket for this error.
From what I've found in D 7.0.9, if it's tinyMCE_GZ.init() then it's plural, i.e. "themes" While if the function name is simply tinyMCE.init() then it should be singular, i.e. "theme" ... so the above example you gave should be plural... "themes"
http://pkforum.dolphinhelp.com |
geek_girl... I was having a problem with the tinyMCE editor not working in the Orca Forums module after moving the site to a faster server (one of two bugs that seem to have appeared out of thin air). During testing I found that the Forum's tinyMCE Editor was working in IE9 but not in the latest versions of Chrome and Firefox. I could see that IE9 had an extra button and when I removed it (iespell) everything started working correctly in all three browsers. I have no idea why this bug suddenly appeared... iespell is supposed to be a cross-browser tool. Maybe something similar is happening in your case with Firefox. http://pkforum.dolphinhelp.com |
Well now, don't I look like an idiot. I had an Administrator tell me that it was wrong. Now I look like a fool. I search the documentation since the admin over at TinyMCE fed me a load of horse manure. Of course I should have checked the documentation first. Will someone give me a couple of swift kicks in the seat of my trousers?
OK, I don't see a code button so I could paste in the code so I removed the script tags so it would just paste as text.
tinyMCE_GZ.init({ <!-- user-defined plugins and themes should be identical to those in "tinyMCE.init" below.--> plugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,'+ 'searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras', themes : 'simple,advanced', languages : 'en', disk_cache : true, debug : false });
<!-- Needs to be seperate script tags! -->
tinyMCE.init({ <!-- user-defined plugins and themes should be identical to those in "tinyMCE_GZ.init" above i.e.--> plugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,'+ 'searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras', themes : 'simple,advanced',
.. now add your normal init, which will not be added to the tinyMCE_GZ.init above .. });
Note the parts in red. Maybe that is the problem, look at what I posted originally, the plugin list doesn't match. Maybe in 3.3.94 it did not trigger this problem I am having.
Now excuse me while I wipe the egg off of my face because of that jack-arse over at TinyMCE.
Geeks, making the world a better place |
I have conducted some tests using a more scientific approach instead of dancing all over the place. It appears from my tests that this is a bug in 7.0.9.
Please see my new topic on this issue at http://www.boonex.com/forums/#topic/TinyMCE-Loads-Wrong-Toolbar-Part-2.htm
Geeks, making the world a better place |