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:
Shaun Walker
2022-08-19 15:32:30 -04:00
parent 2c1543aa82
commit 99d4d75d8e
6 changed files with 206 additions and 109 deletions

View File

@ -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);
}
}
}
}