Skip to content

Commit e9c6401

Browse files
committed
Updated onDomLoaded() to enable multiline support for the content field
1 parent f1f933b commit e9c6401

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

WordPressEditor/src/main/java/org/wordpress/android/editor/EditorFragment.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ public void run() {
192192
String title = "I'm editing a post!";
193193
String contentHtml = getHtmlFromFile("example-content.html");
194194

195+
execJavaScriptFromString("ZSSEditor.getField('zss_field_content').setMultiline('true');");
196+
195197
// Load example content into editor
196198
execJavaScriptFromString("ZSSEditor.getField('zss_field_title').setHTML('" +
197199
Utils.escapeHtml(title) + "');");

0 commit comments

Comments
 (0)