Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header not rendering properly in editor when pre-loading XML into the textarea #135

Closed
thewizster opened this issue Apr 11, 2016 · 3 comments

Comments

@thewizster
Copy link

I am loading some previously created form xml data into the textarea of the formbuilder. The Header field is not rendering properly in the editor.

Here are the steps I take:

  1. Create a form. Add a header to it. appears normal in editor. I save the XML.
  2. Load the previously saved XML into the textarea when building the page. (I am using PHP)
  3. The formbuilder loads the XML into the editor. Header does not render as it should. I can preview the form, using form-render, at this point and header renders fine. XML is proper for the header field at this point
    <field class="header" label="Header" type="header" subtype="h1"></field>
  4. Now I click save and header XML is changed to:
    <field class="header" label="Header" type="header"></field>

I am using formbuilder v1.9.26

Here is what the header rendering looks like.
header rendering

Thanks in advance for any feedback you can give.

@kevinchappell
Copy link
Owner

@thewizster Thanks for catching this. I'll work on a fix now.

@kevinchappell
Copy link
Owner

Should be all set now. Thanks for the well-written issue, it helped me get to the bottom of this faster. Please test when you have a chance: http://codepen.io/kevinchappell/pen/wGyzLb

@thewizster
Copy link
Author

Works perfect now...Appreciate the quick response and all your efforts!

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

No branches or pull requests

2 participants