We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG TinyMCE sometimes not working

Development and Programming

Nirada's avatar
Nirada
24 posts
17 years ago
Nirada's avatar Nirada

No problem, LynneL, glad to have helped! I can’t really take the credit for the fix, though.. I blindly tried it along with another ten or so other suggestions following a mad Google search when the problem first appeared. I don’t know how or why it works, just that it does.

I’d venture a guess, though, and say that it’s probably something to do with Safari and FF3 implementing JavaScript in a stricter way, and requiring variables to be defined in advance, or something. If anyone knows, please share!

Oh, and about the cookie… I’d better pass on that. I’m in Bangkok, Thailand where pretty much any type of confectionery sent via the postal service will be infested with ants and other creepy-crawlies by the time it gets to me. :down:

       
Angie Herrera's avatar
Angie Herrera
357 posts
17 years ago
Angie Herrera's avatar Angie Herrera

This is happening with our install of LG TinyMCE too, but we’re not using iBrowser for this project - we’re using Moxiecode’s ImageManager. I was trying to find some sort of pattern for when TinyMCE shows up and when it doesn’t. Of course, right when I thought I found one, something came along and threw it out the window.

What I DO know is that this only occurs in Safari. The good news is that if TinyMCE doesn’t load, hitting refresh brings it back.

Not sure if there’s a fix, just thought I’d share. 😊

       
LynneL's avatar
LynneL
239 posts
17 years ago
LynneL's avatar LynneL

I JUST got some support from the MC developer and I will share what I learned. Maybe this will help you too!!!! Because his advice fixed me all up with an install of TinyMCE and Imagemanager, and it might help with ibrowser too. (funny you should post about this right now, I JUST finished testing ImageManager and getting it all working great now).

OK, ready for this insane fix? So in the settings for the extension, make sure that the path to the script is http://www.yourdomain.com/path NOT http://yourdomain.com/path. The developer said this:

“The MCImageManager currently doesn’t support domain relaxing. You are loading the tinymce script from: http://domain.org/scripts/tinymce/jscripts/tiny_mce/tiny_mce.js

“But the admin UI is at: http://www.domain.org/

So it thinks it’s a cross domain call therefore the insert will fail due to browser security reasons.”

I added www. to my script path, it works now, imagemanager is very nicely playing with Tiny, Tiny shows up fine, etc.

Hope this helps people!!! Because I’ve been dealing with Tiny/ibrowser/imagemanager crap for weeks now, and though I am a little chagrined that it’s such a simple fix, I am also soooo relieved!!!

       
LynneL's avatar
LynneL
239 posts
17 years ago
LynneL's avatar LynneL

And client is saying all fixed on his Mac too. Yay!

FTY (edit: FYI) when I fixed the path, it broke the content_css setting until I fixed that path too, putting a www. on it. Must have also had an issue with cross-domain calling.

content_css : 'http://www.domain.org/index.php?css=site/style_select/',
       
Angie Herrera's avatar
Angie Herrera
357 posts
17 years ago
Angie Herrera's avatar Angie Herrera

Sweet! Thanks for that!

       
LynneL's avatar
LynneL
239 posts
17 years ago
LynneL's avatar LynneL

FYI when I go to my EE install via the non-www version in my browser, it breaks.

1) inform clients they MUST view the website admin pages by way of the www.domain.com url. or 2) the developer suggests this:

hard code a document.domain into the imagemanager/page/im/index.html. Like this, add this to the top of index.html file: [script] document.document = ‘haitihealth.org’; [/script]

I have to figure out if there’s a way to access/insert that script into the <head> of the admin pages without hacking into the code, though.

ack the forum won’t allow JS into it - makes sense I guess. it’s:

document.document = 'domain.org';

between the script tags for JS.

       
uvmlearn's avatar
uvmlearn
6 posts
17 years ago
uvmlearn's avatar uvmlearn

Wow .. So many thanks LynneL for your response to my other thread on this.

So many thanks.

Have I thanked you enough?

😊

       
LynneL's avatar
LynneL
239 posts
17 years ago
LynneL's avatar LynneL

Trust me, I felt the same way when the developer sent me that info. I was figuratively dancing on the keyboard with joy and happiness. He probably thought I was insane, LOL.

       
Angie Herrera's avatar
Angie Herrera
357 posts
17 years ago
Angie Herrera's avatar Angie Herrera
inform clients they MUST view the website admin pages by way of the www.domain.com url.

Seems like that could be taken care of with some .htaccess magic…

       
LynneL's avatar
LynneL
239 posts
17 years ago
LynneL's avatar LynneL

OK yeah, point taken! Of course, never had a use for that before, myself, so I had to look it up, but once I found the requisite syntax, it worked like a charm. Thanks!

       
Emily Heath's avatar
Emily Heath
197 posts
17 years ago
Emily Heath's avatar Emily Heath

I just had a problem with LG TinyMCE which started to not work all of a sudden. But this problem seems to have gone away now. I log it here in case anyone else experiences it and feels despair! I am using Firefox 3.0.1 on a Mac 10.5.4 I am working on developing a site and was adding some test posts and then the LG TinyMCE WYSIWYG textarea stopped saving the text I entered into it. So when I hit save it emptied the field of content (the text wasn’t saved on submit). I tested on Safari and it was working so I just quit and restarted Firefox and it is now working again.

(Oh if only it was that easy, I actually wasted a couple hours changing all sorts of other settings first trying to fix it before thinking of the old ‘turn it off and on again’ trick. will we ever learn?!!)

       
Luke Hardiman's avatar
Luke Hardiman
109 posts
16 years ago
Luke Hardiman's avatar Luke Hardiman

Ok, providing my client with a way to upload pics from their local machine was driving me nuts, particularly as I don’t have budget to buy an add-on. Then after much messing about with different solutions I found this:

http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=42477

which is both simple and free - my two main criteria.

The only slightly hacky thing you will have to do is edit the ext.tiny_mce.php file around line 40 and add this to call the script:

script type="text/javascript" src="/path/to/tinyupload.js" /script

Make sure this script tag precedes this one:

script type="text/javascript" src="'.trim($this->settings['script_url']).'" /script
  • I removed my angle brackets above as I couldn’t find another way to get html into my post.
       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.