gramos / easy-fckeditor Goto Github PK
View Code? Open in Web Editor NEWFork of Scott Rutherford's excellent fckeditor Rails plugin, with easy upload image plugin of Alfonso Martínez de Lizarrondo
License: Other
Fork of Scott Rutherford's excellent fckeditor Rails plugin, with easy upload image plugin of Alfonso Martínez de Lizarrondo
License: Other
No expansion found for :fckeditor
If this happens,dont warry,restart server,or restart you netbeans.
Problem - Two copies of input values in params, neither of which contain the body attribute (the one given to the helper) when editting a STI instance.
class Document < AR end
class Page < Document end
When creating a new Document everything works as expected, I pass the 'type' in a hidden field.
<%= fckeditor_textarea("document", "body", :toolbarSet => 'Simple', :width => '100%', :height => '200px') %>
However when I try and edit a Page (same _form, but now its an instance of Page because the type field has been set) I get params[:document]
and params[:page]
, but neither hash contain the a [:body]
key.
I see no evidence in the source or generated source of any additional inputs being added to the DOM. I see nothing in the helper method that could cause this.
Controller:
@obj = Admin::Article.new
View:
fckeditor_textarea("admin_article", "header" ...) -> Error: uninitialized constant AdminArticle
fckeditor_textarea("article", "header" ...) -> generates <textarea .. name='article[header]'> and standart rails helpers -> <input ... name="admin_article[title]" /> and nothing updates
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.