如何在HTML JavaScript自定义文本格式化程序中实现减少缩进?
我正在使用自定义文本格式化程序组件。我使用下面的代码实现了其他功能(粗体、斜体、缩进等),但我没有在这里找到缩进如何在HTML JavaScript自定义文本格式化程序中实现减少缩进?,javascript,html,angular,execcommand,Javascript,Html,Angular,Execcommand,我正在使用自定义文本格式化程序组件。我使用下面的代码实现了其他功能(粗体、斜体、缩进等),但我没有在这里找到缩进 document.execCommand(aCommandName, aShowDefaultUI, aValueArgument) 我将如何实现这一点?有用于制表符的缩进和缩进执行命令功能。例如: 缩进--doc.execCommand('Indent',true,null) Outdent--doc.execCommand('Outdent',true,null)
document.execCommand(aCommandName, aShowDefaultUI, aValueArgument)
我将如何实现这一点?有用于制表符的缩进和缩进执行命令功能。例如: 缩进--
doc.execCommand('Indent',true,null)代码>
Outdent--doc.execCommand('Outdent',true,null)代码>