tinymce extended_valid_elements用于微数据

Men*_*les 5 javascript php cakephp tinymce microdata

我们当前在CakePHP框架上使用TinyMCE(版本:3.3.9.2(2010-09-29)),并尝试tiny_mce/themes/advanced/editor_template.js通过添加以下内容来修改Advance Themes文件以接受Microdata语法(用于使用Schema.org词汇)串:

extended_valid_elements : "p[itemtype|itemscope|itemprop|id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup]",
Run Code Online (Sandbox Code Playgroud)

和/或

extended_valid_elements : "@[itemtype|itemscope|itemprop|id|class|style|title|dir<ltr?rtl|lang|xml::lang|onclick|ondblclick|onmousedown|onmouseup|onmouseover|onmousemove|onmouseout|onkeypress|onkeydown|onkeyup]",
Run Code Online (Sandbox Code Playgroud)

引用此调试代码段:http ://www.tinymce.com/develop/bugtracker_view.php? id=4469

但是,当我们修改文件并刷新时,即使我们在HTML源代码编辑器中进行了测试<p itemtype="def">This is some content.</p> <div itemscope itemtype="http://schema.org/Movie">This is some content.</div>作为测试,所有内容都将被剥离。

任何人都对如何解决或使TinyMCE继续剥离结构化数据有什么想法?