Updates to extended Epi link for version 10

PLACE FOR BLOG

Updates to extended Epi link for version 10

Updates to extended Epi link for version 10

marija

Support for anchors for links to anchors on Episerver pages from TinyMCE is now available for version 10!

Check it out on github:

  • Current version - tested on version of UI: 10.0.2: here
  • The old version 7.19.2 is available as a branch: here

The breaking change for dot to slash notation is the main reason for it to stop working, but I have also updated the usage of now obsolete Epi classes.

The CSS got broken as well, so the editor_plugin.js file had to be added a baseClass epi-link-item.

To get rid of the excess padding between these elements that didn't exist in version 7, I had to add the following CSS (which from my research should not give any damage to other elements in edit mode):

.Sleek .epi-form-container__section__row .epi-form-container__section__row--field:nth-child(5) {
    padding-top: 0 !important;
}

.Sleek .epi-form-container__section__row .epi-form-container__section__row--field:nth-child(4) {
    padding-bottom: 0 !important;
}

// I couldn't add a style or a class to the parent item of the href, since on "fieldCreated", parentNode was null, so had to opt for this and go a bit dirty.

Comments

no avatar

Raja Chandran (not verified) SAYS:

Nov 22, 2017 at 11.26 am

Hi,

This may not be relevant to the post. I have implemented property list and the entity have the Url property.

Trying to get the friendly Url using Dojo and not successful. Do you have any idea how to get the friendly url from Dojo.

Sample code

var registry = dependency.resolve("epi.storeregistry");
var store = registry.get("epi.cms.content.light");

var contentData;
dojo.when(store.get(contentlink),
function (returnValue) {
contentData = returnValue;
callback(contentData);
});
return contentData;

Regards,
Raja

no avatar

Raja Chandran (not verified) SAYS:

Nov 22, 2017 at 11.26 am

Hi,

This may not be relevant to the post. I have implemented property list and the entity have the Url property.

Trying to get the friendly Url using Dojo and not successful. Do you have any idea how to get the friendly url from Dojo.

Sample code

var registry = dependency.resolve("epi.storeregistry");
var store = registry.get("epi.cms.content.light");

var contentData;
dojo.when(store.get(contentlink),
function (returnValue) {
contentData = returnValue;
callback(contentData);
});
return contentData;

Regards,
Raja

LEAVE A COMMENT