Initial Commit
This commit is contained in:
18
public/ckeditor/plugins/exportpdf/tests/manual/readonly.html
Normal file
18
public/ckeditor/plugins/exportpdf/tests/manual/readonly.html
Normal file
@@ -0,0 +1,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>
|
||||
Reference in New Issue
Block a user