Example usage for com.liferay.portal.kernel.editor.configuration EditorOptions setTextMode

List of usage examples for com.liferay.portal.kernel.editor.configuration EditorOptions setTextMode

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.editor.configuration EditorOptions setTextMode.

Prototype

public void setTextMode(boolean textMode) 

Source Link

Usage

From source file:com.liferay.blogs.editor.configuration.internal.BlogsTextEditorOptionsContributor.java

License:Open Source License

@Override
public void populateEditorOptions(EditorOptions editorOptions, Map<String, Object> inputEditorTaglibAttributes,
        ThemeDisplay themeDisplay, RequestBackedPortletURLFactory requestBackedPortletURLFactory) {

    editorOptions.setTextMode(true);
}

From source file:com.liferay.comment.editor.configuration.internal.CommentEditorOptionsContributor.java

License:Open Source License

@Override
public void populateEditorOptions(EditorOptions editorOptions, Map<String, Object> inputEditorTaglibAttributes,
        ThemeDisplay themeDisplay, RequestBackedPortletURLFactory requestBackedPortletURLFactory) {

    editorOptions.setTextMode(false);
}