Skip to content

carstenschaefer/redactor-searchreplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

redactor-searchreplace

Searches and replaces text in editor. Can be started using a button in the toolbar or by pressing CTRL+F.

##Requirements Font Awesome is required.

##Features:

  • Preserves any formatting while replacing.
  • Search and replace can operate on text selection or on whole content.
  • Can match on word boundaries only.
  • Can be case sensitive or not.

A plugin developed for Redactor, a WYSIWYG rich-text editor made by imperavi.

The example uses [Angular Redactor] (https://github.com/TylerGarlick/angular-redactor).

Feel free to contribute to this repository.

##Installation

Include searchreplace.js and fontawesome in your markup:

<link rel="stylesheet" type="text/css" href="font-awesome/css/font-awesome.min.css" />
<script src="searchreplace.js"></script>

##Usage Configuration via HTML markup:

<div id="page-editor-toolbar"></div>
 <textarea ng-model="pageModel.content"
                redactor="{
							focus: true,
							linebreaks: false,
							tabKey: true,
							plugins: ['searchreplace'],
							toolbarExternal: '#page-editor-toolbar'
                          }"></textarea>

About

Redactor plugin for search and replace text in editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published