|
@@ -185,7 +185,9 @@ export const processToolbar = (vditor: IVditor, actionBtn: Element, prefix: stri
|
|
if (range.toString() === "") {
|
|
if (range.toString() === "") {
|
|
html = `${prefix}<wbr>${suffix}`;
|
|
html = `${prefix}<wbr>${suffix}`;
|
|
} else {
|
|
} else {
|
|
- if (commandName === "code" || commandName === "table") {
|
|
|
|
|
|
+ if (commandName === "code") {
|
|
|
|
+ html = `${prefix}\n${range.toString()}<wbr>${suffix}`;
|
|
|
|
+ } else if (commandName === "table") {
|
|
html = `${prefix}${range.toString()}<wbr>${suffix}`;
|
|
html = `${prefix}${range.toString()}<wbr>${suffix}`;
|
|
} else {
|
|
} else {
|
|
html = `${prefix}${range.toString()}${suffix}<wbr>`;
|
|
html = `${prefix}${range.toString()}${suffix}<wbr>`;
|