Share session variables with ASPX page

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

  • redcard
    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: https://wisej.com/extensions/

Best regards
Frank

  • redcard
    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.
  • redcard
    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

  • redcard
    Thanks, Frank. But in the short-term, is there anything I can do to share session variables with the ASP.NET page?
  • Frank (ITG)
    Hi Andrew, you can find a discussion about sharing ASP.NET sessions here: https://wisej.com/support/question/httpcontext-current-session-is-null I hope it helps you to find a solution. Best regards, Frank
  • redcard
    Thanks Frank. Please keep us updated on the CKEditor extension.
  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.