占位符在 TINYMCE 的编辑器文本区域中不起作用

问题描述 投票:0回答:0

我们尝试在

tinymce.init
中添加占位符,但它没有显示在文本区域中。

tinymce.init({
  selector: "textarea",
 ** placeholder: "Enter paragraph text. Highlight the text to apply styling.",**
  skin: false,
  icons: '',
  menubar: false,
});

我们可以在 HTML 内容中看到它,但无法在文本区域中显示 enter image description here

实际结果:不在文本区域中显示占位符。

预期结果:在文本区域中显示占位符。

tinymce tinymce-6
© www.soinside.com 2019 - 2024. All rights reserved.