ADF RichTextEditor自动提交在Google Chrome中无效

时间:2017-10-11 14:14:44

标签: google-chrome events onchange rich-text-editor

在JDev 12c中使用带有autosubmit =“true”的RichTextEditor时,我遇到了问题。该组件以编程方式添加到表单上。

在Firefox中,自动提交会针对任何类型的操作正确触发(例如:输入,更改文本样式等)

在Chrome的另一方面,并​​非所有操作都会触发自动提交。例如,键入一些文本会触发自动提交,但是然后选择文本并更改颜色或字体大小,例如,不会触发值更改事件/自动提交。

之前有没有其他人遇到过这种行为?

提前致谢!

1 个答案:

答案 0 :(得分:0)

我也有同样的问题,RichTextEditor的文字很难删除内容或以编程方式重置, 我建议使用其他文本工具,例如众所周知的RichTextArea

// Create a rich text area
final RichTextArea rtArea = new RichTextArea();
rtArea .setCaption("My Rich Text Area");

// Set initial content as HTML
rtArea .setValue("<h1>Hello</h1>\n" +
                 "<p>This rich text area contains some text.</p>");

然后您可以将其大小调整为RichTextEditor的大小,并像往常一样通过jscss通过一些技巧为其提供相同的视觉颜色。