Sha256: af3d273d3be89bae13fc9df145d7b458a9daf0e335a7c793d5233c81f0c68c7f

Contents?: true

Size: 944 Bytes

Versions: 7

Compression:

Stored size: 944 Bytes

Contents

/*
 Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.dialog.add("sourcedialog",function(a){var b=CKEDITOR.document.getWindow().getViewPaneSize(),e=Math.min(b.width-70,800),b=b.height/1.5,d;return{title:a.lang.sourcedialog.title,minWidth:100,minHeight:100,onShow:function(){this.setValueOf("main","data",d=a.getData())},onOk:function(){function b(f,c){a.focus();a.setData(c,function(){f.hide();var b=a.createRange();b.moveToElementEditStart(a.editable());b.select()})}return function(){var a=this.getValueOf("main","data").replace(/\r/g,""),c=this;
if(a===d)return!0;setTimeout(function(){b(c,a)});return!1}}(),contents:[{id:"main",label:a.lang.sourcedialog.title,elements:[{type:"textarea",id:"data",dir:"ltr",inputStyle:"cursor:auto;width:"+e+"px;height:"+b+"px;tab-size:4;text-align:left;","class":"cke_source"}]}]}});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
effective_ckeditor-1.11.0 app/assets/javascripts/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js
effective_ckeditor-1.10.1 app/assets/javascripts/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js
effective_ckeditor-1.10.0 app/assets/javascripts/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js
effective_ckeditor-1.9.3 app/assets/javascripts/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js
effective_ckeditor-1.9.2 app/assets/javascripts/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js
effective_ckeditor-1.9.1 app/assets/javascripts/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js
effective_ckeditor-1.9.0 app/assets/javascripts/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js