CKEditor in UI dialog box
hi,
I am trying to open dialog box with CKeditor, but I can't make it work. It appears in the textarea control as a plain text.
here is my code.
- function showdialog(detail) {
- $(function() {
- $(detail).dialog({
- bgiframe: true,
- modal: true,
- width: 700,
- height: 600,
- title: 'Product Details',
- buttons: {
- Ok: function() {
- alert('Data saved');
- $(this).dialog('close');
- $(this).dialog('destroy');
- }
- }
- });
- });
- }
I am using below references at the top of the page along with valid CSS and Jquery files as well.
<script type="text/javascript" src="script/ui/ui.dialog.js"></script>
<script type="text/javascript" src="script/ui/dialog-patch.js"></script>
Please send me a sample code that I can use.
Thanks in advance
Raj