New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LPS-117468 Fix unexpected background and border in Page Editor editables #157
Conversation
To conserve resources, the PR Tester does not automatically run for every pull. If your code changes were already tested in another pull, reference that pull in this pull so the test results can be analyzed. If your pull was never tested, comment "ci:test" to run the PR Tester for this pull. |
ci:test:sf |
ci:test:relevant |
✔️ ci:test:sf - 1 out of 1 jobs passed in 3 minutesClick here for more details.Base Branch:Branch Name: master Sender Branch:Branch Name: LPS-117468_2 1 Successful Jobs:For more details click here. |
Jenkins Build:test-portal-source-format#4407 |
Hey @mateomustapic, thanks for sending this over and for providing the context of the other conversation! In order to make sure this is the proper fix, I'd expect to see the following information:
I'd expect to see this reasoning before we even attempted code to fix it. In general, if something was working before and now it isn't, we should not only fix it but also understand how it broke in the first place. Can you please provide this additional information so we can evaluate how to proceed? Thanks! /cc @p2kmgcl, please keep an eye on this. Correct me if my assumption that it was working fine before but now it isn't is not correct. I wrote this based on your other comment here |
Hi @jbalsas , thanks for the feedback :). Since the css class However, this altered the existing appearance of all inline editors, but Page Editor (especially Hello World app on startup) is specific because its text color, which is white, so this added Edit: |
Jenkins Build:test-portal-acceptance-pullrequest(master)#6058 |
While it is obvious that this is affecting AlloyEditor, it's not clear why. That's what I'm asking. When possible, we need to have a clear view of what's causing the issue. If the issue has been introduced close in time, then it's also good to actually trace back the origin to analyze it, find the best solution and prevent issues like that in the future. As I pointed out at fix: remove padding and background-color in page editor .cke_editable #99:
There's no reason for AlloyEditor to use Since |
I am digging into this. I think the mentioned commit above didn't even set I will continue to look into this. |
hey @jbalsas and @carloslancha After analysis on this I came to following information. There are 2 solutions for this issue would be:
What do you think? |
I think there are more and that's what I was hinting when I specifically said:
If you check PageEditor, it is using So, the first step would be to identify where this can be changed so the editor is using the correct skin. This can be done:
Once that's done, everything should be back to normal for this editor instances. Now, there is a clear additional problem which should occur when we have 2 editors with different skins together in the same page. This would happen in Web Content where we have both an AlloyEditor for the content and a CKEditor for the Summary field. In there, the Just to summarize:
|
Well, I'll talk to my doctor about this alzheimer guy that seems to be visiting me...
I couldn't find anything in the API about namespacing the skin, maybe you'll be luckier than me. Besides that, I found this in the docs: https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR.html#cfg-skinName
Don't know if Alloy Editor has some magic that would allow us to use different skins... |
If there isn't, we could simply patch our fork to add the
AlloyEditor has no magic. What I've briefly seen here makes me think that this is either outdated or misleading. Maybe the fact that the |
Sent a different PR to #175 |
This PR is a followup on liferay/liferay-ckeditor#99 , it is a UI fix specific for page editor.
It removes “Unexpected background and border in Page Editor editables” described in https://issues.liferay.com/browse/LPS-117468
Steps to reproduce