Opened 10 years ago

Closed 10 years ago

#1888 closed Bug (invalid)

Error using ReplaceTextarea with IE7/Vista

Reported by: Vaucelle 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 (4)

comment:1 Changed 10 years ago by Vaucelle

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

comment:2 Changed 10 years ago by Wojciech Olchawa

Keywords: Pending WorksForMe added; bug IE7 Vista ReplaceTextarea removed
Priority: HighNormal

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!

comment:3 Changed 10 years ago by Vaucelle

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. :)

comment:4 Changed 10 years ago by Wojciech Olchawa

Resolution: invalid
Status: newclosed

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.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy