TrungNT
TrungNT
I have the same problem
Here is my code. it the same for edit and new ``` ```
``` class AssignmentsController < ApplicationController load_and_authorize_resource def create respond_to do |format| if @assignment.save @class_room = @assignment.class_room end format.js end end def show end def edit @class_room = @assignment.class_room respond_to do...
``` class ClassRoomsController < ApplicationController load_and_authorize_resource def index end def new end def create end def show @students = @class_room.user_classes.where owner: false @user_class = @class_room.user_classes.new @assignment = @class_room.assignments.new end def...
create.js ``` $("#assignments #error_explanation").remove() $("iframe").contents().find("body").empty(); $("#assignments #errors-create-assignment"). html("") $("#assignments form#new_assignment")[0].reset(); $("#new-assignment-modal").closeModal(); $("#assignments .tbody").html(""); set_timetout() ``` edit.js ``` $(".assignment-").append(""); $("#edit-assignment-modal").openModal(); ```
it the same, nothing changes
It raises error `Cannot read property 'getEditor' of undefined`
In assets/javascrpits/application.js ``` // This is a manifest file that"ll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this...
In form create. Inspect element i can this ``` Rich Text Editor, textareaEditor toolbarsDocument Source Save New Page Preview Print TemplatesClipboard/Undo Cut Copy Paste Paste as plain text Paste from Word Undo RedoEditing Find Replace Select All Spell Check As You TypeForms Form Checkbox Radio Button Text Field Textarea Selection Field Button Image Button Hidden FieldBasic...
it lost `div id=cke_textarea"`