You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -152,6 +152,42 @@ When switched, this editor will always add media and horizontal rule after the c
152
152
aztecText.addMediaAfterBlocks()
153
153
```
154
154
155
+
### Placeholder API
156
+
157
+
Aztec now supports placeholders to draw views which are not natively supported by the EditText and Spannable API.
158
+
The functionality creates a span in the visual editor and draws an Android view over it.
159
+
The view is moved around when the user changes anything in the editor and allows you to draw things like video that can be played inline in the editor.
160
+
In order to use the API you have to create an instance of `PlaceholderManager` and initialize it in your `onCreate` call like this:
We use [ktlint](https://github.com/shyiko/ktlint) for Kotlin linting. You can run ktlint using `./gradlew ktlint`, and you can also run `./gradlew ktlintFormat` for auto-formatting. There is no IDEA plugin (like Checkstyle's) at this time.
0 commit comments