我正在使用下面的代码在新窗口中打开google,但在CKeditor中这不起作用。
<div align="center"><button onclick="window.open('http://google.com','_self')">Click here to open <b> google </b>
</button></div>
最佳答案
将自身更改为空白
<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/