Skip to content

jarrettmeyer/simple-format-live-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Simple Format Live Preview
by Jarrett Meyer

------------------------------------------------------------

This is my first Prototype class for putting together a live
preview for Rails' simple_format() text helper method.

------------------------------------------------------------
<html>
<body>
<form id="my-form">
	<textarea id="my-textarea"></textarea>
	<div id="my-live-preview"></div>
</form>
<script type="text/javascript" src="./path/to/prototype.js"></script>
<script type="text/javascript" src="./path/to/simple-format-preview.js"></script>
<script type="text/javascript">
	new SimpleFormatPreview('my-textarea', 'my-live-preview');
</script>
</body>
</html>
------------------------------------------------------------

Licensed under MIT-style license. See license.txt for more
details.

About

A live javascript preview for to simulate Ruby on Rails' simple_format helper written in Prototype

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published