• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed WYSIWYG Dialog does not inherit parent style

alexD

Well-known member
#1
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.
 

Mike

XenForo developer
Staff member
#2
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).