Version 3.2.3
This commit is contained in:
1 parent
ae5c01cc78
commit
78706903a2
2641 files changed
+228363
-201264
No files matched your search
@@ -277,12 +277,18 @@ _tt.prototype.tabbedEditor = {
|
||||
{
|
||||
Event.stop( event );
|
||||
|
||||
Debug.write("SHOWING POPUP");
|
||||
|
||||
/* Create pop-up elements */
|
||||
var _id = '__p_' + id;
|
||||
var _data = acp.tabbedEditor.openTabs.get( id );
|
||||
var _t = acp.tabbedEditor.templates['textArea'].evaluate( { 'id': _id } );
|
||||
var content = acp.tabbedEditor.getContent( id );
|
||||
|
||||
// Have to replace <> otherwise script tags are executed and removed
|
||||
// @link http://community.invisionpower.com/tracker/issue-32621-template-editor-maximise-button-deletes-script-tags
|
||||
var content = acp.tabbedEditor.getContent( id ).replace( /</g, '<' ).replace( />/g, '>' );
|
||||
var title = _data.title;
|
||||
|
||||
var _initial = '<div class="acp-box"><h3>' + title + '</h3>' + _t.replace( '{content}', content ) + "</div>";
|
||||
var _dims = document.viewport.getDimensions();
|
||||
|
||||
@@ -344,7 +350,7 @@ _tt.prototype.tabbedEditor = {
|
||||
/* Create wrapper */
|
||||
try
|
||||
{
|
||||
Debug.write("htmlincoming: " + acp.tabbedEditor._HtmlIncoming( content ) );
|
||||
//Debug.write("htmlincoming: " + acp.tabbedEditor._HtmlIncoming( content ) );
|
||||
$( 'tbe_wrap' ).innerHTML += _t.replace( '{content}', acp.tabbedEditor._HtmlIncoming( content ) );
|
||||
}
|
||||
catch( e )
|
||||
@@ -434,10 +440,16 @@ _tt.prototype.tabbedEditor = {
|
||||
$( 'tbe_editor_textarea_' + id ).observe('keydown', acp.tabbedEditor._keyDownCheck.bindAsEventListener( this, id ) );
|
||||
|
||||
/* Got a scroll pos? */
|
||||
if ( acp.tabbedEditor.sPos[ id ] )
|
||||
if ( !Object.isUndefined( acp.tabbedEditor.sPos[ id ] ) )
|
||||
{
|
||||
$( 'tbe_editor_textarea_' + id ).scrollTop = acp.tabbedEditor.sPos[ id ];
|
||||
}
|
||||
else
|
||||
{
|
||||
setTimeout( function(){
|
||||
$( 'tbe_editor_textarea_' + id ).scrollTop = 0;
|
||||
}, 50 );
|
||||
}
|
||||
|
||||
/* Set listener */
|
||||
acp.tabbedEditor._setObserver( id );
|
||||
@@ -563,6 +575,15 @@ _tt.prototype.tabbedEditor = {
|
||||
|
||||
acp.tabbedEditor.poId = id;
|
||||
acp.tabbedEditor._po = setTimeout( acp.tabbedEditor._timeOut, 400 );
|
||||
|
||||
/*if ( !Object.isUndefined( acp.tabbedEditor.sPos[ id ] ) )
|
||||
{
|
||||
$( 'tbe_editor_textarea_' + id ).scrollTop = acp.tabbedEditor.sPos[ id ];
|
||||
} else {
|
||||
setTimeout( function(){
|
||||
$( 'tbe_editor_textarea_' + id ).scrollTop = 0;
|
||||
}, 50 );
|
||||
}*/
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user