2012-08-03 56 views

回答

0

你應該使用相同的配置條目,jQuery適配器只是一個小包裝,引擎蓋下的所有東西都只是普通的CKEditor。

http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.templates_files

+0

jquery適配器不使用與文檔相同的變量約定。 '代碼' 變種配置= { 的UIColor: '#FFFFFF', stylesCombo_stylesSet:[], format_tags: 「P; H 2; H3; H4;格」, contentsCss:「/ JS /管理/ editorstyles /默認值。 css', extraPlugins:'stylesheetparser', scayt_autoStartup:true, toolbar_Full:[['Templates','Styles','Format','FontSize','TextColor','Bold','Italic','Underline ',' - ','NumberedList','BulletedList',' - ','Scayt','PasteText'], ['Image','Link','Unlink'],['Undo','Redo' ],['Source','Maximize','ShowBlocks']] \t \t}; – 2012-08-12 20:39:20

+0

我的猜測是在包裝上,以設置 templates_files:[「/pathtomytemplates/template.js」] 但這不起作用 – 2012-08-12 20:44:17

+0

還是那句話:有一個在jQuery的適配器沒有魔法,它只是提供了一些額外的方法使用CKEditor更好的來自jQuery,但構造函數jst將配置對象傳遞給正常的構造函數http://dev.ckeditor.com/browser/CKEditor/trunk/_source/adapters/jquery.js#L145 – AlfonsoML 2012-08-12 20:50:07