Formatting in editor doesn't match formatting displayed on page

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.
7/11/2005 5:43:58 PM
Gravatar
Total Posts 148

Formatting in editor doesn't match formatting displayed on page

To repro:

1. Edit the content of an HTML Content module.
2. In the editor, select some text and then select, for example, "Title H3" from the Style drop-down. The text is diplayed as bold black in the editor.
3. Update and view the content outside the editor.  The text is now non-bold and dark-red.

Problem is that the site's stylesheet is not used as the stylesheet by FCKEditor's editor area.  I think the fix is to change Web/*Edit.aspx.cs to set fckInstance.Config["EditorAreaCSS"] to the URL for site stylesheet.  Sorry I can't provide a detailed patch.  It's not immediately clear to me how to determine the URL for the site stylesheet, and since I can't build mojoportal on Linux at the moment, I can't really test any proposed code changes.

BTW, it doesn't look like FCKEditor provides a way to associate multiple stylesheets to the editor area, so you might need to add the contents of fck_editorarea.css to the included stylesheets (eg mojo1.css).

--Dean

7/12/2005 2:24:29 AM
Gravatar
Total Posts 18439

Re: Formatting in editor doesn't match formatting displayed on page

I'll look into it, also the final version of FCKeditor 2.0 is due for release on 7/15/2005 so I plan to upgrade when that comes out. Currently we have  RC1.
7/16/2005 6:39:17 AM
Gravatar
Total Posts 18439

Re: Formatting in editor doesn't match formatting displayed on page

Your suggested fix does seem to work. I've committed it to svn.

I've been naming the stylesheet that corresponds to skin to match the skin name like
skin mojo1.ascx
style mojo1.css

and now this will be required so that the correct stylesheet name can be determined at runtime since it it not stored in the db or anywhere else.

I don't see that as a problem but noting it here since it was just a convention before and now it is a requirement.

The release of the new FCKeditor has been delayed till 7/18/2005 so I won't be able to work on that this weekend as I had planned.
You must sign in to post in the forums. This thread is closed to new posts.