Skip to content

[4.2] (re) Introduce a body end renderer#37330

Closed
dgrammatiko wants to merge 12 commits intojoomla:4.2-devfrom
dgrammatiko:4.2-dev-body-end-renderer
Closed

[4.2] (re) Introduce a body end renderer#37330
dgrammatiko wants to merge 12 commits intojoomla:4.2-devfrom
dgrammatiko:4.2-dev-body-end-renderer

Conversation

@dgrammatiko
Copy link
Copy Markdown
Contributor

@dgrammatiko dgrammatiko commented Mar 20, 2022

Pull Request is the base for many Issues associated with modals. Fixes #37297

Summary of Changes

  • Introduces another renderer
  • Adds setter/getter for the enqueued html fragments

Testing Instructions

Backend Toolbars

Try to edit an article and check the source of the document (scroll to the end) [preferably with debug disabled]
Apply the PR
Check again the source, the last entries before < /body > should be some modals
Check that the toolbar buttons versions, preview and a11y checks are all functionals

Backend Multiple editors in different tabs #37297

Ensure the global editor is set to 'None'
Edit administrator/components/com_content/forms/article.xml and add

<field name="xoxo" type="editor" editor="none" buttons="true" />

After line 264. Try to check if both editors have functional buttons

Apply the PR and repeat the test

Repeat the test for code mirror

Actual result BEFORE applying this Pull Request

Chunks of HTML can only be echoed sequentially, eg the toolbar modals are echoed immediately after the button

Screenshot 2022-03-20 at 15 13 24

Expected result AFTER applying this Pull Request

Chunks of HTML can be enqueued to be echoed at the end of the document

Screenshot 2022-03-20 at 15 12 41

Documentation Changes Required

@laoneo this is needed if you want to see any improvement on the modals

@roland-d in order to solve #37297 and a few more modal related issues this (or something similar) is required

@joomla-cms-bot joomla-cms-bot added NPM Resource Changed This Pull Request can't be tested by Patchtester PR-4.2-dev labels Mar 20, 2022
dgrammatiko and others added 2 commits March 20, 2022 15:15
Co-authored-by: Brian Teeman <brian@teeman.net>
@dgrammatiko
Copy link
Copy Markdown
Contributor Author

There's nothing in their docs: https://www.php.net/manual/en/function.serialize.php
But probably I could do this in another way

@alikon
Copy link
Copy Markdown
Contributor

alikon commented Mar 21, 2022

@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@brianteeman @alikon that article is talking about implementing an own serialised/unserializer and that for 8.1 it needs both the old and the new functions. But I'm not using implements here. So is this an issue here?

@dgrammatiko dgrammatiko force-pushed the 4.2-dev-body-end-renderer branch from 156c73a to 033677d Compare March 24, 2022 00:27
@dgrammatiko dgrammatiko force-pushed the 4.2-dev-body-end-renderer branch from 14f4689 to d0ebd8b Compare March 24, 2022 02:09
@dgrammatiko
Copy link
Copy Markdown
Contributor Author

@SharkyKZ why the thumbs down?

@laoneo
Copy link
Copy Markdown
Member

laoneo commented Mar 24, 2022

Why did you close?

@dgrammatiko dgrammatiko deleted the 4.2-dev-body-end-renderer branch March 25, 2022 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

NPM Resource Changed This Pull Request can't be tested by Patchtester

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants