? ? NPM Resource Changed Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
5 Dec 2021

Pull Request for Issue, sorry couldn't found the one...

Summary of Changes

  • Adds a class image to the figure element as tinyMCE expects that to enable the editing of the figcaption text

Testing Instructions

This Pr needs NPM

  • Fetch and run npm install
  • Try to select an image using the Joomla dropdown icon and then selecting media
  • Add some figure class and some text for the figure caption
  • You should have a boxed area around the image and clicking in the caption text you should be able to edit it

Screenshot 2021-12-05 at 18 56 31

Screenshot 2021-12-05 at 18 56 48

Actual result BEFORE applying this Pull Request

Editing a figure element is kinda broken

Expected result AFTER applying this Pull Request

Editing a figure element is easier

Documentation Changes Required

No

@brianteeman @N6REJ

avatar dgrammatiko dgrammatiko - open - 5 Dec 2021
avatar dgrammatiko dgrammatiko - change - 5 Dec 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 5 Dec 2021
Category JavaScript Repository NPM Change
avatar dgrammatiko dgrammatiko - change - 5 Dec 2021
Title
Fix Figure misbehaviour in tinyMCE
[4.0] Fix Figure misbehaviour in tinyMCE
avatar dgrammatiko dgrammatiko - edited - 5 Dec 2021
avatar dgrammatiko dgrammatiko - change - 5 Dec 2021
Title
[4.0] Fix Figure misbehaviour in tinyMCE
[4.0][bugfix] Fix Figure misbehaviour in tinyMCE
avatar dgrammatiko dgrammatiko - edited - 5 Dec 2021
avatar dgrammatiko dgrammatiko - change - 5 Dec 2021
Labels Added: ? NPM Resource Changed
avatar N6REJ N6REJ - test_item - 5 Dec 2021 - Tested successfully
avatar N6REJ
N6REJ - comment - 5 Dec 2021

I have tested this item successfully on c54a3fe

Works exactly as expected


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36221.</sub
Screenshot 2021-12-05 122245

avatar N6REJ
N6REJ - comment - 5 Dec 2021

@dgrammatiko nice and simple. If I could make a user request might be handy to have a.. switch(?)... to move caption before/after image.

avatar dgrammatiko
dgrammatiko - comment - 5 Dec 2021

if I could make a user request might be handy to have a.. switch(?)... to move caption before/after image.

Do you mean something like:

<!-- before -->
<figure>
  <figcaption>
  <img ... >
</figure>

<!-- after -->
<figure>
  <img ... >
  <figcaption>
</figure>

TBH I had to check MDN as I had the impression that figcaption could only go as the last element of the figcaption, and clearly, that's not what the specs say: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption. Give me some time to think how that could be done

avatar brianteeman
brianteeman - comment - 5 Dec 2021

I have tested this item successfully on c54a3fe


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36221.

avatar brianteeman brianteeman - test_item - 5 Dec 2021 - Tested successfully
avatar brianteeman
brianteeman - comment - 5 Dec 2021

I have tested this item ? unsuccessfully on c54a3fe


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36221.

avatar brianteeman brianteeman - test_item - 5 Dec 2021 - Tested unsuccessfully
avatar dgrammatiko
dgrammatiko - comment - 6 Dec 2021

@brianteeman what failed here?

avatar brianteeman
brianteeman - comment - 6 Dec 2021

oops sorry I meant to change it to untested

avatar brianteeman brianteeman - test_item - 6 Dec 2021 - Not tested
avatar brianteeman
brianteeman - comment - 6 Dec 2021

I have not tested this item.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36221.

avatar brianteeman
brianteeman - comment - 6 Dec 2021

tested correctly now


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36221.

avatar brianteeman brianteeman - test_item - 6 Dec 2021 - Tested successfully
avatar brianteeman
brianteeman - comment - 6 Dec 2021

I have tested this item successfully on c54a3fe


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36221.

avatar richard67 richard67 - change - 6 Dec 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 6 Dec 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36221.

avatar N6REJ
N6REJ - comment - 7 Dec 2021

if I could make a user request might be handy to have a.. switch(?)... to move caption before/after image.

Do you mean something like:

<!-- before -->
<figure>
  <figcaption>
  <img ... >
</figure>

<!-- after -->
<figure>
  <img ... >
  <figcaption>
</figure>

TBH I had to check MDN as I had the impression that figcaption could only go as the last element of the figcaption, and clearly, that's not what the specs say: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption. Give me some time to think how that could be done

ty, thats exactly what I meant. I appreciate you doing the extra effort

avatar Quy Quy - change - 21 Dec 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-12-21 00:41:50
Closed_By Quy
Labels Added: ?
avatar Quy Quy - close - 21 Dec 2021
avatar Quy Quy - merge - 21 Dec 2021
avatar Quy
Quy - comment - 21 Dec 2021

Thanks

Add a Comment

Login with GitHub to post a comment