Account created on 24 July 2012, over 12 years ago
#

Merge Requests

More

Recent comments

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

rpayanm changed the visibility of the branch 11.x to hidden.

🇺🇸United States rpayanm

Setting the uid to 1, because I had issues with private files.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

I created a new patch based on the first one. Please review it.

🇺🇸United States rpayanm

rpayanm changed the visibility of the branch 3477713-enabled_optional_attributes.includes-not-a-function to hidden.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

I try to fix this with this patch.
Or we can keep the keys in the $page variable.

🇺🇸United States rpayanm

I also added a validation to ensure that the end date is not earlier than the start date.

🇺🇸United States rpayanm

The code here worked for me:
https://www.drupal.org/project/drupal/issues/3072317#comment-14926967 CKEditor embedded media previews do not render with attached assets Active

function mymodule_support_preprocess_page(&$variables) {
  if (\Drupal::service('router.admin_context')->isAdminRoute()) {
    $variables['#attached']['library'][] = 'mymodule_support/ckeditor5_fixes';
  }
}
document.body.addEventListener('click', (e) => {
  // Prevent opening colorbox images in the current tab while in the editor.
  if (e.target.parentElement.classList.contains('colorbox')) {
    e.preventDefault();
  }
});
🇺🇸United States rpayanm

The patch #9 did not work for me.
I created a new one based on #7, please review it.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

Hi @Grimreaper, thank you!
I tried this but I was unable to get it to work

I added this in my custom_theme.info.yml:

ckeditor5-stylesheets:
  - /ui_styles/stylesheet.css?prefix=.ck-content

I got this error on Firefox:

The page isn’t redirecting properly

And ended up with this URL:

http://example.com/ui_styles/stylesheet.css?q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&q=ui_styles/stylesheet.css&prefix=.ck-content

If I change the URL in ui_styles/ui_styles.routing.yml from /ui_styles/stylesheet.css to /ui_styles/test and visit that URL: http://example.com/ui_styles/test?prefix=.ck-content I get the generated CSS right.

What I am doing wrong?

🇺🇸United States rpayanm

I got the issue on
Drupal v10.3.1
Gin Admin Theme 8.x-3.0-rc13

🇺🇸United States rpayanm

You can do it using this hook:
https://git.drupalcode.org/project/shs/-/blob/2.0.x/src/Plugin/views/fil...

$hooks = [
    'shs_js_settings',
    "shs_{$field_name}_js_settings",
    "shs_{$this->view->id()}__{$identifier}_js_settings",
    "shs_{$this->view->id()}__{$field_name}_js_settings",
    "shs_{$this->view->id()}__{$this->view->current_display}__{$identifier}_js_settings",
    "shs_{$this->view->id()}__{$this->view->current_display}__{$field_name}_js_settings",
  ];
  // Allow other modules to override the settings.
 \Drupal::moduleHandler()->alter($hooks, $settings_shs, $bundle, $field_name);
🇺🇸United States rpayanm

I applied the patch, and it worked fine, but this occurs when the dropdown is at the top:

🇺🇸United States rpayanm

I added a class to each element on this patch. Please review it.

🇺🇸United States rpayanm

We could compare them using "==" or apply the attached patch.

🇺🇸United States rpayanm

It works like a charm. Thank you!

🇺🇸United States rpayanm

Gutenberg >= 3.0

🇺🇸United States rpayanm

I added some suggestions and fixed the test error. Please review.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

Added requirements.

🇺🇸United States rpayanm

I tried this patch and works well.
But I had the same issue as #45 on a 1400px width when the sidebar is shown:

There is no issue is the sidebar is hidden.

🇺🇸United States rpayanm

I confirm that the error is still in v1.16 and the #7 patch solves the issue.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

I have created a patch for the 8.x-10.x version.
Please review.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

I rerolled the patch from #77.

Please review.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

I swapped out withConsecutive() for willReturnOnConsecutiveCalls().

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

oh! makes sense, awesome, thank you @poker10

🇺🇸United States rpayanm

I rerolled the patch and applied the #27's suggestions. Please review.

🇺🇸United States rpayanm

Weird, the same code failed using an MR.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

🇺🇸United States rpayanm

rpayanm made their first commit to this issue’s fork.

Production build 0.71.5 2024