fix named links in documents, fixes #3107
This commit is contained in:
parent
be315323cb
commit
4e4471f1f6
3 changed files with 16 additions and 7 deletions
|
|
@ -7,7 +7,7 @@ pandora.ui.textPanel = function(text, $toolbar) {
|
|||
that = Ox.SplitPanel({
|
||||
elements: [
|
||||
{
|
||||
element: textElement = pandora.ui.textHTML(text)
|
||||
element: textElement = pandora.$ui.textElement = pandora.ui.textHTML(text)
|
||||
},
|
||||
{
|
||||
element: textEmbed = pandora.ui.textEmbed(textElement),
|
||||
|
|
@ -195,7 +195,7 @@ pandora.ui.textHTML = function(text) {
|
|||
that.update();
|
||||
},
|
||||
})
|
||||
.bindEvent('pandora_documents.' + text.id.toLowerCase(), function(data) {
|
||||
.bindEvent('pandora_documents.' + pandora.user.ui.document.toLowerCase(), function(data) {
|
||||
data.value && data.value.name && scrollToPosition();
|
||||
})
|
||||
.bindEvent('pandora_texts.' + text.id.toLowerCase(), function(data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue