Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/91.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在HTML JavaScript自定义文本格式化程序中实现减少缩进?_Javascript_Html_Angular_Execcommand - Fatal编程技术网

如何在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)