Ticket #1617 (closed New Feature: fixed)
Implement ReplaceAllTextareas for the JavaScript integration
| Reported by: | fredck | Owned by: | fredck |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.6 |
| Component: | General | Version: | SVN |
| Keywords: | Review+ | Cc: |
Description
There is a well known approach to replace all <textarea> fields in the page with FCKeditor instances. It has been published at our Wiki.
It would be nice to introduce such feature in the editor code, making some enhancements to it:
// Replace all <textarea> elements in the page.
FCKeditor.ReplaceAllTextareas() ;
// Replace all <textarea class="myClassName"> elements in the page.
FCKeditor.ReplaceAllTextareas( 'myClassName' ) ;
// Selectively replace <textarea> elements, based on custom assertions.
FCKeditor.ReplaceAllTextareas( function( textarea, editor )
{
// Custom code to evaluate the replace, returning false if it
// must not be done.
// It also passes the "editor" parameter, so the developer can
// customize the instance.
} ) ;
This is a follow up for a discussion started at our forums.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.