Skip to main content
16 events
when toggle format what by license comment
May 4, 2018 at 15:18 comment added paul cappucci Thank you David, I was able to get the text to go 'rtl' using your hook_editor_js_settings_alter. Now a am trying to use the feature config.disallowedContent examples here: docs.ckeditor.com/ckeditor4/latest/guide/…. I modified your hook and this is working for me. $settings['editor']['formats'][$name]['editorSettings']['disallowedContent'] = 'h1';
Jan 12, 2016 at 14:05 history bounty ended CommunityBot
Jan 10, 2016 at 13:25 review Suggested edits
Jan 10, 2016 at 20:20
Jan 10, 2016 at 12:08 comment added user16289 Fine year with much happiness, good deeds, and prosperity to all of us amen,
Jan 10, 2016 at 10:32 history edited David Thomas CC BY-SA 3.0
added 8 characters in body
Jan 10, 2016 at 10:26 history edited David Thomas CC BY-SA 3.0
Added JS solution also.
Jan 10, 2016 at 10:20 history edited David Thomas CC BY-SA 3.0
Added JS solution also.
Jan 10, 2016 at 10:17 comment added David Thomas @benos, you're welcome. I updated my answer with another option to set the config using JS. It also includes drupal.org links on module and theme development for reference there. I tested both approaches and they work to set the CKEditor text input to RTL. Wishing you a great 2016.
Jan 10, 2016 at 10:15 history edited David Thomas CC BY-SA 3.0
Added JS solution also.
Jan 10, 2016 at 10:07 comment added user16289 Much thanks to you David Tohmas! Even though I did some theming and can understand a small bit of basic PHP code (at least in logic) I am just starting to learn PHP and I don't know what I should do with that hook\core-manipulation... I mean, I don't know how to actually run it. Can you please detail just a bit more where to paste it? Just some preliminary information for people like me which just start to taste this world
Jan 10, 2016 at 9:57 history edited David Thomas CC BY-SA 3.0
Tested D8 snippet, it works.
Jan 10, 2016 at 9:47 history edited David Thomas CC BY-SA 3.0
deleted 4 characters in body
Jan 10, 2016 at 9:39 comment added David Thomas @benos, updated for D8 CKEditor option.
Jan 10, 2016 at 9:39 history edited David Thomas CC BY-SA 3.0
added 578 characters in body
Jan 10, 2016 at 9:11 comment added user16289 Where have you seen this in Drupal 8? I know this conf session from Drupal 7 but not Drupal 8...
Jan 10, 2016 at 8:03 history answered David Thomas CC BY-SA 3.0