plandem / lwrte

Export from Google Code. Lightweight Rich Text Editor (RTE / WYSIWYG) for jQuery
https://code.google.com/p/lwrte/
0 stars 0 forks source link

jQuery.ui with the theme roller integration #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I use the jQuery ui and it could be good to use the official ui.dialog for
the panel (whith the theme roller skin).
Maybe this little hack can help somebody. I load it just after the
jquery.rte.js :

// rte.uidialog.js
lwRTE.prototype.create_panel = function(title, width)
{
    var self = this;
    var tb = self.get_toolbar();
    if(!tb) return false;
    $('.rte-panel', tb).remove();
    var dial = $('<div></div>') ;
    $('<div></div>').addClass('rte-panel')
    .css('position','relative').appendTo(dial);
    dial.dialog({ title:title, width: width||250, height: 200, resizable:true,
zIndex:1000 }) ;
    return $('.rte-panel:last') ;
    }

Original issue reported on code.google.com by Xavier.B...@gmail.com on 17 Mar 2009 at 7:22

GoogleCodeExporter commented 9 years ago
+1 for theme roller support instead of custom css and images

Original comment by friend.o...@gmail.com on 23 Nov 2011 at 1:08