Fixed WYSIWYG Dialog does not inherit parent style

alexD

Well-known member
When posts/ and threads/ do, editor/dialog doesn't get its style overridden if the parent node has the "Override user style choice" option set to a different than the default style.

Reproduce:
  1. Edit a Node and set the "Override user style choice" to a random style. Make sure it has different color variations from the default one.
  2. Start editing a post in any of its threads. Style inheritance has worked well till now.
  3. Click on any Dialog triggering button in your WYSIWYG. Dialog opens with the default style, without respecting the parent one.
If the request to editor/dialog had the thread_id (or even better the post_id) parameter, it would be easy to determine the style of the parent node.
 
I suppose we have to pass something along to force the style ID, as the request is not specific to a node (ie, the editor is assumed to behave the same everywhere).
 
Top Bottom