Needs review
Project:
TinyBrowser
Version:
6.x-1.0-beta1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 May 2010 at 21:08 UTC
Updated:
2 Oct 2010 at 13:57 UTC
OK so I just installed WYSIWYG module along with the TinyMCE library and finally the TinyBrowser module. I have followed all the installation instructions for this combination by going to the admin panel and activating the plugin for TinyBrowser but keep getting an 'r is undefined' error from Firefox. I have viewed source of my HTML page to make sure the proper Drupal.settings are being set and sure enough they look good:
I am using Wysiwyg 6.x-2.1 and TinyMCE 3.3.5.1. Any ideas?
Comments
Comment #1
kcolbe commentedHere is a copy of my Drupal.settings output:
jQuery.extend(Drupal.settings, { "ahah": { "edit-attach": { "url": "/rho-dev/upload/js", "event": "mousedown", "keypress": true, "wrapper": "attach-wrapper", "selector": "#edit-attach", "effect": "none", "method": "replace", "progress": { "type": "bar", "message": "Please wait..." }, "button": { "attach": "Attach" } } }, "wysiwyg": { "configs": { "tinymce": { "global": { "editorBasePath": "/rho-dev/sites/all/libraries/tinymce/jscripts/tiny_mce", "execMode": "" }, "format1": { "button_tile_map": true, "document_base_url": "/rho-dev/", "mode": "none", "plugins": "", "theme": "advanced", "width": "100%", "strict_loading_mode": true, "convert_urls": false, "entities": "160,nbsp,173,shy,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm", "theme_advanced_resize_horizontal": false, "theme_advanced_resizing_use_cookie": false, "theme_advanced_path_location": "bottom", "theme_advanced_resizing": 1, "theme_advanced_toolbar_location": "top", "theme_advanced_toolbar_align": "left" }, "format2": { "button_tile_map": true, "document_base_url": "/rho-dev/", "mode": "none", "plugins": "paste,table", "theme": "advanced", "width": "100%", "strict_loading_mode": true, "convert_urls": false, "entities": "160,nbsp,173,shy,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm", "apply_source_formatting": 0, "convert_fonts_to_spans": 0, "language": "en", "paste_auto_cleanup_on_paste": 0, "preformatted": 0, "remove_linebreaks": 1, "verify_html": 1, "content_css": "/rho-dev/sites/all/themes/rho/css/global.css", "extended_valid_elements": "font[face|size|color|style],span[class|align|style]", "file_browser_callback": "tinyBrowser", "inline_styles": true, "theme_advanced_resize_horizontal": false, "theme_advanced_resizing_use_cookie": false, "theme_advanced_path_location": "bottom", "theme_advanced_resizing": 1, "theme_advanced_toolbar_location": "top", "theme_advanced_toolbar_align": "left", "theme_advanced_blockformats": "p,address,pre,h2,h3,h4,h5,h6,div", "theme_advanced_buttons1": "bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,outdent,indent,undo,redo,link,unlink,image,forecolor,backcolor,sup,sub,blockquote,code,hr,cut,copy,paste,fontselect,fontsizeselect,styleselect,pastetext,tablecontrols", "theme_advanced_buttons2": "", "theme_advanced_buttons3": "" }, "format3": { "button_tile_map": true, "document_base_url": "/rho-dev/", "mode": "none", "plugins": "", "theme": "advanced", "width": "100%", "strict_loading_mode": true, "convert_urls": false, "entities": "160,nbsp,173,shy,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm", "theme_advanced_resize_horizontal": false, "theme_advanced_resizing_use_cookie": false, "theme_advanced_path_location": "bottom", "theme_advanced_resizing": 1, "theme_advanced_toolbar_location": "top", "theme_advanced_toolbar_align": "left" } } }, "disable": "Disable rich-text", "enable": "Enable rich-text", "plugins": { "format1": { "native": [ ], "drupal": [ ] }, "format2": { "native": [ ], "drupal": [ ] }, "format3": { "native": [ ], "drupal": [ ] } } }, "tableDrag": { "upload-attachments": { "upload-weight": [ { "target": "upload-weight", "source": "upload-weight", "relationship": "sibling", "action": "order", "hidden": true, "limit": 0 } ] } } });
Comment #2
pixture commentedWhat was the exact messages? Didn't it comes with line number and source file name where 'r is undefined' error occured?
In addition, have you visited the troubleshooting page and followed the check lists? if not, please do so.
TinyBrowser Troubleshooting page
http://www.pixture.com/drupal/tinybrowser/troubleshooting
It could be the TinyMCE version issue. We have been using TinyMCE 3.2.x. Can you try 3.2.x version to see if it works?
Comment #3
kzlamany commentedI have the same problem like kcolbe but I'm tring to use ajaxfilemanager. I'm using TinyMCE 3.3.7 and
WYSWIG 6.x-2.1 (and a lot other modules) .
Error message in Firefox console:
"Error: r is undefined
Source file: http://localhost/sites/all/libraries/tinymce/jscripts/tiny_mce/tiny_mce....
Line: 1"
My Drupal.settings output:
"file_browser_callback": "ajaxfilemanager", "width": "100%", "strict_loading_mode": true, "convert_urls": false, "entities": "160,nbsp,173,shy,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm", "apply_source_formatting": 0, "convert_fonts_to_spans": 1, "language": "en", "paste_auto_cleanup_on_paste": 0, "preformatted": 0, "remove_linebreaks": 1, "verify_html": 1, "content_css": "/themes/garland/style.css", "extended_valid_elements": "font[face|size|color|style],span[class|align|style]", "theme_advanced_resize_horizontal": false, "theme_advanced_resizing_use_cookie": false, "theme_advanced_path_location": "bottom", "theme_advanced_resizing": 1, "theme_advanced_toolbar_location": "top", "theme_advanced_toolbar_align": "left", "theme_advanced_blockformats": "p,address,pre,h2,h3,h4,h5,h6,div", "theme_advanced_buttons1": "bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,outdent,indent,undo,redo,link,unlink,anchor,image,cleanup,forecolor,backcolor,sup,sub,blockquote,code,hr,cut,copy,paste,visualaid,removeformat,charmap,help,fontselect,fontsizeselect,styleselect", "theme_advanced_buttons2": "", "theme_advanced_buttons3": "" }, "format2": { "button_tile_map": true, "document_base_url": "/", "mode": "none", "plugins": "", "theme": "advanced", "file_browser_callback": "ajaxfilemanager", "width": "100%", "strict_loading_mode": true, "convert_urls": false, "entities": "160,nbsp,173,shy,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm", "apply_source_formatting": 0, "convert_fonts_to_spans": 1, "language": "en", "paste_auto_cleanup_on_paste": 0, "preformatted": 0, "remove_linebreaks": 1, "verify_html": 1, "content_css": "/themes/garland/style.css", "extended_valid_elements": "font[face|size|color|style],span[class|align|style]", "theme_advanced_resize_horizontal": false, "theme_advanced_resizing_use_cookie": false, "theme_advanced_path_location": "bottom", "theme_advanced_resizing": 1, "theme_advanced_toolbar_location": "top", "theme_advanced_toolbar_align": "left", "theme_advanced_blockformats": "p,address,pre,h2,h3,h4,h5,h6,div", "theme_advanced_buttons1": "bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,outdent,indent,undo,redo,link,unlink,anchor,image,cleanup,forecolor,backcolor,sup,sub,blockquote,code,hr,cut,copy,paste,visualaid,removeformat,charmap,help,fontselect,fontsizeselect,styleselect", "theme_advanced_buttons2": "", "theme_advanced_buttons3": "" } } }, "disable": "Disable rich-text", "enable": "Enable rich-text", "plugins": { "format1": { "native": [ ], "drupal": [ ] }, "format2": { "native": [ ], "drupal": [ ] } } } });
//-->
I worked with TinyMCE without WYSWIG module and the solution for this error was to remove "" near ajaxfilemanager.
Comment #4
mkalbere commentedSame issue. With Tiny 3.3 & Tinybrowser 6.x-1.x-dev. WYSWIG 6.x-2.1.
Seems linked to tinybrowser, since I tried with imce (&bridge) . It works perfectly.
kzlamany: what do you mean by removing the "" ?
Comment #5
mkalbere commentedI found my problem. Calls to php file inside sites/all/modules were forbidden by my provider policy. So tinybrowser dinamycaly generated js (tinybrow......js.php) was not called & tinybrowser not initialized