Ticket #1888 (closed Bug: invalid)

Opened 8 months ago

Last modified 8 months ago

Error using ReplaceTextarea with IE7/Vista

Reported by: Florent Owned by:
Priority: Normal Milestone:
Component: General Version: FCKeditor 2.5.1
Keywords: Pending WorksForMe Cc:

Description

Page fail to load with IE7/Vista, when an editor.ReplaceTextarea function is called. Works fine with IE6/7 running under XP, or others browsers/OS.

I tried html/sample02.html (latest stable and nightly build), and it also bugs with IE7/Vista.

Javascript editor hosted on a Ruby on Rails application.

Here is the only code used to create the editor :

var mc_editor = new FCKeditor('mc_desc', 700, 300, 'Basic');
mc_editor.ReplaceTextarea();

Change History

Changed 8 months ago by Florent

Little correction : this bug also occured with IE7/XP using latest stable release (2.5.1).

Changed 8 months ago by w.olchawa

  • keywords Pending WorksForMe added; bug IE7 Vista ReplaceTextarea removed
  • priority changed from High to Normal

Hi!

I've review your problem and everything seems to work for me both in the stable version 2.5.1 and in the newest nightl build. Tested of course in IE7/Vista. It seems to me that you have forgot to set the editors BasePath. Try to use this code in your page or test it on sample2.html and let us know about the results.

var mc_editor = new FCKeditor('mc_desc', 700, 300, 'Basic');
mc_editor.BasePath	= sBasePath ;
mc_editor.ReplaceTextarea();

Thanks!

Changed 8 months ago by Florent

Hello,

My BasePath was set in fckeditor.js. I tried the "regular way", it still bugged.

I found out the mistake: my code looked like

<textarea></textarea>
<script>editor stuff</script>

thinking that the js would execute after textarea rendered, and only IE7/Vista did not work. So back to the right way, and a window.onload function corrects everything.

Thanks for help, and sorry for the imaginary bug. :)

Changed 8 months ago by w.olchawa

  • status changed from new to closed
  • resolution set to invalid

No problem. If you have any problems in implementing FCKeditor you you page you can always check our documentation site at:

http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide

Enjoy working with FCKeditor.

Note: See TracTickets for help on using tickets.