-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added EditorWebViewAbstract and replaced EditorWebView usage in Edito…
…rFragment
- Loading branch information
Showing
3 changed files
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
WordPressEditor/src/main/java/org/wordpress/android/editor/EditorWebViewAbstract.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.wordpress.android.editor; | ||
|
||
import android.content.Context; | ||
import android.util.AttributeSet; | ||
import android.webkit.WebView; | ||
|
||
public abstract class EditorWebViewAbstract extends WebView { | ||
public abstract void execJavaScriptFromString(String javaScript); | ||
|
||
public EditorWebViewAbstract(Context context, AttributeSet attrs) { | ||
super(context, attrs); | ||
} | ||
|
||
@Override | ||
public boolean onCheckIsTextEditor() { | ||
return true; | ||
} | ||
} |