BUG 9975 Add the variables button inside the html editing... IMPROVEMENT

- Window outputDocument edit in version old.
- add validation.