Opened 13 years ago
Closed 13 years ago
#8833 closed Bug (invalid)
Font Color is dropped!!!
Reported by: | JungHwan | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Server : ASP.Net | Version: | 3.6.2 |
Keywords: | Cc: |
Description
problem is the font color is not showing up when I call it from the database. So i made a asp.net page.
The text of editor is same with the text of textbox. but, when you click a button, you will find changed color of first line. you will find changed color of first line in editor.
do you understand? oh my bad english... ;
================================================================
<%@ Page Language="vb" AutoEventWireup="false" %> <script language="vb" runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
TextBox1.Text = "<p>" _
& "<span style="color: rgb(0, 0, 255);"><span>BLUE Text<=Button Click and Look at this line!!!</span></span><br />" _ & "<span>BLACK Text</span><br />" _ & "<font color="#00ff00">GREEN Text<br />"
End Sub
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
CKEditor1.Text = TextBox1.Text
End Sub
</script> <%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">
<title></title>
</head> <body>
<form id="form1" runat="server"> <div>
<CKEditor:CKEditorControl ID="CKEditor1" runat="server" Height="200"> <p>
<span style="color: rgb(0, 0, 255);"><span>BLUE Text<=Button Click and Look at this line!!!</span></span><br /> <span>BLACK Text</span><br /> <font color="#00ff00">GREEN Text<br />
</CKEditor:CKEditorControl>
</div> <asp:TextBox ID="TextBox1" runat="server" Width="862px"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Button" /> </form>
</body> </html>
Attachments (1)
Change History (2)
Changed 13 years ago by
Attachment: | EditorTest.zip added |
---|
comment:1 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Your sample didn't allow for any modification in input field. I'm talking about it because this may have more to do with what you want to insert than with any bug in CKEditor.
IMO you try to insert invalid code which CKEditor removes. Have you tried changing / experimenting with color value E.g.
style="color: rgb(0, 0, 255);"
tostyle="color: rgb(0, 0, 255);"
?I'm closing the issue for now as invalid. If you are not able to find solution by changing the markup you insert could you please provide a sample that allows to insert anything that was entered in input filed? I will test it and reopen issue if I’m not able to find solution.