我正在尝试将工具栏放在编辑器的底部。根据文档,我已将 toolbarPosition:bottom 属性传递给配置,但似乎它不起作用。这是代码
import React from 'react';
import CKEditor from '@ckeditor/ckeditor5-react';
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
function App() {
return (
<div className="App">
<CKEditor
editor={ClassicEditor}
data="<p>Hello from CKEditor 5!</p>"
onInit={editor => {
// You can store the "editor" and use when it is needed.
console.log('Editor is ready to use!', editor);
}}
onChange={(event, editor) => {
const data = editor.getData();
console.log({ event, editor, data });
}}
config={{
toolbarLocation: 'bottom'
}}
/>
</div>
);
}
export default App;
任何帮助都会非常感激。
