WYSIWYG Not working - Only get html source code in editor

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
1/27/2012 6:18:44 PM
Gravatar
Total Posts 36

WYSIWYG Not working - Only get html source code in editor

WIN7 64

mojoPortal Version 2.3.8.1 MSSQL

Operating System Microsoft Windows NT 6.0.6002 Service Pack 2

ASP.NET Info v4.0.30319 Running in Full Trust /Classic mode

When I try to edit content on the default home page with CKEditor all I get is raw html.  The wysiwyg editors do not work.  CK is selected in the site setting, and wysiwyg is enabled on the page settings.  I have no problems with previous versions of Mojoportal.  I have attached a link to a screen capture below that shows the issue:

http://i298.photobucket.com/albums/mm242/7seastrdr/Errors/MOjoEditorFailure.jpg

 

Any suggestions would be appreciated.

1/27/2012 8:02:53 PM
Gravatar
Total Posts 36

Re: WYSIWYG Not working - Only get html source code in editor

Some additional info:  In the currentlog.config I get the following entries after opening up the editor:

2012-01-28 01:56:02,863 INFO (null) - (null) - (null) - mojoPortal.Web.WebTaskManager - deserialized WebTaskManager task
2012-01-28 01:56:02,879 INFO 89.100.208.39 - en-US - /HtmlEdit.aspx?mid=0&pageid=1 - mojoPortal.Web.WebTaskManager - Queued WebTaskManager on a new thread
2012-01-28 01:56:02,973 INFO (null) - (null) - (null) - mojoPortal.Business.WebHelpers.IndexWriterTask - deserialized IndexWriterTask task
2012-01-28 01:56:02,988 INFO (null) - (null) - (null) - mojoPortal.Business.WebHelpers.IndexWriterTask - Queued IndexWriterTask on a new thread

 

1/27/2012 10:43:10 PM
Gravatar
Total Posts 36

Re: WYSIWYG Not working - Only get html source code in editor

I do not understand why we cannot edit our previous posts after a certain amount of time. 

Anyways, I also noticed that none of the help or admin setting icons are not rendering.   All I see is the word help and the actual titles of the admin settings panels, but none of the widget icons.  In fact, it looks like most of the images are not rendering.

I am running a previous MJPortal  version 2.3.7.0 MSSQL  in a separate web-space without any problems of the current MJP version.  Problem exist in current IE and FF browsers and legacy IE and FF browsers running on XP SP3.

1/28/2012 6:13:01 AM
Gravatar
Total Posts 18439

Re: WYSIWYG Not working - Only get html source code in editor

 

1. Did you deploy an official release package or a build you made yourself from source code?

2. Did you use the Web.config fille that shipped in the package or try to keep your old one?

3. Have you tried the IE dev tools (F12) or Firebug to look for script errors or script files that did not load on the network tab?

4. Are you sure there were no errors during upload, ie are you sure all of the /ClientScript files made it and that they have at least read permissions for the user that is the identity on the app pool?

5. Why Classic mode?

6. Was this an upgrade or a new installation, if upgrade what version did you upgrade from? Have read about important skin changes?

1/28/2012 11:09:03 AM
Gravatar
Total Posts 36

Re: WYSIWYG Not working - Only get html source code in editor

Joe thanks for the quick response.  I have answered your questions below:

1. Did you deploy an official release package or a build you made yourself from source code?

Yes, I downloaded the net4 mssql version from codeplex or whichever one that the link points to.


2. Did you use the Web.config fille that shipped in the package or try to keep your old one?

I renamed the full trust version to web.config and used that one.  You can download a copy, with the new machine code removed, here: 

http://www.4shared.com/file/src0dpGG/Web_-_Copy__2_.html


3. Have you tried the IE dev tools (F12) or Firebug to look for script errors or script files that did not load on the network tab?

Nice tool.  I am getting lots of 500 internal server errors on Firebug:  I have created a pdf from the screen capture of the console and NET errors at the link below:

http://www.4shared.com/office/cHL-fYcr/FBErrors.html

 

4. Are you sure there were no errors during upload, ie are you sure all of the /ClientScript files made it and that they have at least read permissions for the user that is the identity on the app pool?

Everthing seems good, permissions are OK on the data, appdata, and clientScript and child directories.

Welcome to mojoPortal Setup
Probing system...
File system permissions ok.
MSSQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema is up to date.
1 site(s) found.
Configuring feature Html Content - 00:00:00.1093764
Configuring feature Site Statistics - 00:00:00.4062552
Configuring feature Child Page Site Map - 00:00:00.4843812
Configuring feature Newsletter Sign Up Form - 00:00:00.4843812
Configuring feature Sign In Module - 00:00:00.6250080
Configuring feature Bing Map - 00:00:00.6406332
Configuring feature Blog - 00:00:00.7656348
Configuring feature Contact Form - 00:00:01.1093892
Configuring feature Event Calendar - 00:00:01.2187656
Configuring feature Feed Manager - 00:00:01.3281420
Configuring feature Flickr Slide Show - 00:00:01.6562712
Configuring feature Flickr Gallery - 00:00:01.7343972
Configuring feature Image Gallery (Simple Folder Version) - 00:00:01.7968980
Configuring feature Forums - 00:00:01.8593988
Configuring feature Google Map - 00:00:02.0000256
Configuring feature Google Translate - 00:00:02.1562776
Configuring feature Html Fragment Include - 00:00:02.1875280
Configuring feature IFrame - 00:00:02.2031532
Configuring feature Image Gallery - 00:00:02.3281548
Configuring feature Audio Player - 00:00:02.5000320
Configuring feature Video Player - 00:00:02.5625328
Configuring feature List/Links - 00:00:02.6406588
Configuring feature Live Messenger Chat - 00:00:02.7656604
Configuring feature Poll - 00:00:02.8594116
Configuring feature Shared Files - 00:00:02.9062872
Configuring feature Survey - 00:00:03.0312888
Configuring feature Twitter Profile Widget - 00:00:03.0781644
Configuring feature Twitter Search Widget - 00:00:03.1719156
Configuring feature Web Store - 00:00:03.3125424
Configuring feature Xml/Xsl - 00:00:03.3750432
Ensuring all features are installed in server admin sites... - 00:00:03.4531692
Setup is complete, click the link below to go to the home page.
Site Home Page

Database PlatformMSSQL
Version2.3.8.1
StatusYour installation is up to date.


5. Why Classic mode?

See topic: https://www.mojoportal.com/Forums/Thread.aspx?thread=8942&mid=34&pageid=5&ItemID=3

Although this time I did try using integrated mode and the site came up, but I got an internal server error when I tried to log on, but the pages seemed to be working OK.


6. Was this an upgrade or a new installation, if upgrade what version did you upgrade from? Have read about important skin changes?

This was a completely new website on a different users hosting space, but with the same host provider as the older version of Mojo.  That version is running fine without problems.

 

1/29/2012 5:42:02 AM
Gravatar
Total Posts 18439

Re: WYSIWYG Not working - Only get html source code in editor

Hi,

Try completely removing the <staticContent> section from Web.config and see if that solves it.

Hope that helps,

Joe

1/29/2012 6:14:58 PM
Gravatar
Total Posts 36

Re: WYSIWYG Not working - Only get html source code in editor

Thanks Joe,  That seems to have done it!!!! Smile

I just commented the section starting from the <static Content> section tags, the lines were already commented out, and that did it.  You might want to consider updating the web.config files in the current deployment package to avoid a similar problem in the future. 

1/30/2012 8:18:28 AM
Gravatar
Total Posts 18439

Re: WYSIWYG Not working - Only get html source code in editor

Thanks, I've updated the 2.3.8.1 release by commenting out that section.

Best,

Joe

2/8/2012 5:28:21 AM
Gravatar
Total Posts 108
Community Expert

Re: WYSIWYG Not working - Only get html source code in editor

 Hi Joe I Have a similar problem with the ckeditor showing only a textbox,  I donwload the last source code from the repository and try the demo site with the same outcome.

This is the message that firebug show me

unterminated string literal
https://demo.mojoportal.com/
Line 29

unterminated string literal

(?)()demo.m...tal.com (línea 29)

...ange', function(e) {hookupGoodbyePrompt("Tiene cambios sin guardar, &#191;esta s...

demo.m...tal.com (línea 29, col 1331)

 

 

 

 

 

 

2/8/2012 7:47:33 AM
Gravatar
Total Posts 18439

Re: WYSIWYG Not working - Only get html source code in editor

Hi German,

This is now fixed in the source code repository, I will uppdate the demo site later today.

I think the root cause of the problem is that in Resources.es.resx the UnSavedChangesPrompt has a new line character in it that was causing problems when used in the javascript. I've added code to escape quotes and remove line breaks and this seems to have solved it, but you may want to remove that new line from the .resx file since you are a translator for Spanish.

So this problem seems to have only happened when using Spanish which is why I did not see it before.

Best,

Joe

2/8/2012 8:42:20 AM
Gravatar
Total Posts 18439

Re: WYSIWYG Not working - Only get html source code in editor

Hi German,

I can confirm that just removing the new line in the .resx file was sufficient to solve it on the demo site. I edited it with a text editor.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.