dox Executable Documentation

Html text field

Render with wysiwyg editor

Given the field new HtmlTextField('test')
Given the value is 'Some text'
When I render the field
Then the output should be ' <label for="test">Test</label> <textarea id="test" name="args[test]" class="form-control" rows="5">Some text</textarea>'
Then it should add array('jquery', 'bootstrap', 'font-awesome', 'summernote') to the head
Then it should add array(' <script> $(document).ready(function() { $(\'#test\').summernote({ onkeyup: function() { $(\'#test\').val($(\'#test\').code()); } }); $(\'#test\').css(\'display\', \'block\'); $(\'#test\').css(\'visibility\', \'hidden\'); $(\'#test\').css(\'height\', \'1px\'); $(\'#test\').css(\'padding\', \'0\'); $(\'#test\').css(\'margin\', \'0\'); }); </script>') to the foot