Intersoft Support Center

Enable Media Searching

WebTextEditor provides ways to enable Media Searching in Media Gallery, which are using search media on load and media resources.

This topic will show you how to enable media searching.

To search media on load

  1. Right-click on WebTextEditor control and choose Properties.
  2. Expand TaskPaneSettings >> MediaGallery.
  3. Set Enabled to True.
  4. To limit the media retrieved in the media search, set MaxMediaRetrieved to 10.

To use Media Resources

  1. Right-click on WebTextEditor control and choose Properties.
  2. Go to Media Resources and choose collection button.
  3. Add one media collection. Set Name to Products and Text to Products.
  4. Go to Resources and click the collection button.
  5. Add two members. For the first one, set Name to resProducts, Text to Product Images and Url to images/products/.
  6. For the second one, set Name to resScreenshots, SearchInChildFolder to True, Text to Screenshot Images and Url to images/screenshots/.
  7. Add another media collection. Set Name to Other and Text to Other.
  8. Go to Resources collection and click the collection button.
  9. Add one member. Set Name to resOther, Text to Other Images and Url to images/other/.
  10. Run the project. In this case, there are two MediaResourceGroup: Products and Other. Products group consists of products and screenshots folders, while Other group consist of other folder. In Media Gallery pane, open Search in combo. When you select Products group, the search will be performed in both products and screenshots folders, however if you select individual folder, for example: Screenshot Images, the search will be performed in screenshots folder only.
Previous Next