Coder Social home page Coder Social logo

gramos / easy-fckeditor Goto Github PK

View Code? Open in Web Editor NEW
114.0 114.0 22.0 1.89 MB

Fork of Scott Rutherford's excellent fckeditor Rails plugin, with easy upload image plugin of Alfonso Martínez de Lizarrondo

License: Other

Ruby 0.62% Perl 1.40% Python 1.72% PHP 2.44% JavaScript 93.82%

easy-fckeditor's People

Contributors

gramos avatar mla avatar pivotib 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

easy-fckeditor's Issues

STI

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.

Models inside namespace

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

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.