tinymce tag complete stuff

This commit is contained in:
Friendika 2011-11-03 20:40:56 -07:00
parent 5f531aa537
commit e19b597180
2 changed files with 40 additions and 13 deletions

View file

@ -13,20 +13,28 @@ function ACPopup(elm,backend_url){
this.ready=true;
this.kp_timer = false;
this.url = backend_url;
style = $(elm).offset();
w = $(elm).width();
h = $(elm).height();
if(typeof elm.editorId == "undefined") {
style = $(elm).offset();
w = $(elm).width();
h = $(elm).height();
}
else {
style = $('.profile-jot-text').offset();
w = 300;
h = 150;
}
style.top=style.top+h;
style.width = w;
style.position = 'absolute';
/* style['max-height'] = '150px';
style.border = '1px solid red';
style.background = '#cccccc';
/* style['max-height'] = '150px';
style.border = '1px solid red';
style.background = '#cccccc';
style.overflow = 'auto';
style['z-index'] = '100000';
*/
style.overflow = 'auto';
style['z-index'] = '100000';
*/
style.display = 'none';
this.cont = $("<div class='acpopup'></div>");