Improvements to richtexteditor to allow file management in raw html editor. Also allow disabling of raw html editor which can be utilized via new setting in Html/Text module.
This commit is contained in:
@ -293,5 +293,19 @@ namespace Oqtane.UI
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
public ValueTask<int> GetCaretPosition(string id)
|
||||
{
|
||||
try
|
||||
{
|
||||
return _jsRuntime.InvokeAsync<int>(
|
||||
"Oqtane.Interop.getCaretPosition",
|
||||
id);
|
||||
}
|
||||
catch
|
||||
{
|
||||
return new ValueTask<int>(-1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user