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

Object styles are only visible when selecting whole element #862

Closed
jswiderski opened this issue Sep 4, 2017 · 5 comments · Fixed by #866
Closed

Object styles are only visible when selecting whole element #862

jswiderski opened this issue Sep 4, 2017 · 5 comments · Fixed by #866
Labels
regression This issue is a regression. status:confirmed An issue confirmed by the development team. support An issue reported by a commercially licensed client. type:bug A bug.
Milestone

Comments

@jswiderski
Copy link
Contributor

jswiderski commented Sep 4, 2017

Are you reporting a feature request or a bug?

Bug

Provide detailed reproduction steps (if any)

  1. Open editor sample and clear editor contents.
  2. Create unordered list with one or two elements.
  3. Put cursor into one of elements and open styles dropdown.

Expected result

Square Bulleted List styles should be available in styles dropdown.

Actual result

Square Bulleted List styles is not visible in styles dropdown.

It only appears when whole ul element is selected (can be done with element's path at the moment).

Other details

The same thing is happening for tables so Object styles are affected in general.

  • Browser: ANY
  • OS: ANY
  • CKEditor version: 4.7.2
@jswiderski jswiderski added regression This issue is a regression. status:confirmed An issue confirmed by the development team. type:bug A bug. labels Sep 4, 2017
@mlewand mlewand added this to the Backlog milestone Sep 4, 2017
@msamsel msamsel self-assigned this Sep 4, 2017
@msamsel
Copy link
Contributor

msamsel commented Sep 4, 2017

Bug has appear after #646.

@msamsel
Copy link
Contributor

msamsel commented Sep 4, 2017

It seems that restoring previous functionality shouldn't be so hard. There would be analysed only start of selection what should be the same what we have in previous versions.
Replace getSelectedElement() with getStartElement() here: https://github.com/ckeditor/ckeditor-dev/blob/da389f9f08a8df4562ce14ae02ad215dd510c454/plugins/stylescombo/plugin.js#L145


But still entire menu seems to be a little bit buggy.
In case of selection like below, square option won't appear:

<p>Li[st</p>
<ul>
    <li>One</li>
    <li>T]wo</li>
    <li>Three</li>
</ul>
<p>New paragraph.</p>

In case of selection like below, square option will appear but pressing it won't apply it to the element:

<p>List</p>
<ul>
    <li>One</li>
    <li>T[wo</li>
    <li>Three</li>
</ul>
<p>New ]paragraph.</p>

Squares also won't be applied in case of such situation:

<ul>
	<li>O[ne</li>
</ul>
<ul>
	<li>Tw]o</li>
</ul>

Fixing those cases would require much more work on it.

Comandeer added a commit that referenced this issue Sep 29, 2017
[#862] Fix for square bulleted list bug
@mlewand mlewand modified the milestones: Backlog, 4.8.0 Sep 29, 2017
@mlewand mlewand added the support An issue reported by a commercially licensed client. label Sep 29, 2017
@wimleers
Copy link
Contributor

This bug was reported twice against Drupal 8.4, which was released a week ago.

See https://www.drupal.org/node/2911749.

We'd appreciate it if this could be fixed in a 4.7.x release, rather than having to wait for a 4.8.x release.

@jonnott
Copy link

jonnott commented Nov 15, 2017

Please get this fix out as soon as humanly possible - I'd say it's a critical bug, and it's causing problems for many of my users.

@mlewand
Copy link
Contributor

mlewand commented Nov 22, 2017

@wimleers sorry that you guys had to wait for it till, 4.8.0 - unfortunately we were unable to get it in earlier.

@jonnott it's already merged to the major branch and waiting to be released. You can preview it in our nightly demos. 4.8.0 is scheduled at Dec 5th.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression This issue is a regression. status:confirmed An issue confirmed by the development team. support An issue reported by a commercially licensed client. type:bug A bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants