Skip to content

Conversation

@tommarshall
Copy link
Member

@tommarshall tommarshall commented Apr 11, 2018

  • Fix the styling buttons (e.g. bold, italics) in Chrome 65 - and
    probably older. Stack Overflow suggests Chrome 58.
  • @dquilter fixed this originally in 8615985, however this behaviour is
    still broken in Sightsavers' ActiveAdmin.
  • There's a StackOverflow issue that seems to match the problem we're
    experiencing, and the accepted answer uses the solution applied by DQ,
    however the comments suggest this is only a partial fix, ref:
  • This applies the fix recommended by the comment, and that appears to
    have resolved the issue - though I'll be lying if I claim I know why
    this.caret.set(node1, 0, node2, 0); solves it.

* Fix the styling buttons (e.g. bold, italics) in Chrome 65 - and
  probably older. Stack Overflow suggests Chrome 58.
* @dquilter fixed this originally in 8615985, however this behaviour is
  still broken in Sightsavers' ActiveAdmin.
* There's an issue StackOverflow that seems to match the problem we're
  experiencing, and the accepted answer uses the solution applied by DQ,
  however the comments suggest this is only a partial fix, ref:
 * https://stackoverflow.com/q/43674400/885540
 * https://stackoverflow.com/q/43674400/885540#comment75050875_43732840
* This applies the fix recommended by the comment, and that appears to
  have resolved the issue - though I'll be lying if I claim I know why
  `this.caret.set(node1, 0, node2, 0);` solves it.
@tommarshall tommarshall self-assigned this Apr 11, 2018
@tommarshall tommarshall requested a review from dquilter April 11, 2018 16:35
@tommarshall
Copy link
Member Author

tommarshall commented Apr 11, 2018

As an aside, I'm not convinced this is a rails 5.1 specific issue. It seems relevant to the Chrome (and maybe redactor?) versions, but I don't see why the version of Rails would affect it.

These patches should probably be cherry-picked back into the other branch(es) - though we should confirm this issue is present first.

@tommarshall tommarshall merged commit 25c2f5c into rails_v5.1 Apr 12, 2018
@tommarshall tommarshall deleted the fix-style-buttons-in-chrome-65 branch April 12, 2018 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants