Skip to content

Instantly share code, notes, and snippets.

@vikramjadon921995
Last active December 3, 2018 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vikramjadon921995/2bcf832382ea400753bf02d769da6947 to your computer and use it in GitHub Desktop.
Save vikramjadon921995/2bcf832382ea400753bf02d769da6947 to your computer and use it in GitHub Desktop.
Create CKEditor script
<div class="form-group row ">
<%= textarea_input f, :description, nil, is_horizontal: true, description: "desc.", rows: "10" %>
</div>
<script>
ClassicEditor
.create( document.querySelector( '#product_description' ) )
.catch( error => {
console.error( error );
} );
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment