PDA

View Full Version : Hide Ckeditor in some scenarios



akshar_jamgaonkar
3 Sep 2012, 12:06 AM
HI all,

I have a form in which there is a ckeditor, i want that ckeditor should be displayed only in certain cases depending upon the action. i am implementing onBeforeWinShow event where depending upon conditions i am hiding and showing controls, but ckeditor.hide() for some reason is not working.

I am unable to find what could be the reason, any help would be appreciated.

scottmartin
4 Sep 2012, 9:27 AM
Are you using a UX to display CKE? Do you have a parent container that you can hide?

Scott.

akshar_jamgaonkar
5 Sep 2012, 1:22 AM
I am displaying the ckeeditor in a popup window, the problem is iam doing hide and show of the controls , so ckeditor does not display in some cases, i need to hide it. iam using push to add items to popup and display accordingly

scottmartin
5 Sep 2012, 12:30 PM
Without debugging CKE, I am not sure ... it is possible to place it in an container and hide the container and see if it makes a difference? You may have to create a small test case and debug.

Can you inspect the component then it does work, and then not a see any obvious difference?

Scott.

akshar_jamgaonkar
6 Sep 2012, 1:22 AM
Hi Scott,

Yep what you say did work!!! ...placed cke in container and hide the container.....


Thanks a lot..