com.ephox.editlive.model
Interface ImageManager


public interface ImageManager

Useful methods for handling images in the editor. Instance available via ELJBean.getImageManager().

Since:
7.5

Method Summary
 Element getImageElement()
          Returns the currently selected element if it is an image, otherwise null.
 Map<String,Collection<Element>> getLocalFilesWithAttributes(Map<HTML.Tag,HTML.Attribute> tagsToUpload)
          Find all elements that have local files to upload matching a given pattern
 

Method Detail

getImageElement

Element getImageElement()
Returns the currently selected element if it is an image, otherwise null.


getLocalFilesWithAttributes

Map<String,Collection<Element>> getLocalFilesWithAttributes(Map<HTML.Tag,HTML.Attribute> tagsToUpload)
Find all elements that have local files to upload matching a given pattern

Parameters:
tagsToUpload - A map of HTML.Tag -> HTML.Attribute that the element must have.
Returns:
Map of filenames to a collection. The collection for each filename contains elements which have that filename in one of the matching attributes from the source map.

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