File "readonly.html"

Full Path: /home/magicrsz/public_html/admin/ckeditor/plugins/exportpdf/tests/manual/readonly.html
File size: 411 bytes
MIME-type: text/html
Charset: utf-8


<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>