Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Summary and Content WYSIWYG boxes not showing upan

 

 


peterachel
New User

Feb 3, 2010, 10:52 AM

Post #1 of 18 (19866 views)
Shortcut
Summary and Content WYSIWYG boxes not showing upan Can't Post

When trying to post a new article, Summary and Content WYSIWYG boxes not showing up using Article Manager 2 brand new installations - IE8, IE7 (the boxes show up on Firefox but do not support WYSIWYG). Is this a browser or server permissions issue? I'm trying to get to the bottom of this issue and get these installations working properly.


MikeB
Staff


Feb 3, 2010, 9:38 PM

Post #2 of 18 (19857 views)
Shortcut
Re: [peterachel] Summary and Content WYSIWYG boxes not showing upan [In reply to] Can't Post

Hi Peter,

I've looked at the few installation requests we've had from you recently and I can't see which site this is taking place on. Have you managed to resolve this since posting this?

If not, just let me know which site it was and I'll see if I can track down your install request. If not, I may need to grab login details for Article Manager from you so I can test this out myself.

I look forward to hearing from you Peter! Smile

Cheers,
Mike Briggs - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


BillG
User

Mar 6, 2010, 11:32 AM

Post #3 of 18 (19559 views)
Shortcut
Re: [MikeB] Summary and Content WYSIWYG boxes not showing upan [In reply to] Can't Post

I had this same problem - I had to cancel, then re-enter the article editing mode in order to get the WYSIWYG boxes to show up.

I had briefly looked at this earlier and this is a JavaScript race condition between scripts being loaded asynchronously.

The text box field calls the WYSIWYG editor, BUT the JavaScript script file for the WYSIWYG editor hasn't finished loading yet! So, the page is calling the function to load the WYSIWYG editor, but the function isn't completely loaded because the included JavaScript file with the function hasn't finished loading! It takes an advanced understanding of browser mechanics and the differences between the new JavaScript engines to debug this problem.

When the page is re-loaded, the JavaScript for the editor is usually in the browser cache so the WYSIWYG is finally displayed. But it's dependent upon the type and version of the browser, the browser's settings, and the speed of the server.

Firefox 3.5 is best behaved with this. IE and the latest Chrome are the worst.

There's a text page you can use to examine the behavior here:
http://www.websiteoptimization.com/speed/tweak/defer/test/

The page also tests the "defer" attribute. You can test a browser, reload it, then test again and see how the behavior changes.

I fixed this with a template mod to _wrapper.html, if IT will allow me to post the fix I'll be happy to share.


(This post was edited by BillG on Mar 6, 2010, 1:32 PM)


Donna
Staff / Moderator


Mar 10, 2010, 3:24 PM

Post #4 of 18 (19481 views)
Shortcut
Re: [BillG] Summary and Content WYSIWYG boxes not showing upan [In reply to] Can't Post

Hi Bill,

Sure, feel free to send over your fix. :)

Donna

--
support@interactivetools.com


BillG
User

Mar 12, 2010, 1:47 PM

Post #5 of 18 (19473 views)
Shortcut
Re: [Donna] Summary and Content WYSIWYG boxes not showing upan [In reply to] Can't Post

In the _wrapper.html Admin template, look for the line


Code
<script type="text/javascript" src="$_weburl$javascript/loadWysiwyg.js" language="JavaScript1.2" onerror="errorLoadingScript(this)"></script>


On the default _wrapper.html, it's at Line 89.

Delete that line, and instead insert it at Line 56 so you now see:


Code
 <head> 
<script type="text/javascript" src="$_weburl$javascript/loadWysiwyg.js" language="JavaScript1.2" onerror="errorLoadingScript(this)"></script>
<title>$settings.titlebar$</title>


This loads the WYSIWYG earlier, so when the function is called, it is (hopefully) always loaded.

This is NOT a good technical fix because it only works 90% of the time. I don't know enough about JavaScript to come up with a permanent fix. It is, after all, a race condition, and if someone at IT cares enough they can come up with a permanent fix.


mbittner
User

Mar 18, 2010, 8:41 AM

Post #6 of 18 (18921 views)
Shortcut
Re: [BillG] Summary and Content WYSIWYG boxes not showing upan [In reply to] Can't Post


In Reply To
In the _wrapper.html Admin template, look for the line


Code
 <script type="text/javascript" src="$_weburl$javascript/loadWysiwyg.js" language="JavaScript1.2" onerror="errorLoadingScript(this)"></script>


On the default _wrapper.html, it's at Line 89.

Delete that line, and instead insert it at Line 56 so you now see:


Code
  <head>  
<script type="text/javascript" src="$_weburl$javascript/loadWysiwyg.js" language="JavaScript1.2" onerror="errorLoadingScript(this)"></script>
<title>$settings.titlebar$</title>


This loads the WYSIWYG earlier, so when the function is called, it is (hopefully) always loaded.

This is NOT a good technical fix because it only works 90% of the time. I don't know enough about JavaScript to come up with a permanent fix. It is, after all, a race condition, and if someone at IT cares enough they can come up with a permanent fix.

<chuckle> Sure hope that's true, and IT can figure out a permanent fix. I've been battling this one for quite some time. I plan on applying your patch soon, and will keep my fingers crossed that it will all work out - somehow - in the end.


Matt Bittner
Software Engineer
Internet Modeler


BillG
User

Mar 18, 2010, 9:46 AM

Post #7 of 18 (18916 views)
Shortcut
_wrapper.html replacement [In reply to] Can't Post

Attached is my _wrapper.html (see below)

This goes in your
CGI-BIN/[artman]/templates/admin/menus

directory. Rename your present _wrapper.html to _wrapper.old before replacing it with this one!

It contains the WYSIWYG mod.

It also adds a JavaScript link at the upper-right to switch the present page between SSL and non-SSL.

I make no warranties yada yada, but I welcome any feedback or suggestions!
Attachments: _wrapper.html (7.66 KB)


Donna
Staff / Moderator


Mar 18, 2010, 3:23 PM

Post #8 of 18 (18910 views)
Shortcut
Re: [BillG] _wrapper.html replacement [In reply to] Can't Post

Oddly enough, I can't reproduce the problem at all in any browser, so this is a bit perplexing. I've passed it around to some of the programmers to take a look at and see if they can reproduce it. :)

Donna

--
support@interactivetools.com


BillG
User

Mar 19, 2010, 9:35 AM

Post #9 of 18 (18884 views)
Shortcut
Re: [Donna] _wrapper.html replacement [In reply to] Can't Post

Race conditions are a pain in the youknowwhat...

You can attempt reproducing the problem this way - on a FAST, DUAL-PROCESSOR computer:

1. Log into the AM main screen using IE8.
2. Clear the IE browser cache
3. Click Create Article

I'm a hardware guy so I think hardware, and a dual-processor computer (like an Intel Core Duo) might distribute the browser code asynchronously. The fact that my fix works most of the time proves that it is a JavaScript loading problem.


Donna
Staff / Moderator


Mar 22, 2010, 5:36 PM

Post #10 of 18 (18235 views)
Shortcut
Re: [BillG] _wrapper.html replacement [In reply to] Can't Post

Hey Bill (and others having this problem), just wanted to doublecheck -- are you using the TinyMCE patch for Article Manager, or the old default Innova editor?

Donna

--
support@interactivetools.com


BillG
User

Mar 22, 2010, 5:54 PM

Post #11 of 18 (18234 views)
Shortcut
Re: [Donna] _wrapper.html replacement [In reply to] Can't Post

The problem only surfaced when the TinyMCE editor was introduced.


Chris
Staff


Mar 23, 2010, 2:14 PM

Post #12 of 18 (18170 views)
Shortcut
Re: [BillG] _wrapper.html replacement [In reply to] Can't Post

Hello everyone,

Thanks for the bug reports!

I've been able to reproduce the problem and am researching it. I hope to be able to post a solution soon.
Chris


(This post was edited by chris on Mar 23, 2010, 2:15 PM)


Donna
Staff / Moderator


Mar 24, 2010, 11:30 AM

Post #13 of 18 (18128 views)
Shortcut
Re: [BillG] _wrapper.html replacement [In reply to] Can't Post

Hey folks! Check out the latest version of the TinyMCE editor:

http://www.interactivetools.com/forum/gforum.cgi?post=78777#78777

Chris updated it to the latest version which fixes the bug in TinyMCE. :)

Donna

--
support@interactivetools.com


BillG
User

Mar 24, 2010, 11:41 AM

Post #14 of 18 (18126 views)
Shortcut
Re: [Donna] _wrapper.html replacement [In reply to] Can't Post

Where is the changelog?


Donna
Staff / Moderator


Mar 24, 2010, 1:10 PM

Post #15 of 18 (18123 views)
Shortcut
Re: [BillG] _wrapper.html replacement [In reply to] Can't Post

Hi Bill,

Which changelog are you referring to? Since this is an optional patch, the Article Manager changelog won't be updated -- Article Manager is discontinued, no further changes to the software itself will be made.

Or did you mean the TinyMCE changelog? You can find that here:

http://tinymce.moxiecode.com/changelog.php

Donna

--
support@interactivetools.com


BillG
User

Mar 25, 2010, 11:17 AM

Post #16 of 18 (18060 views)
Shortcut
Re: [Donna] _wrapper.html replacement [In reply to] Can't Post

I've looked at the tinyMCE changelog and nothing there suggests that this WYSIWYG loading problem is addressed there.

Donna, in case you're not keeping up, every new "patch" from IT creates more problems than it seems to solve. As I've repeatedly stated, I'd like to know that the changes to AM are understood - because it's been repeatedly made clear here that IT hasn't understood past changes which is what created the present problems.

It would be extremely helpful if whoever modified the files and AM templates in the new patch bothered to write down what they changed. That certainly would have saved a lot of us the unnecessary time and anger at having to track down the new AM bugs that IT created but don't understand.

I'd like to know that someone really understands how this latest version solves this problem. Because honestly, I get the feeling that IT is just shoving this at us with the attitude of "hey, hope this fixes it". It's already been made clear here that IT doesn't understand tinyMCE.

In the new InteractiveTools lingo,
"unsupported" = "We don't understand how the f**k it works".

This isn't a hobby - some of us earn our primary income off websites using AM.


Dave
Staff / Moderator


Mar 25, 2010, 2:08 PM

Post #17 of 18 (18019 views)
Shortcut
Re: [BillG] _wrapper.html replacement [In reply to] Can't Post

Hi BillG,

I think a lot of this is off topic...

- We were able to recreate the problem locally and upgrading tinymce fixed it.
- We issued an updated patch with *only* the tinymce files updated (in /webroot/artman2/wysiwyg/)

If you want to see file differences use a free diff tool like http://winmerge.org/, it's very easy to do. I've attached the old and new patches so you verify what I've said.

Or if you want to upgrade tinymce yourself in future just:
- Download it from here: http://tinymce.moxiecode.com/download.php
- Unzip it and copy the files under: /tinymce/jscripts/tiny_mce
- To your artman under: /webroot/artman2/wysiwyg/

If you have problems after upgrading:
- Press the reload button and/or clear your browser cache

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com
 
Attachments: artman_2_16 patch1 - IE8 & tinymce 3.1.0.1.zip (261 KB)
  artman_2_16 patch2 - IE8 & tinymce 3.3.1.zip (477 KB)


Dave
Staff / Moderator


Mar 25, 2010, 4:05 PM

Post #18 of 18 (17974 views)
Shortcut
Re: [Dave] _wrapper.html replacement [In reply to] Can't Post

And, of course, if the problem persists after upgrading please let us know! :)

Dave Edis - Senior Developer
interactivetools.com