Tags

Tags give the ability to mark specific points in history as being important
  • 1.0.3

    1.0.3 - form runs, br attrs, table cell attributes, image dimensions
    
    New plugins
    - ckeditor5_roundtrip_br: preserves class and style on <br> tags
    - ckeditor5_roundtrip_table_cell: preserves margin:0 auto on <table>,
      align="left" on <td>/<th>, valign and vertical-align:middle on cells
    
    Fixes in existing plugins
    - InlineRunRoundtrip: radio inputs in <form> no longer wrapped in <p>;
      image-only <label> in a table cell no longer deleted
    - AlignmentRoundtrip Fix-3: percentage CSS width no longer moved to an
      HTML attribute with an injected height
    
    Tests
    - 83 tests, 1119 assertions. 1 pre-existing login timing flake.
    - Verified in a live Full HTML editor with Playwright.
    - PHPCS, PHPStan, ESLint, Prettier, cspell all clean.
    
    Upgrade note: clear caches after updating so Drupal discovers the new
    plugins and libraries.
  • 1.0.2

    1.0.2 - inline runs without <p>, vertical-align:super/sub, plugin schemas
    
    New plugin
    - ckeditor5_roundtrip_inline_run: keeps inline content (<span>, text, links)
      at the top level, in <blockquote>, or next to block siblings in
      <div>/<td>/<th> exactly as authored, instead of wrapping it in <p>.
    
    Fixes
    - ckeditor5_roundtrip_inline_style: vertical-align:super and vertical-align:sub
      are preserved on <sup>, <sub> and <span>. A <span> is no longer turned into
      <sup>/<sub>, and the toolbar Superscript/Subscript buttons are unchanged.
    - Config schema added for ckeditor5_roundtrip_style and
      ckeditor5_roundtrip_alignment (and for the new plugin), so an editor
      configuration that lists them no longer fails with SchemaIncompleteException.
      A unit test now fails for any plugin without a schema entry.
    
    Tests
    - 84 tests: 83 FunctionalJavascript and 1 unit. New: VerticalAlignRoundtripTest,
      InlineRunRoundtripTest, LinkSpanRoundtripTest, PluginSchemaTest.
    - Also verified in a live Full HTML editor with Playwright, including a full
      Save to database to rendered page.
    
    Known limitations
    - Two adjacent display:block spans are still merged into one by CKEditor 5.
    - On a text format that restricts attributes on <p>, CKEditor's default
      paragraph wrapping applies to inline runs.
    
    Upgrade note: the plugins load on every CKEditor 5 text format. Clear caches
    after updating so Drupal discovers the new plugin and library.
  • 1.0.1

    1.0.1 — documentation update
    
    Adds complete Plugin Reference sections for the four plugins shipped in
    1.0.0 but missing from the README: ScriptContainerRoundtrip,
    TableRowspanRoundtrip, StyleRoundtrip, and AlignmentRoundtrip.
    
    No code changes. CI pipeline, behaviour, and API are identical to 1.0.0.
  • 1.0.0

    1.0.0 — first stable release
    
    Ten beta cycles, 29 FunctionalJavascript tests (T1–T29), and a fully green
    CI pipeline across PHPUnit, PHPCS, PHPStan, ESLint, and cspell.
    
    Plugins included (11 total):
    - ScriptRoundtrip: preserves <script> tags including document.write() split patterns
    - ScriptContainerRoundtrip: preserves <script> inside block containers
    - AnchorRoundtrip: preserves empty <a> anchor targets
    - ListIdsRoundtrip: preserves id= attributes on <li> elements
    - TableRoundtrip: preserves classes and attributes on <table>
    - TableRowspanRoundtrip: preserves rowspan on <td>/<th>
    - LegacyHtmlRoundtrip: preserves HTML4 elements (center, font, etc.)
    - InlineStyleRoundtrip: preserves font-weight/font-style inline CSS
    - ListStyleRoundtrip: preserves list-style-type on ol/ul; prevents adjacent list merging (T27)
    - StyleRoundtrip: preserves block <style> elements with positional repair
    - AlignmentRoundtrip: preserves text-align CSS and align= on table cells; strips CKEditor-injected image pixel dimensions
    
    Requires Drupal ^10.3 || ^11.
  • 1.0.0-beta10

    1.0.0-beta10 — strip CKEditor-injected image pixel dimensions
  • 1.0.0-beta9

    1.0.0-beta9 — restore align attribute on table cells
  • 1.0.0-beta8

    1.0.0-beta8 — fix HTML-comment-separated adjacent list merging (Bug B²)
    
    Fixes the case where two adjacent <ol>/<ul> elements separated by an
    HTML comment (<!-- ... -->) were incorrectly merged by CKEditor 5's
    DocumentList post-fixer.
    
    Real-world trigger: case-study posts with a preamble <ol> (list-style:none)
    followed by a comment then a numbered <ol>.
  • 1.0.0-beta7

    1.0.0-beta7 — fix </scr'+'ipt> split pattern in document.write() calls
  • 1.0.0-beta6

    Release 1.0.0-beta6
    
    Fixes PHSK-11223: multiple adjacent ordered lists with distinct CSS
    list-style-type values were being merged into a single list by
    CKEditor 5's DocumentList post-fixer.
    
    Root cause: The post-fixer merges all adjacent same-type list items
    regardless of listStyle, making model-level fixes impossible — any
    change is immediately reverted.
    
    Fix (ListStyleRoundtrip plugin): symmetric pre/post-processing pair:
      - toView() preprocessor: converts CSS list-style-type -> HTML4 type
        attr + injects <p data-cke5rt-sep> boundary markers between adjacent
        <ol>/<ul> elements to physically break adjacency
      - getData() post-processor: strips markers + converts type -> CSS
    
    All 25 Playwright tests T1-T25 passing. Zero regressions.
  • 1.0.0-beta5

    1.0.0-beta5
    
    Two new plugins addressing CKEditor 5 source-editing roundtrip failures:
    
    StyleRoundtrip — fixes <style> tag hoisting to position 0
    GHS was inserting <style> elements at the beginning of the model root
    regardless of their position in the authored HTML. A high-priority
    element:style upcast now inserts htmlStyleBlock at data.modelCursor
    (the correct DOM-order position). Includes registerRawContentMatcher
    to preserve CSS verbatim and a deferred positional repair for edge cases.
    
    AlignmentRoundtrip — emits inline style instead of CSS class
    Drupal's Alignment plugin outputs class="text-align-{value}" by default.
    Themes without matching CSS rules render aligned content un-aligned.
    A high-priority attribute:alignment dataDowncast listener overrides the
    output to style="text-align:{value}". EditingDowncast is unchanged —
    the toolbar alignment button is unaffected.
    
    Tests: 23/23 passing (T1–T16 regression + Bug1–Bug6 + combined 22/22),
    4 full source-toggle cycles per test. No breaking changes.
  • 1.0.0-beta4

    1.0.0-beta4
    
    Adds ScriptContainerRoundtrip and TableRowspanRoundtrip plugins.
    Fixes beta3 packaging gap (YAML + schema entries missing for new plugins).
    All T1-T16 Playwright tests passing.
  • 1.0.0-beta2

    CKEditor 5 Roundtrip 1.0.0-beta2
    
    Adds ListStyleRoundtrip: seventh plugin preserving CSS list-style-type
    through CKEditor 5 round-trip cycles. 14 tests passing.
  • 1.0.0-beta1

    CKEditor 5 Roundtrip 1.0.0-beta1
    
    Six independent round-trip fix plugins, all tests passing.
  • 1.0.0-alpha6

    CKEditor 5 Roundtrip 1.0.0-alpha6
    
    Adds InlineStyleRoundtrip plugin: preserves font-weight and font-style
    inline CSS properties through CKEditor 5 editing cycles instead of
    converting them to <strong> and <em> semantic elements.
  • 1.0.0-alpha5

    CKEditor 5 Roundtrip 1.0.0-alpha5
    
    Fixes deferred model repair for scripts nested inside non-root
    containers, and corrects incorrect README claims about plugin
    conditions.
  • 1.0.0-alpha4

    CKEditor 5 Roundtrip 1.0.0-alpha4
    
    Fixes script tag position after even-numbered source/WYSIWYG toggles.
    
    Previously the deferred model repair blindly appended scripts to the
    end of the document root. A script placed between two paragraphs would
    float to the end after an even-exit toggle cycle.
    
    Fix: the full source textarea content is now snapshotted at highest
    priority before model rebuild. On even-exit drop, the full snapshot is
    parsed via editor.data.parse() and all root children are replaced,
    restoring scripts at their original authored position.
    
    Also adds testScriptPositionPreservedAfterEvenToggle() to the
    FunctionalJavascript test suite.
  • 1.0.0-alpha3

    CKEditor 5 Roundtrip 1.0.0-alpha3
    
    All CI jobs now pass — including ESLint (non-blocking).
    
    Changes since 1.0.0-alpha2:
    - Apply Drupal core Prettier config to all JS source files
    - Add js/ckeditor5_plugins/.eslintrc.json: allow for...of loops and
      disable import/no-unresolved for CKEditor5 DLL imports
    - Fix import/order in all 5 facade files (external before local)
    - Add eslint-disable-next-line class-methods-use-this to 7 private
      helper methods
    - Fix no-empty: add comments to empty catch and arrow function blocks
  • 1.0.0-alpha2

    CKEditor 5 Roundtrip 1.0.0-alpha2
    
    Adds FunctionalJavascript tests for all five plugins and corrects
    several CKEditor5 plugin definition issues that prevented the module
    from loading on any Drupal site.