Share session variables with ASPX page

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

Hello, our existing VWG app makes use of the CKEditor control.  It is hosted on an aspx page (CKEditor.aspx) and relies on several session variables for setting toolbars, etc.

Various forms and usercontrols throughout our application contain WebBrowser controls that display the CKEditor.aspx page, allowing users to interact with the CKEditor.

Those usercontrols each set session variables to be used by the CKEditor.aspx.  For example:
string ckEditorFontSizes = “4.0pt; 5.0pt; 6.0pt;”;
Application.Session[“CkEditorFontSizeSizes”] = ckEditorFontSizes;

Then, on the CKEditor.aspx page load:
CKEditorControl1.FontSizeSizes= (string)Session[“CkEditorFontSizeSizes”];

The problem is that Session[“CkEditorFullToolbar”] returns NULL on CKEditor.aspx page load.

Is there a way to share session data from WiseJ controls to ASPX pages?  Or, do you have another suggested way to use the CKEditor control?

Thanks,
Andrew

 

  • You must to post comments
0
0

Hi Andrew,

thanks for your feedback. Based on your questions we researched some more and found a way to add external plugins
to our CKEditor extension. It has been updated, so please download it again from our extension section.

Now you can add as many plugins as you like.

We tested with a youtube plugin that can be downloaded here: http://ckeditor.com/addon/youtube

Put it into your project under /ckeditor/plugins

Then you can set it up in the External plugins collection property as following:

Then you can add it to the Options property like this:

This way you already see the changed layout of CKEditor in the designer !
If you want to change it at runtime, please keep in mind to call ckEditor1.Update()

Hope that helps.

If you encounter any problems in integrating your custom plugins, please forward them to us and we´ll take a look.

Best regards
Frank

  • Andrew Gerdel
    Thanks for the quick work on this guys, I’ll continue working on this today.
  • You must to post comments
0
0

Hi Andrew,

we have released our CKEditor extension now.

It´s available here: http://wisej.com/extensions/

Best regards
Frank

  • Andrew Gerdel
    Thanks Frank. Is there any documentation available regarding the usage of this control? Specifically we need to custom drive several toolbar sets, a couple different sets of font sizes, and implement placeholders. Let me know if there are any resources available to help.
  • Andrew Gerdel
    Frank, to add to my earlier question… we have been using a couple of custom plugins for years now. One of them pops up a dialog box and allows users to select from a drop down list of placeholders. Previously we had just created a folder for each plugin under a plugins subfolder (ckeditor\plugins\customplaceholder), and then set the property in the aspx page: CKEditorControl1.ExtraPlugins = “customplaceholder” I’m trying to recreate that with your extension, but have so far not been successful. When I set (in startup.js) config.extraPlugins = “placeholder”; that works fine, the placeholder button appears in the toolbar. But when i set: config.extraPlugins = “customplaceholder”; it does not work. The CKEditor control will not display, it’s just looks like an empty control. I have tried copying the plugins\customplaceholder folder to several locations, hoping it would find it, but so far have not been successful. I’m still working on it, any suggestions would be appreciated.
  • You must to post comments
0
0

Hi Andrew,

thanks for your question about the CKEditor. We are planning to add an extension for it (as well as for TinyMCE).
That way it will work a lot better and be more flexible than embedding an ASP.NET page.

We will keep you updated about our progress on this.

Best regards
Frank

  • You must to post comments
Showing 3 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json