|
@@ -447,19 +447,17 @@ function MenubarFile( editor ) {
|
|
if ( config.getKey( 'project/editable' ) ) {
|
|
if ( config.getKey( 'project/editable' ) ) {
|
|
|
|
|
|
editButton = [
|
|
editButton = [
|
|
- '',
|
|
|
|
' var button = document.createElement( \'a\' );',
|
|
' var button = document.createElement( \'a\' );',
|
|
' button.href = \'https://threejs.org/editor/#file=\' + location.href.split( \'/\' ).slice( 0, - 1 ).join( \'/\' ) + \'/app.json\';',
|
|
' button.href = \'https://threejs.org/editor/#file=\' + location.href.split( \'/\' ).slice( 0, - 1 ).join( \'/\' ) + \'/app.json\';',
|
|
' button.style.cssText = \'position: absolute; bottom: 20px; right: 20px; padding: 10px 16px; color: #fff; border: 1px solid #fff; border-radius: 20px; text-decoration: none;\';',
|
|
' button.style.cssText = \'position: absolute; bottom: 20px; right: 20px; padding: 10px 16px; color: #fff; border: 1px solid #fff; border-radius: 20px; text-decoration: none;\';',
|
|
' button.target = \'_blank\';',
|
|
' button.target = \'_blank\';',
|
|
' button.textContent = \'EDIT\';',
|
|
' button.textContent = \'EDIT\';',
|
|
' document.body.appendChild( button );',
|
|
' document.body.appendChild( button );',
|
|
- ''
|
|
|
|
].join( '\n' );
|
|
].join( '\n' );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- content = content.replace( '\n\t\t\t/* edit button */\n', editButton );
|
|
|
|
|
|
+ content = content.replace( '\t\t\t/* edit button */', editButton );
|
|
|
|
|
|
toZip[ 'index.html' ] = strToU8( content );
|
|
toZip[ 'index.html' ] = strToU8( content );
|
|
|
|
|