Skip to content
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 #148

Closed

Conversation

mateomustapic
Copy link

This is a bug fix for https://issues.liferay.com/browse/LPS-117468
Reseting border and background styles for cke_editable css class in page editor.

Steps to reproduce

  1. Edit Hello World page (or create a content page with a heading fragment)
  2. Double click on a text editable to start editing.

@liferay-continuous-integration
Copy link
Collaborator

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.

@mateomustapic
Copy link
Author

ci:test:sf

@mateomustapic
Copy link
Author

ci:test:relevant

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:sf - 0 out of 1 jobs passed in 4 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 21b2adc009b50747fa2512a77308e78001e6b13f

Sender Branch:

Branch Name: LPS-117468
Branch GIT ID: ec517fe623ca440b7b0922fc1b42e863c39ca920

0 out of 1jobs PASSED
For more details click here.
     [java] java.lang.Exception: Found 1 formatting issues:
     [java] 1: ./modules/apps/layout/layout-content-page-editor-web/src/main/resources/META-INF/resources/page_editor/app/components/fragment-content/FragmentContent.scss expected:<...
     [java] 	.cke_editable \{
     [java] 		[background-color: unset;
     [java] 		padding: 0];
     [java] 	\}
     [java] 
     [java] 	.cke_editable...> but was:<...
     [java] 	.cke_editable \{
     [java] 		[padding: 0;
     [java] 		background-color: unset];
     [java] 	\}
     [java] 
     [java] 	.cke_editable...>
     [java] 
     [java] 	at com.liferay.source.formatter.SourceFormatter.format(SourceFormatter.java:448)
     [java] 	at com.liferay.source.formatter.SourceFormatter.main(SourceFormatter.java:269)
[stopwatch] [run.batch.test.action: 1:48.667 sec]
     [echo] The following error occurred while executing this line:
     [echo] /opt/dev/projects/github/liferay-portal/portal-impl/build.xml:611: The following error occurred while executing this line:
     [echo] /opt/dev/projects/github/liferay-portal/portal-impl/build.xml:724: Java returned: 1
      [get] Getting: http://test-1-17/job/test-portal-source-format/3759//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20200722021244486.txt
   [delete] Deleting: /opt/dev/projects/github/liferay-portal/20200722021244486.txt
  [typedef] Could not load definitions from resource org/apache/maven/artifact/ant/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource org/jacoco/ant/antlib.xml. It could not be found.
   [delete] Deleting: /opt/dev/projects/github/liferay-portal/null112687952.properties

merge-test-results:
[mkdir] Created dir: /opt/dev/projects/github/liferay-portal/test-results
[junitreport] Processing /opt/dev/projects/github/liferay-portal/test-results/TESTS-TestSuites.xml to /tmp/null228698846
[junitreport] Loading stylesheet jar:file:/opt/java/ant/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Transform time: 287ms
[junitreport] Deleting: /tmp/null228698846
[echo] A report with all the test results can be found at test-results/html/index.html.
[mkdir] Created dir: /opt/dev/projects/github/liferay-jenkins-ee/test-results
[copy] Copying 1 file to /opt/dev/projects/github/liferay-jenkins-ee/test-results
[echo] run.batch.test.tear.down.start.timestamp: 07-22-2020 02:12:49:811 PDT

@liferay-continuous-integration
Copy link
Collaborator

@mateomustapic
Copy link
Author

ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 3 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 21b2adc009b50747fa2512a77308e78001e6b13f

Sender Branch:

Branch Name: LPS-117468
Branch GIT ID: c76247235ceac02abf70f7c32fc988a36a655dc3

1 out of 1jobs PASSED
1 Successful Jobs:
For more details click here.

@liferay-continuous-integration
Copy link
Collaborator

@carloslancha
Copy link

carloslancha commented Jul 22, 2020

Isn't this the same as #145 ?

Please, coordinate with @markocikos to see if both issues are related so you can fix'em properly in liferay-ckeditor

@mateomustapic
Copy link
Author

mateomustapic commented Jul 22, 2020

Isn't this the same as #145 ?

Please, coordinate with @markocikos to see if both issues are related so you can fix'em properly in liferay-ckeditor

This issue shouldn't be related to Marko's. This one is Page Editor specific, that's why these changes are done in layout-content-page-editor-web stlyes.

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:relevant - 0 out of 1 jobs passed in 59 seconds

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: c7f9b29e5cfb86cb714157f3143eb324e4d1d1d0

ci:test:relevant - 0 out of 1 jobs PASSED
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest(master)
    Job Results:

    0 Jobs Passed.
    1 Job Failed.

    The sender branch SHA could not be found on mateomustapic/LPS-117468. The sender branch may have been force pushed or deleted after the pull request test was initiated.

    fatal: Not a valid branch point: 'ec517fe623ca440b7b0922fc1b42e863c39ca920'.

For upstream results, click here.

@mateomustapic
Copy link
Author

ci:test:relevant

@carloslancha
Copy link

Victor Galán on the ticket:

Just to add here, apart from the different padding and colors from the original one, it is styling the after element making it cover the whole screen. This makes impossible to close the editor clicking on another fragment of the page that is above the fragment with the alloy editor opened

That's exactly what @markocikos describes in #145 isn't it?

@carloslancha
Copy link

@mateomustapic I don't know if this can be fixed in liferay-ckeditor but because this is happening since we introduced the moono-lexicon skin I think it's worth to check it and try to find a way to solve it there.

@mateomustapic
Copy link
Author

@mateomustapic I don't know if this can be fixed in liferay-ckeditor but because this is happening since we introduced the moono-lexicon skin I think it's worth to check it and try to find a way to solve it there.

I will take a look if I can solve it from liferay-ckeditor

@markocikos
Copy link
Collaborator

@mateomustapic I am already working on this, there is no need for you to continue. I'll open PR shortly, please review it when I do.

@mateomustapic
Copy link
Author

@mateomustapic I am already working on this, there is no need for you to continue. I'll open PR shortly, please review it when I do.

sure, no problem :)

@mateomustapic
Copy link
Author

Closing this, sent fix in liferay-ckeditor=> liferay/liferay-ckeditor#99

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:stable - 21 out of 21 jobs passed

✔️ ci:test:relevant - 77 out of 78 jobs passed in 5 hours 52 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: c7f9b29e5cfb86cb714157f3143eb324e4d1d1d0

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 9df5a717f14278f29e7460d7055a941d93e0b735

ci:test:stable - 21 out of 21 jobs PASSED
21 Successful Jobs:
ci:test:relevant - 76 out of 78 jobs PASSED
76 Successful Jobs:
For more details click here.

This pull contains no unique failures.


Failures in common with acceptance upstream results at 21b2adc:

@liferay-continuous-integration
Copy link
Collaborator

@carloslancha
Copy link

Hey @mateomustapic please remember to call to ci:stop if you close a pr while it's in queue or running tests :)

wincent pushed a commit that referenced this pull request Jan 19, 2021
**Release notes:**

[Full changelog](liferay/liferay-ckeditor@v4.14.1-liferay.15...v4.14.1-liferay.16)

-   fix: LPS-125441 CKEditor font size selector flickers on mouse over ([\#148](liferay/liferay-ckeditor#148))

Additionally this fixes [LPS-125441](https://issues.liferay.com/browse/LPS-125441)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants