rh / pagedown-rails Goto Github PK
View Code? Open in Web Editor NEWPageDown for the Rails asset pipeline
License: MIT License
PageDown for the Rails asset pipeline
License: MIT License
Is there a way to overwrite defaultsStrings
outside markdown.editor.js
to handle i18n?
Thanks!
I get in console this error:
Uncaught TypeError: Cannot read property 'attachEvent' of undefined markdown.editor.js:273
util.addEvent markdown.editor.js:273
PreviewManager.setupEvents markdown.editor.js:784
PreviewManager.init markdown.editor.js:956
PreviewManager markdown.editor.js:964
run markdown.editor.js:75
(anonymous function)
Thank you very much!
Will pagedown-rails include CSS and images?
DEPRECATION WARNING: Extra .css in SCSS file is unnecessary. Rename /opt/rubies/2.2.0-rc1/lib/ruby/gems/2.2.0/gems/pagedown-bootstrap-rails-2.1.0/vendor/assets/stylesheets/pagedown_bootstrap.css.scss to /opt/rubies/2.2.0-rc1/lib/ruby/gems/2.2.0/gems/pagedown-bootstrap-rails-2.1.0/vendor/assets/stylesheets/pagedown_bootstrap.scss. (called from _app_views_layouts_application_html_erb___1964874363730556850_70168223823960 at /app/views/layouts/application.html.erb:6)
It really slows down the sass compiler.
I tried to #wmd-image-button {display: none}
, but since other buttons are positioned dynamically through JS I can't reposition them.
Is there a clean way to perform this?
By the way, I want to disable image button since I handle media with https://github.com/dejan/auto_html
Thanks!
Hey there,
If I put in a pull request to get this thing to be mobile friendly would you merge it if it was solid code?
or is there some other project you're depending on?
I've been searching high and low and there seems to be zero examples out there of people making Rails forms for objects (e.g., using form_for or simple_form etc) and PageDown. I guess the approach is going to be hacking in the PageDown DOM IDs, but in the javascript examples they use DIVs, whereas Rails uses form elements. Perhaps a logical future addition to the gem would be helpers for Rails forms, since that's, I'm guessing, the number one thing PageDown is going to be used in conjunction with.
Here's an example of what I'm talking about, but for Django: http://pypi.python.org/pypi/django-pagedown
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.