1. 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

Discussion in 'Resolved Bug Reports' started by alexD, Aug 7, 2011.

  1. alexD

    alexD Active 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.
     
  2. Mike

    Mike XenForo Developer Staff Member

    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).
     
  3. Mike

    Mike XenForo Developer Staff Member

    There was actually code semi for this already. Go figure. Fixed now though.
     
    ibnesayeed likes this.

Share This Page