Git Product home page Git Product logo

medium-editor-rails's People

Contributors

arielsvn avatar gabrielmedina avatar marjinal1st avatar mwlang avatar nmielnik avatar rubentrf avatar sarkkisjuha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

medium-editor-rails's Issues

medium editor only fires on page reload with turbolinks

I'm using turbolinks and the jquery.turbolinks gem with rails 4. I have the following code based on the medium-test app which doesn't work when I click a link to a new page:

$(document).ready ->    
  editor = new MediumEditor(".editable");
  $(".editable").on('input', function() {
    $("#position_" + $(this).attr("data-field-id")).val($(this).html());
  });

It works well after page reload however. How do I make it turbolinks compatible?

Any sample controller & subscribe code?

Hey great Rails wrapper, just saved me a couple days (or weeks) getting medium-editor into rails.
Does anyone have any sample controller ruby code and subscribe js code to actually get the changes back into a Rails model?

Incompatibility with Turbolinks

Hi!
The bug is reproducible with:
https://github.com/marjinal1st/medium-test

Changing page prevents the tooltip from being displayed.

Workaround:

<script>
  var editor = new MediumEditor('.editable');
  editor.options.elementsContainer = false;
  $('.editable').bind('input propertychange', function(){
    $("#post_" + $(this).attr("data-field-id")).val($(this).html());
  });
</script>

I still don't know if the workaround is clean enough and doesn't produce unwanted bugs.

Upgrade to 5.22.1

Any plans to upgrade to 5.22.1 (latest medium-editor release) soon?

I'm trying to use the medium-editor-insert-plugin and it doesn't work with 5.22.0, but does work with 5.22.1.

Text wraps into " "

Something is adding " " to the output text and all the html tags inside don't render it correctly.

<div class="editable">
     <p>"Some <b>text</b> here."</p>
</div>

I try to change some configuration but nothing is working.
Some idea about what can produce this behavior?

Versions

  • rails (5.0.6)
  • medium-editor: medium-editor-rails (2.3.1)
  • browser: Chrome 61.0.3163.100

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.