Member
|
kentico_edwardh
-
5/19/2012 10:17:18 AM
RE:Stop Editor from replacing embed tags with inline media control
Hello,
By default, in editable regions we convert embed tags to a control macro. When the page is rendered, this is resolved to html that will display the video correctly for the detected browser in most cases.
If you would like to change this behavior so that the embed tags are not automatically converted, you can modify the following file in your web project: ~\CMSAdminControls\FCKeditor\fckconfig.js
Note that if you modify this, you will lose the 'InsertImageOrMedia' dialog options in the toolbar.
1. Comment out this line: FCKConfig.Plugins.Add('InsertImageOrMedia', 'en,cs'); //change to: //FCKConfig.Plugins.Add('InsertImageOrMedia', 'en,cs');
2. From the following section, remove: 'InsertImageOrMedia', FCKConfig.ToolbarSets["Default"] = [ ['Source', '-', 'Preview'], ['Cut', 'Copy', 'Paste', 'PasteText', 'PasteWord', '-', 'Print'], ['Undo', 'Redo', '-', 'Find', 'Replace', '-', 'SelectAll', 'RemoveFormat'], ['Bold', 'Italic', 'Underline', 'StrikeThrough', '-', 'Subscript', 'Superscript'], ['OrderedList', 'UnorderedList', '-', 'Outdent', 'Indent'/*, 'Blockquote'*/], ['JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull'], ['InsertLink', 'Unlink', 'Anchor'], ['InsertImageOrMedia', 'QuicklyInsertImage', 'Table', 'Rule', 'Smiley', 'SpecialChar', 'PageBreak'], ['InsertBizForms', '-', 'InsertInlineControls', '-', 'InsertPolls', '-', 'InsertRating', '-', 'InsertYouTubeVideo'], '', '/', ['Style', 'FontFormat', 'FontName', 'FontSize'], ['TextColor', 'BGColor'], //['AutoSave'], ['FitWindow', 'ShowBlocks'] // No comma for the last row. ];
3. Save the above changes then clear browser cookies and restart any browsers you're testing your site with.
Best Regards, Edward Hillard
|