Орла
Области
Компаний
Пользователи
Галерея
Фиксированные новости
Орла
Отзывы о фирмах
Тарифы
Пользователи
Области
Банкоматы
Торговые точки
Доска объявлений
Курсы валют
Скидки
организации Орла
организации области
товары
сайты
сайты Орел
Данные
Разделы
Поиск
Поиск запросы
Статистика
Показы каталога организаций
Статистика клиенты
Пользователи
Сайты
Управление сайтом
Анкета
Аптеки
Афиша
Афиша новая
Баннеры
Бизнес >
Викторина
Голосование
Гость на сайте
Истории
Календарь событий
Каталоги >
Конкурс красоты
Конкурс аудио
Консультации
Меню
Новое на сайте
Новости >
Организации >
Программа ТВ
Публикации
Разделы сайта
Рассылка
Рестораны
Секрет фирмы >
Сервисы >
Ссылки
Тесты
Файловый менеджер
Форум
Фотогалерея
Обратная связь
Недвижимость
Новый год
Тексты
Пользователи
Юридический рейтинг
Отзывы на товары
Бан пользователей
Жалобы
Новые тесты
Коронавирус
Файловый менеджер
Имя файла
replace.html
Содержимое
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www.gnu.org/licenses/gpl.html * * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") * http://www.gnu.org/licenses/lgpl.html * * - Mozilla Public License Version 1.1 or later (the "MPL") * http://www.mozilla.org/MPL/MPL-1.1.html * * == END LICENSE == * * This is the sample "Replace" plugin window. --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta content="noindex, nofollow" name="robots"> <script type="text/javascript"> var oEditor = window.parent.InnerDialogLoaded() ; function OnLoad() { // First of all, translate the dialog box texts oEditor.FCKLanguageManager.TranslatePage( document ) ; window.parent.SetAutoSize( true ) ; } function btnStat(frm) { document.getElementById('btnReplace').disabled = document.getElementById('btnReplaceAll').disabled = ( document.getElementById('txtFind').value.length == 0 ) ; } function ReplaceTextNodes( parentNode, regex, replaceValue, replaceAll, hasFound ) { for ( var i = 0 ; i < parentNode.childNodes.length ; i++ ) { var oNode = parentNode.childNodes[i] ; if ( oNode.nodeType == 3 ) { var sReplaced = oNode.nodeValue.replace( regex, replaceValue ) ; if ( oNode.nodeValue != sReplaced ) { oNode.nodeValue = sReplaced ; if ( ! replaceAll ) return true ; hasFound = true ; } } hasFound = ReplaceTextNodes( oNode, regex, replaceValue, replaceAll, hasFound ) ; if ( ! replaceAll && hasFound ) return true ; } return hasFound ; } function GetRegexExpr() { if ( document.getElementById('chkWord').checked ) var sExpr = '\\b' + document.getElementById('txtFind').value + '\\b' ; else var sExpr = document.getElementById('txtFind').value ; return sExpr ; } function GetCase() { return ( document.getElementById('chkCase').checked ? '' : 'i' ) ; } function Replace() { var oRegex = new RegExp( GetRegexExpr(), GetCase() ) ; ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, false ) ; } function ReplaceAll() { var oRegex = new RegExp( GetRegexExpr(), GetCase() + 'g' ) ; ReplaceTextNodes( oEditor.FCK.EditorDocument.body, oRegex, document.getElementById('txtReplace').value, true ) ; window.parent.Cancel() ; } </script> </head> <body onload="OnLoad()" scroll="no" style="OVERFLOW: hidden"> <div align="center"> This is my Plugin! </div> <table cellSpacing="3" cellPadding="2" width="100%" border="0"> <tr> <td noWrap><label for="txtFind" fckLang="DlgMyReplaceFindLbl">Find what:</label> </td> <td width="100%"><input id="txtFind" onkeyup="btnStat(this.form)" style="WIDTH: 100%" tabIndex="1" type="text"> </td> <td><input id="btnReplace" style="WIDTH: 100%" disabled onclick="Replace();" type="button" value="Replace" fckLang="DlgMyReplaceReplaceBtn"> </td> </tr> <tr> <td vAlign="top" nowrap><label for="txtReplace" fckLang="DlgMyReplaceReplaceLbl">Replace with:</label> </td> <td vAlign="top"><input id="txtReplace" style="WIDTH: 100%" tabIndex="2" type="text"> </td> <td><input id="btnReplaceAll" disabled onclick="ReplaceAll()" type="button" value="Replace All" fckLang="DlgMyReplaceReplAllBtn"> </td> </tr> <tr> <td vAlign="bottom" colSpan="3"> <input id="chkCase" tabIndex="3" type="checkbox"><label for="chkCase" fckLang="DlgMyReplaceCaseChk">Match case</label> <br> <input id="chkWord" tabIndex="4" type="checkbox"><label for="chkWord" fckLang="DlgMyReplaceWordChk">Match whole word</label> </td> </tr> </table> </body> </html>
/admin/fckeditor/_samples/_plugins/findreplace/
Имя
Дата
Размер
..
2013-04-27
lang
2013-04-27
fckplugin.js
2010-02-15
2 кб.
find.gif
2010-02-15
595 байт
find.html
2010-02-15
4 кб.
replace.gif
2010-02-15
326 байт
replace.html
2010-02-15
4 кб.
/admin/fckeditor/_samples/_plugins/findreplace
Загрузить файлы
Файл 1
Файл 2
Файл 3