|
Project Information
Links
|
xedit - небольшая javascript библиотека для работы с текстом в textarea. Библиотека заточена под IE, FF, Opera, Chrome. Библиотека представляет собой статический класс xedit обеспечивающий следующую функциональность: - Табуляция. Tab действует не как переключатель на следующее поле, а как табуляция текста в textarea, одной или группы строк. Параметр настройки (char)insertTabChar, по умолчанию \t.
- Обратная табуляция. Tab + shift позволяет убрать табуляцию слева как \t так и пробелы
- Дублирование строк. Позволяет быстро продублировать нужную строку. Ctrl+Alt+Up дублирует строку вверх, Ctrl+Alt+Down дублирует строку вниз. Параметр настройки (bool)doubleRow, по умолчанию включена.
- Соблюдение отступов. Новая строка имеет такую же табуляцию, что и предыдущая строка. Параметр настройки (bool)indentNewLine, по умолчанию включена.
- Собственная обработка Ctrl+S. Возможность задать свою функцию по нажатию на ctrl+s (только для IE, FF, Chrome)
- Перехват закрытия окна/вкладки. Возможность задать свою функцию или сообщение по закрытию окна/вкладки (только для IE, FF, Chrome)
Подробнее тут http://webiteam.ru/2009/04/tabulation-in-textarea/ xedit - small javascript library to work with the text in the textarea. Supports IE, FF, Opera, Chrome. The library is a static class xedit provides the following functionality: - Tab. Tab button does not operate as a switch to the next field, but as the tab text in the textarea, or one group of rows. Parameter settings (char) insertTabChar, by default \ t.
- Backtab. Tab + shift allows you to remove the tabs on the left as \ t and gaps
- Duplicate strings. allows you to quickly duplicate the row. Ctrl + Alt + Up duplicates line up, Ctrl + Alt + Down duplicated down the line. Parameter settings (bool) doubleRow, the default is enabled.
- Compliance with the indentation. The new line has the same tabs as the previous line. Parameter settings (bool) indentNewLine, the default is enabled.
- Own handling Ctrl + S. Ability to define its role in the pressing ctrl + s (only for IE, FF, Chrome)
- Intercepting closing windows / tabs . Ability to define its function, or a message to close the windows / tabs (only for IE, FF, Chrome)
More here http://webiteam.ru/2009/04/tabulation-in-textarea/
|