Ticket #1605: TC_1605.html

File TC_1605.html, 1.1 KB (added by Wojciech Olchawa, 16 years ago)

A minimum sample page to reproduce the bug.

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
4
5<head>
6<title>Ticket #1605</title>
7<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
8<script type="text/javascript">
9<!--
10function InsertText()
11 {
12    var htmltext = "This is <b>some  <span style=\" color: maroon; \" >HTML</span></b> text with colors formatted." ;
13          var obFCK =   FCKeditorAPI.GetInstance('TXT');
14    obFCK.InsertHtml(htmltext);
15 }
16
17function InitPage()
18{
19     
20 
21       var oFCKeditor = new FCKeditor( 'TXT' ) ;
22       oFCKeditor.BasePath      = "fckeditor/" ;
23       oFCKeditor.Height        = 340 ;
24       oFCKeditor.Width = 600 ;
25       oFCKeditor.ReplaceTextarea();
26 
27}
28
29// -->
30</script>
31</head>
32<body onload="InitPage()">
33<form>
34<textarea name="TXT" id="TXT">Hello, I am Mister X ... </textarea><br>
35<button type="button" name="InserHTML" onclick="InsertText()" >Insert HTML</button><br>
36Steps to reproduce:<br>
371. Press InsertHTML<br>
382. Switch to Source View<br>
393. Switch to WYSIWYG view again
40</form>
41</body>
42</html>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy