Ckeditor5: Indent not working at ckeditor5-build-classic

Created on 24 Oct 2019  ยท  2Comments  ยท  Source: ckeditor/ckeditor5

๐Ÿ“ Provide detailed reproduction steps (if any)

  1. Clone ckeditor5-build-classic from GitHub repository
  2. Open sample/index.html
  3. 'Indent' toolbar not activated when I put the cursor on Sample.

โœ”๏ธ Expected result

image

โŒ Actual result

image

๐Ÿ“ƒ Other details

  • Browser: Google Chrome
  • OS: Windows 10
  • CKEditor version: 15.0.0
  • Installed CKEditor plugins: โ€ฆ

After looking into indentation docs, I updated app.js with the following snippet, then it works as expected.

```javascript
// Other Imports
import IndentBlock from '@ckeditor/ckeditor5-indent/src/indentblock';

ClassicEditor.builtinPlugins = [
// Other Plugins
IndentBlock
];

````

If you'd like to see this fixed sooner, add a ๐Ÿ‘ reaction to this post.

build-balloon build-balloon-block build-classic build-inline discussion bug

Most helpful comment

The proper solution is to be able to indent a simple paragraph by default... This isn't worthy of a plugin, it is worthy of basic English writing format...

Definition of "indent" - to set in or back from the margin, as the first line of a PARAGRAPH.
https://www.dictionary.com/browse/indent

This post was in October of 2019, it is now March 2020. Time to do the work and get the proper solution finished.

All 2 comments

This is actually by design. There are 2 implementations for indent plugin: one for lists (only) and the other for text blocks.

We decided to enable both implementations only for the document editor build, while all other builds have only list indentation implementation. Meaning that indenting block is unavailable.

The proper solution is add IndentBlock plugin just like you have proposed.

It's early after the release, I'll leave this ticket open for a while to ensure whether this is not confusing for more users.

For anyone else seeing this a s a problem, please add a ๐Ÿ‘ reaction to the main post.

The proper solution is to be able to indent a simple paragraph by default... This isn't worthy of a plugin, it is worthy of basic English writing format...

Definition of "indent" - to set in or back from the margin, as the first line of a PARAGRAPH.
https://www.dictionary.com/browse/indent

This post was in October of 2019, it is now March 2020. Time to do the work and get the proper solution finished.

Was this page helpful?
0 / 5 - 0 ratings