slab / quill

Quill is a modern WYSIWYG editor built for compatibility and extensibility
https://quilljs.com
BSD 3-Clause "New" or "Revised" License
43.2k stars 3.36k forks source link

Inline Left align not working on already right aligned text using class #2951

Closed 9thQuadrant closed 5 months ago

9thQuadrant commented 4 years ago

Steps for Reproduction

  1. By using default quill configuration, right Align text and save whole html in server
  2. Now edit the same text after changing quill behavior to use inline styles instead of classes by
    const AlignClass = Quill.import('attributors/style/align');
    Quill.register(AlignClass, true);
  3. Left align the existing right aligned text

Expected behavior: Remove .ql-align-right class and add inline style="text-align: left".

Actual behavior: No Change in HTML

Platforms: Chrome Windows 10

Include browser, operating system and respective versions quill version: 1.3.7

Version: 1.3.7

Run Quill.version to find out

smohadjer commented 3 years ago

I ran into same problem today. Is Quill still being maintained at all? No feedback since February!

alexzelenuyk commented 3 years ago

I copied everything from this list https://github.com/quilljs/quill/issues/3277 and it helped.

quill-bot commented 5 months ago

Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide :pray: