Closed (fixed)
Project:
BUEditor
Version:
6.x-2.4
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2011 at 00:44 UTC
Updated:
26 Aug 2011 at 07:02 UTC
BUEditors placed within a vertical tab dont render correctly.
| Comment | File | Size | Author |
|---|---|---|---|
| bueditor_vertical_tabs_bug.jpg | 44.6 KB | doublejosh |
Comments
Comment #1
doublejosh commentedBTW: This is in Chrome.
Comment #2
doublejosh commentedMore info: the
.bue-hl-layer bue-hl-colayerelement gets a width of zero.Comment #3
ufku commentedI'm marking this as support request because code highlighter is not a part of the project.
Can this be reproduced with a clean install + Vertical tabs?
Comment #4
doublejosh commentedCorrect.
Confirmed that this problem DOES NOT exist on a fresh install without highlighting turned on.
Tested different setups and confirmed the problem is only with highlighting.
Also realized that if I click the highlighting button it repairs the zero width, which is on this element...
<div class="bue-hl-layer bue-hl-colayer" id="edit-field-info-0-value-bue-hl-colayer" style="width: 0px; ">...SO that means it's the initial tpl code that's failing to properly get the width set for some reason..
It does run initially, and turns highlighting on, but width fails.
Sorry the bue.highlight.js file is a bit to dense for me. Any next steps I can help with?
Comment #5
ufku commentedHighlighter can only be set up on visible editor. Zero width is expected for hidden elements. You need to disable the tpl button that loads the highlighter on page load and use the hlight on/off button manually.
Comment #6
doublejosh commentedHmm... the tpl button works fine on initially visible elements. It's lovely to have no-click highlighting.
I know other modules have had to deal with this: http://drupal.org/node/719714
Any thoughts about how to either: have one editor initially set and others (within tabs) require a click, or getting widths while it's still hidden?
Comment #7
ufku commentedTry replacing your initiator code with this:
Comment #8
doublejosh commentedYou sir are a genius and a philanthropist!
Works perfectly.
Comment #9
ufku commented:)