#11870 closed Bug (invalid)
CKEditor 4.3.4 and ASP.NET 3.6.4
Reported by: | ido | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Server : ASP.Net | Version: | |
Keywords: | Cc: |
Description
Following https://dev.ckeditor.com/ticket/11847#no3, I would like to ask a question:
in ver 3.6.4 i config the control in run time like this: public static void SetupCKEditor(CKEditor.NET.CKEditorControl c) {
sb = new System.Text.StringBuilder("["); for (int i = 100; i <= 200; i += 10)
sb.AppendFormat("{{name:'line-height: {0}%', element:'p', styles:{{'line-height':'{0}%'}}}},", i);
sb.AppendFormat("]"); c.StylesSet = sb.ToString();
}
and it's work just fine !
when i update the client side to v4.3.4 (i delete the hole 'ckeditor' dictionary i copy the new one) i got this javascript error in win xp and IE8 (in other OS or browser no):
Message: 'name' is null or not an object Line: 927 Char: 600 Code: 0 URI: http://bci1.or-bit.net/demo9/ckeditor/ckeditor.js?t=C6HH5UF
Change History (3)
comment:1 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.3.4 |
comment:2 Changed 11 years ago by
The resson was ',' letter in the end of the StylesSet custom string.
i remove the last ',' letter and it's work fine.
Sorry to hear that, but the method described in #11847 is just a workaround, so there's no official support for it. It works for many people, but in your case apparently something doesn't work. We cannot accept a ticket for this setup, so I'm closing it.
The official ASP.NET library for CKEditor 4.x is on our TODO list, but we don't have enough resources to implement it at the moment. Since the workaround does not work for you, you may try to include CKEditor 4.x in a simpler, more "raw" way. I'm sure that there's some for ASP.NET.