Skip to content

Instantly share code, notes, and snippets.

@blairanderson blairanderson/wysiwyg.md
Last active Feb 27, 2018

Embed
What would you like to do?
Easiest WYSIWYG implementation I have found. 2018 Edition

I found it very annoying how quickly these WYSIWYG editors go out of date.

The open sources ones have mostly rotted away, and the others are paid.

<% content_for :head do %>
  <%= stylesheet_link_tag('https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.9.4/ui/trumbowyg.css') %>
<% end %>

<% content_for :javascript do %>
  <%= javascript_include_tag('https://cdnjs.cloudflare.com/ajax/libs/Trumbowyg/2.9.4/trumbowyg.js') %>
  <script !src="">
    $("#editor").trumbowyg({svgPath: 'https://rawgit.com/cdnjs/cdnjs/master/ajax/libs/Trumbowyg/2.9.4/ui/icons.svg'});
  </script>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.