Przeglądaj źródła

Docs: Improved the WProofreader demo. Closes #1982.

Marek Lewandowski 6 lat temu
rodzic
commit
ee133f131b

+ 1 - 1
docs/_snippets/features/wproofreader.html

@@ -6,7 +6,7 @@
 		serviceId: '1:Eebp63-lWHbt2-ASpHy4-AYUpy2-fo3mk4-sKrza1-NsuXy4-I1XZC2-0u2F54-aqYWd1-l3Qf14-umd'
 	};
 </script>
-<div id="snippet-wproofreader" >
+<div id="snippet-wproofreader">
 	<p>Typos hapen. We striving to correct them. Hover on the marked words for instant correction suggestions or click the dialog icon in the bottom right corner to have the whole text proofread at once.</p>
 	<p>You can also paste your own text here to have its spelling and grammar checked.</p>
 </div>

+ 0 - 2
docs/_snippets/features/wproofreader.js

@@ -16,8 +16,6 @@ ClassicEditor
 	} )
 	.then( editor => {
 		window.editor = editor;
-		// Temporary fix for WProofreader dialog (https://github.com/WebSpellChecker/wproofreader/issues/17).
-		editor.ui.getEditableElement().editor = editor;
 	} )
 	.catch( err => {
 		console.error( err.stack );

+ 0 - 12
docs/features/spell-checker.md

@@ -32,18 +32,6 @@ WProofreader is installed separately from CKEditor 5 and does not need to be com
 
 The proofreader can be used either as a [cloud solution](#wproofreader-cloud) or [hosted on your own server](#wproofreader-server).
 
-The "Proofread in dialog" feature requires access to the editor instance to edit content. To grant access for WProofreader, it is necessary to link the editor's instance with the editable element. You can add the following configuration to the editor to use "Proofread in dialog":
-
-```js
-ClassicEditor
-	.create(
-		document.querySelector( '#editor' )
-	)
-	.then( ( editor ) => {
-		editor.ui.getEditableElement( 'main' ).editor = editor;
-	} );
-```
-
 ### WProofreader Cloud
 
 After signing up for a [trial](https://www.webspellchecker.net/signup/hosted-signup.html#webspellchecker-proofreader-trial) or [paid](https://www.webspellchecker.net/signup/hosted-signup.html#webspellchecker-proofreader-paid) version, you will receive your service ID which is used to activate the service.