Skip to content
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

InlineAutoformatEngine should work with commands, not attributes #2360

Closed
Reinmar opened this issue Oct 31, 2016 · 7 comments
Closed

InlineAutoformatEngine should work with commands, not attributes #2360

Reinmar opened this issue Oct 31, 2016 · 7 comments
Labels
package:autoformat resolution:expired This issue was closed due to lack of feedback. status:stale type:bug This issue reports a buggy (incorrect) behavior.

Comments

@Reinmar
Copy link
Member

Reinmar commented Oct 31, 2016

We had to make it use attributes because of https://github.com/ckeditor/ckeditor5-undo/issues/44.

If we'll be able to resolve that issue, then we should also change the inline autoformatter so it works with commands (like the block one).

@Reinmar Reinmar self-assigned this Jun 19, 2017
@Reinmar
Copy link
Member Author

Reinmar commented Jun 19, 2017

I'll fix this issue in order to remove the dependency from the ckeditor5-core (https://github.com/ckeditor/ckeditor5-core/issues/14#issuecomment-309447944).

@Reinmar
Copy link
Member Author

Reinmar commented Jun 20, 2017

I pushed t/7 with my WIP, but I need to give up for now.

There are a couple of problems:

@Reinmar
Copy link
Member Author

Reinmar commented Jun 20, 2017

The idea of using a command instead of raw operations is that we want to reuse the command's logic – this is both – execution and state querying. Unfortunately, there are two issues with the state querying here – ckeditor/ckeditor5-core#92 and ckeditor/ckeditor5-core#93.

PS. To make it clear – I think that the autoformat should abort doing any changes to the content if the command is disabled.

@Reinmar
Copy link
Member Author

Reinmar commented Sep 14, 2018

#1239 raises the priority of this ticket.

The minimum is that autoformat should properly check the schema before doing anything. As I commented in #1239 (comment) it checks it but only when applying the attribute. It should abort earlier and not make any changes.

@Reinmar Reinmar removed their assignment Sep 14, 2018
@jodator jodator self-assigned this Dec 18, 2018
@ckeditor ckeditor deleted a comment from Ruben-Arushanyan Jan 28, 2019
@ckeditor ckeditor deleted a comment from Ruben-Arushanyan Jan 28, 2019
@Reinmar
Copy link
Member Author

Reinmar commented May 27, 2019

@mlewand mlewand transferred this issue from ckeditor/ckeditor5-autoformat Oct 9, 2019
@mlewand mlewand added this to the nice-to-have milestone Oct 9, 2019
@mlewand mlewand added status:confirmed type:bug This issue reports a buggy (incorrect) behavior. package:autoformat labels Oct 9, 2019
@pomek pomek removed this from the nice-to-have milestone Feb 21, 2022
@CKEditorBot
Copy link
Collaborator

There has been no activity on this issue for the past year. We've marked it as stale and will close it in 30 days. We understand it may be relevant, so if you're interested in the solution, leave a comment or reaction under this issue.

@CKEditorBot
Copy link
Collaborator

We've closed your issue due to inactivity over the last year. We understand that the issue may still be relevant. If so, feel free to open a new one (and link this issue to it).

@CKEditorBot CKEditorBot added the resolution:expired This issue was closed due to lack of feedback. label Nov 2, 2023
@CKEditorBot CKEditorBot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:autoformat resolution:expired This issue was closed due to lack of feedback. status:stale type:bug This issue reports a buggy (incorrect) behavior.
Projects
None yet
Development

No branches or pull requests

5 participants