Opened 7 years ago

Closed 7 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 = "&lt;p&gt;" _

& "&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&lt;span&gt;BLUE Text&lt;=Button Click and Look at this line!!!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;" _ & "&lt;span&gt;BLACK Text&lt;/span&gt;&lt;br /&gt;" _ & "&lt;font color=&quot;#00ff00&quot;&gt;GREEN Text&lt;br /&gt;"

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"> &lt;p&gt;

&lt;span style=&quot;color: rgb(0, 0, 255);&quot;&gt;&lt;span&gt;BLUE Text&lt;=Button Click and Look at this line!!!&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;span&gt;BLACK Text&lt;/span&gt;&lt;br /&gt; &lt;font color=&quot;#00ff00&quot;&gt;GREEN Text&lt;br /&gt;

</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)

EditorTest.zip (1.1 MB) - added by JungHwan 7 years ago.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by JungHwan

Attachment: EditorTest.zip added

comment:1 Changed 7 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

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=&quot;color: rgb(0, 0, 255);&quot; to style="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.

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy