{I" class:ETI"ProcessedAsset;FI"logical_path;TI":ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js;FI" pathname;TI"|/Applications/XAMPP/xamppfiles/htdocs/polyblock/app/assets/javascripts/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+URI" length;TiI" digest;TI"%772133f118799b5f68380e92327cf1e3;FI" source;TI"/** * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'sourcedialog', function( editor ) { var size = CKEDITOR.document.getWindow().getViewPaneSize(); // Make it maximum 800px wide, but still fully visible in the viewport. var width = Math.min( size.width - 70, 800); // Make it use 2/3 of the viewport height. var height = size.height / 1.5; // Store old editor data to avoid unnecessary setData. var oldData; return { title: "Source", minWidth: 100, minHeight: 100, onShow: function() { this.setValueOf( 'main', 'data', oldData = editor.getData() ); }, onOk: (function() { function setData( newData ) { var that = this; editor.setData( newData, function() { that.hide(); // Ensure correct selection. var range = editor.createRange(); range.moveToElementEditStart( editor.editable() ); range.select(); } ); } return function( event ) { // Remove CR from input data for reliable comparison with editor data. var newData = this.getValueOf( 'main', 'data' ).replace( /\r/g, '' ); // Avoid unnecessary setData. Also preserve selection // when user changed his mind and goes back to wysiwyg editing. if ( newData === oldData ) return true; // Set data asynchronously to avoid errors in IE. CKEDITOR.env.ie ? CKEDITOR.tools.setTimeout( setData, 0, this, newData ) : setData.call( this, newData ); // Don't let the dialog close before setData is over. return false; }; })(), contents: [{ id: 'main', label: "Source", elements: [{ type: 'textarea', type: 'textarea', id: 'data', dir: 'ltr', inputStyle: 'cursor:auto;' + 'width:' + width + 'px;' + 'height:' + height + 'px;' + 'tab-size:4;' + 'text-align:left;', 'class': 'cke_source' }] }] }; }); ;TI"dependency_digest;TI"%a2807acdd5ba37cc6a41a2e6d6531486;FI"required_paths;T[I"|/Applications/XAMPP/xamppfiles/htdocs/polyblock/app/assets/javascripts/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js;FI"dependency_paths;T[{I" path;TI"|/Applications/XAMPP/xamppfiles/htdocs/polyblock/app/assets/javascripts/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js;FI" mtime;TI"2013-10-09T17:33:01-04:00;TI" digest;TI"%5fdf7180a09ef1d824c54aa6aa9ce167;FI" _version;TI"%9bd74cab6f8cd17bb7b52df6002861bd;F