Skip to main content
TwoD's user avatar
TwoD's user avatar
TwoD's user avatar
TwoD
  • Member for 11 years, 10 months
  • Last seen more than a month ago
  • Sweden
comment
Replaced form AJAX not working
@Lia No problem :) Wish I could have been a bit more detailed or precise in the response but hard to not risk being misleading when the original question doesn't include all context.
awarded
awarded
answered
Loading…
awarded
answered
Loading…
awarded
reviewed
Approve
awarded
awarded
comment
How to translate page titles?
Never use t() for variables, it's only meant for string literals. drupal.org/docs/7/api/localization-api/… If you want to translate node titles, use a module designed for that. Likely one which relies on the i18n module package.
comment
How to test if current page is an admin page?
You can make it an admin path by toggling the "Use the administration theme when editing or creating content" option under "Appearance". That makes all routes with the option _node_operation_route enabled also get the option _admin_route. \Drupal::service('router.admin_context')->isAdminRoute() checks that flag for the current route by default.
comment
All special characters get outputted as question marks
Also highly unlikely Drupal actually modified your all your data at once, especially if there was nothing in the logs about it. How are you looking at the database tables? Using a tool like phpMyAdmin? Could it simply be that the font has changed and the one being used does not have those characters?
awarded
revised
Adding font-size and color buttons
Added explanation for partial workaround.
Loading…
awarded
revised
Adding font-size and color buttons
Added details on why disabling the filter is needed and what could be done to still have filtering.
Loading…
answered
Loading…
comment
Why do Font size and font color button makes CKEditor disappear when I move it to the active toolbar?
It's worth noting that since the colors are added using inline styles, they will be removed by Drupal's XSS filters if the text format has "Limit allowed HTML tags and correct faulty HTML" enabled.
Loading…