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

- Window outputDocument edit in version old.
- add validation.
Merge pull request #1454 from marcoAntonioNina/BUG-9975

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