Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
Material
Commits
689434d3
Unverified
Commit
689434d3
authored
Nov 08, 2016
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
editor: progression commit on editor
parent
74ddd183
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
Sources/iOS/Editor.swift
+5
-9
No files found.
Sources/iOS/Editor.swift
View file @
689434d3
...
...
@@ -78,21 +78,17 @@ public protocol EditorDelegate {
A delegation method that is executed when the textView did begin editing.
- Parameter editor: An Editor.
- Parameter didBeginEditing textView: A UITextView.
- Returns: A boolean indicating if the textView did begin editing, true if
yes, false otherwise.
*/
@objc
optional
func
editor
(
editor
:
Editor
,
didBeginEditing
textView
:
UITextView
)
->
Bool
optional
func
editor
(
editor
:
Editor
,
didBeginEditing
textView
:
UITextView
)
/**
A delegation method that is executed when the textView did begin editing.
- Parameter editor: An Editor.
- Parameter didBeginEditing textView: A UITextView.
- Returns: A boolean indicating if the textView did begin editing, true if
yes, false otherwise.
*/
@objc
optional
func
editor
(
editor
:
Editor
,
didEndEditing
textView
:
UITextView
)
->
Bool
optional
func
editor
(
editor
:
Editor
,
didEndEditing
textView
:
UITextView
)
/**
A delegation method that is executed when the textView should change text in
...
...
@@ -133,7 +129,7 @@ public protocol EditorDelegate {
- Returns: A boolean indicating if the textView should interact with a URL in
a given character range, true if yes, false otherwise.
*/
@available(iOS
8.0, *
)
@available(iOS
, introduced: 8.0, obsoleted: 10.0
)
@objc
optional
func
editor
(
editor
:
Editor
,
textView
:
UITextView
,
shouldInteractWith
URL
:
URL
,
in
characterRange
:
NSRange
)
->
Bool
...
...
@@ -147,7 +143,7 @@ public protocol EditorDelegate {
- Returns: A boolean indicating if the textView should interact with a
NSTextAttachment in a given character range, true if yes, false otherwise.
*/
@available(iOS
8.0, *
)
@available(iOS
, introduced: 8.0, obsoleted: 10.0
)
@objc
optional
func
editor
(
editor
:
Editor
,
textView
:
UITextView
,
shouldInteractWith
textAttachment
:
NSTextAttachment
,
in
characterRange
:
NSRange
)
->
Bool
...
...
@@ -351,7 +347,7 @@ extension Editor: TextViewDelegate {
}
}
@available(iOS
8.0, *
)
@available(iOS
, introduced: 8.0, obsoleted: 10.0
)
extension
Editor
{
open
func
textView
(
_
textView
:
UITextView
,
shouldInteractWith
URL
:
URL
,
in
characterRange
:
NSRange
)
->
Bool
{
return
delegate
?
.
editor
?(
editor
:
self
,
textView
:
textView
,
shouldInteractWith
:
URL
,
in
:
characterRange
)
??
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment