|
@@ -23,7 +23,7 @@ export const processHint = (vditor: IVditor) => {
|
|
|
const key =
|
|
|
preBeforeElement.textContent.substring(0, getSelectPosition(preBeforeElement, vditor.ir.element).start)
|
|
|
.replace(Constants.ZWSP, "");
|
|
|
- Constants.CODE_LANGUAGES.forEach((keyName) => {
|
|
|
+ (vditor.options.preview.hljs.langs || Constants.CODE_LANGUAGES).forEach((keyName) => {
|
|
|
if (keyName.indexOf(key.toLowerCase()) > -1) {
|
|
|
matchLangData.push({
|
|
|
html: keyName,
|