CKEditor's options

Answered
0
0

Dear Team,

 

The CKEditor’s options could not be picked up from the resources:

this.txtEditor.Location = new System.Drawing.Point(25, 27);
this.txtEditor.Name = “txtEditor”;
this.txtEditor.Options = resources.GetString(“txtEditor.Options”);   // not good
this.txtEditor.Size = new System.Drawing.Size(547, 659);
this.txtEditor.TabIndex = 0;
this.txtEditor.Text = “ckEditor1”;

I could make it work, once manually edited the .Designer file and replaced with DynamicObject.

this.txtEditor.Location = new System.Drawing.Point(25, 27);
this.txtEditor.Name = “txtEditor”;
this.txtEditor.Options = ((Wisej.Core.DynamicObject)(Wisej.Core.WisejSerializer.Parse(“{\”toolbar\”:[[\”Bold\”,\”Italic\”,\”Image\”,\”Smiley\”,\”Styles\”,\”Format\”,\”Font\”,\”FontSize\”]],\”allowedContent\”:true}”)));
this.txtEditor.Size = new System.Drawing.Size(548, 659);
this.txtEditor.TabIndex = 0;
this.txtEditor.Text = “ckEditor1”;

 

The control properties in VS designer are behaving same in both cases, so there is no apparent reason why it was not working in the first case.

I guess I need to swiych manually from resources to DynamicObject, each time I place a new control in a from.

 

Regards,

Kizaemon

  • You must to post comments
Best Answer
0
0

Hi Kizaemon,

Which version of Wisej do you use?

Best,

Kevin (ITG)

  • You must to post comments
0
0

Thank you, I’m using V 2.5.12.

It seems to be working well now, the resource is wrapped into dynamic option.

this.ckEditor1.Options = ((Wisej.Core.DynamicObject)(Wisej.Core.WisejSerializer.Parse(resources.GetString(“ckEditor1.Options”))));

Perhaps I triggered the problem by migrating from some previous versions.

 

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.