Pagebreak code is stripped out when editing text filter

Created on 13 May 2023, about 1 year ago
Updated 30 May 2024, 17 days ago

Problem/Motivation

There's something wrong with the pagebreak functionality where the strings are lost when editing content that has the pagebreak pointers added.

When the pagebreak is first added to a text filter the HTML looks like this:

<div class="page-break" style="page-break-after:always;">
    <span style="display:none;">&nbsp;</span>
</div>

The data is saaved in the database as follows:

<div class="page-break" style="page-break-after:always;"><span style="display:none;">&nbsp;</span></div>

Loading the node via Devel shows the following in the source code of the Devel Load page:

<div class="page-break">
    <span>&nbsp;</span>
</div>

When the node is edited again all that's left is the following:

<p>
    &nbsp;
</p>

Steps to reproduce

Enable the toolbar button on a text format.
Create a piece of content and add the pagebreak pointer.
Save the content.
Edit the content again.

Proposed resolution

Editing content that is using this filter does not loose the pagebreak pointers added to the page.

Remaining tasks

Work out how to make the plugin work correctly.

User interface changes

The module works as expected.

API changes

TBD

Data model changes

TBD

πŸ› Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024