Blame view

public/ckeditor/plugins/exportpdf/tests/manual/readonly.html 393 Bytes
180e53f58   Андрей Ларионов   Редактор ckeditor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  
  <div id="editor">
  	<p>This editor is read-only.</p>
  </div>
  
  <button id="toggle">Toggle read-only mode</button>
  
  <script>
  	exportPdfUtils.initManualTest();
  
  	var editor = CKEDITOR.replace( 'editor', exportPdfUtils.getDefaultConfig( 'manual', {
  		readOnly: true
  	} ) );
  
  	CKEDITOR.document.getById( 'toggle' ).on( 'click', function() {
  		editor.setReadOnly( !editor.readOnly );
  	} );
  </script>