com.ephox.editlive
Interface SourceFilter


public interface SourceFilter

The interface for filters that are plugged into the EditLive! Bean.


Method Summary
 String filterIn(String source)
          Filter the source code on the way in to the editor.
 String filterOut(String source)
          Filter the source code on the way out of the editor.
 

Method Detail

filterIn

String filterIn(String source)
Filter the source code on the way in to the editor. This is called both when initially loading content and when switching from code view back to design view.

Parameters:
source - the source code to filter. May be null if no source has been set.
Returns:
the filtered source code ready to be edited.

filterOut

String filterOut(String source)
Filter the source code on the way out of the editor. This is called both when retrieving the content and when switching to code view.

Parameters:
source - the source code to filter. May be null.
Returns:
the filtered source code ready to be displayed to the user.

Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved.