Class QuillEditorInterop
- Namespace
- Oqtane.Modules.Controls
- Assembly
- Oqtane.Client.dll
public class QuillEditorInterop
- Inheritance
-
QuillEditorInterop
Constructors
QuillEditorInterop(IJSRuntime)
public QuillEditorInterop(IJSRuntime jsRuntime)
Parameters
jsRuntime
IJSRuntime
Methods
CreateEditor(ElementReference, ElementReference, bool, string, string, string)
public Task CreateEditor(ElementReference quillElement, ElementReference toolbar, bool readOnly, string placeholder, string theme, string debugLevel)
Parameters
quillElement
ElementReference
toolbar
ElementReference
readOnly
bool
placeholder
string
theme
string
debugLevel
string
Returns
- Task
EnableEditor(ElementReference, bool)
public Task EnableEditor(ElementReference quillElement, bool mode)
Parameters
quillElement
ElementReference
mode
bool
Returns
- Task
GetContent(ElementReference)
public ValueTask<string> GetContent(ElementReference quillElement)
Parameters
quillElement
ElementReference
Returns
- ValueTask<string>
GetCurrentCursor(ElementReference)
public ValueTask<int> GetCurrentCursor(ElementReference quillElement)
Parameters
quillElement
ElementReference
Returns
- ValueTask<int>
GetHtml(ElementReference)
public ValueTask<string> GetHtml(ElementReference quillElement)
Parameters
quillElement
ElementReference
Returns
- ValueTask<string>
GetText(ElementReference)
public ValueTask<string> GetText(ElementReference quillElement)
Parameters
quillElement
ElementReference
Returns
- ValueTask<string>
InsertImage(ElementReference, string, string, int)
public Task InsertImage(ElementReference quillElement, string imageUrl, string altText, int editorIndex)
Parameters
quillElement
ElementReference
imageUrl
string
altText
string
editorIndex
int
Returns
- Task
LoadEditorContent(ElementReference, string)
public Task LoadEditorContent(ElementReference quillElement, string content)
Parameters
quillElement
ElementReference
content
string
Returns
- Task