我使用下面的代码在新窗口中打开 Google,但在 CKeditor 中这不起作用。
<div align="center"><button onclick="window.open('http://google.com','_self')">Click here to open <b> google </b>
</button></div>
最佳答案
将_self更改为_blank
<div align="center"><button onclick="window.open('http://google.com','_blank')">Click here to open <b> google </b>
</button></div>
这应该有效。
关于html - CKeditor - html Onclick 属性不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35220058/