If ( $('#editContainer').hasClass('edit') ) else if ( $('#editContainer'). redactor('destroy') does not work īackground: url("./img/icon-edit-16.png") no-repeat 0 0 īackground: url("./img/icon-error.png") no-repeat 0 0 Referrer to the redactorjs API for the list of supported elements. I believe theres at least one jquery plugin that attempts to solve that problem, and a bunch of solutions involving Flash, but were after a more lightweight fix. jQuery based WYSIWYG-editor, official author's website: This is a codebase mirror hosted here for your, my dear Githubbers', convenience. The difference is, I don't want 2 functions, I'm combining it into 1 function, depending on which class the editContainer has, will depend on which if-else is executed Proceed with caution or refer to Happy to transfer ownership if you want to maintain a fork. Redactor is free to the MIT License, or GPL, your choice. This is a completely new and modern tool for creating rich-content with grids, embed code, templates, snippets, and whatever. Onclick X, destroy editor, WYSIWYG editor back to original text Redactor replaces theQuite simple really, edit icon appears top right of content, onclick change content to WYSIWYG editor, also change icon to X for cancel Call with jQuery Initialize for the div layer Initialize as the inline editor Requirements Redactor requires a modern browser with full Javascript and HTML5 support. JQuery version: jquery-1.10.1.min.js (also tried 1.9.0 which comes bundled in demo) If you are using an old version of redactor, you can try the set API, which I think is a lower-level version of insertText / insertHtml.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |