-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indent not working at ckeditor5-build-classic #5658
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. This post was in October of 2019, it is now March 2020. Time to do the work and get the proper solution finished. |
I gratefully accept the rebuke. The default builds of CKEditor 5 are focused on semantic content. Using indentation is not semantical β it's purely presentational. Also, you actually confused line and block indentation. This ticket is about block indentation, while you refer to first line indentation. Perhaps someone may correct me, but the latter (first line indentation) is exactly the thing that should be achieved with stylesheets because it's a matter of style. And that'd be true for both in the web and in web processors. And you can do that too β just add A side note about first line indentation β while it's common in print, it's not common in web typography. Finally, I understand that there will be many people who will miss the indent feature in the default builds (well, 4 of them, because it's present in the document build). But:
|
@Reinmar Sorry, I am little confused if it is a I followed the react-integration quick start guide, and everything is working fine except the lists, When I create a list, it looks like the following --- That is, it is creating an ordered list, but the digits get cut off. Similarly for unordered lists, the bullet markers can not be even seen. Neither do nested lists work. But I could not find any related fix for it as if no one else has encountered this problem. That's why I am confused, here is my code ( totally copied from the documentation ) --- import { CKEditor } from '@ckeditor/ckeditor5-react';
import ClassicEditor from '@ckeditor/ckeditor5-build-classic';
export default function Editor (props) {
return (
<div className="editor-container">
<CKEditor
editor={ ClassicEditor }
data="<p>Hello from CKEditor 5!</p>"
onReady={ 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 } );
}}
onBlur={( event, editor ) => {
console.log( 'Blur.', editor );
}}
onFocus={( event, editor ) => {
console.log( 'Focus.', editor );
}}
/>
</div>
);
} Thanks in advance for any help... |
How to get working the indent feature with vanilla javascript? |
I've not been able to get indent to work in React. It doesn't just work with the buttons, which seems like a really bad design. I've not been able to import the Indent or IndentBlock plugins without getting the |
@evanness That's most probably because you are trying to add a plugin to a predefined build, which will not work. Please check the docs on customising editor in React. |
@FilipTokarski Thanks for the link. I had already explored with that no luck. I've done custom builds with and without the online builder and I keep running into issues. I tried many options including customizing my webpack as suggested (and with other variations). I've decided that Quill is the better option for me. It works with very little setup. |
if you use nextjs and have styling remove this from your global css |
Hello everyone, happy to report that we finished the looong work in #15502, and the new installation methods shipped in v42.0.0 allow seamless dynamic extension of the editor's plugins in npm and CDN setups. Predefined builds will still be released in new versions for some time, but they are put on the deprecation path and we don't plan to update them. Test the new setup (migration docs and quick start), and let us know what you think! |
π Provide detailed reproduction steps (if any)
βοΈ Expected result
β Actual result
π Other details
After looking into indentation docs, I updated
app.js
with the following snippet, then it works as expected.If you'd like to see this fixed sooner, add a π reaction to this post.
The text was updated successfully, but these errors were encountered: