Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

How to avoid &replacing with & in Editor

$
0
0

Here am trying to embedd youtube video in some page using tiny mce editor. the url contians & symbols.

when i ok button in ediot and again open code option the & is replacing with & symbols. its bracking our functionality.

i dont want to replace & with &.

i modified like below below scenarios. none of them working.

context.Services.Configure<TinyMceConfiguration>(config =>
config.Default()
.AddSetting("valid_children", "+body[style]").AddSetting("extended_valid_elements", "script[language|type|src]").AddSetting("extended_valid_elements", "select[onchange|class|id],a[class|id|aria-label|href|name|rel|rev|urn|title|target|methods|hreflang|media|shape|type|class],div[data-experience]")
.RawSettings(customSettings)
.AddPlugin("entity_encoding", "raw")
);

or

if i use below code, code icon is not displaying in this block to insert URL.

context.Services.Configure<TinyMceConfiguration>(config =>
config.For<EditorialBlock>(t => t.MainBody).AddSetting("entity_encoding", "raw")
.AddSetting("valid_children", "+body[style]").AddSetting("extended_valid_elements", "script[language|type|src]").AddSetting("extended_valid_elements", "select[onchange|class|id],a[class|id|aria-label|href|name|rel|rev|urn|title|target|methods|hreflang|media|shape|type|class],div[data-experience]")
.RawSettings(customSettings)
.AddPlugin("entity_encoding", "raw")
);

when am added editorial block line code , my editor is not displyaing properly like below image.

https://drive.google.com/open?id=1ZifTJnh8gmIQoXx3J7rLlNvwFvIXTiae


Viewing all articles
Browse latest Browse all 6894

Trending Articles