postprocessModel: function() { var linkRules = this.parameters.linkRules; if (linkRules) { linkRules.applyToObject(this.objToEdit); } if(!this.objToEdit.cssClass && this.objToEdit.target == '_blank' ){ var hrefPath = this.objToEdit.href; var extn = hrefPath.split('.').pop(); if(extn == 'pdf'){ this.objToEdit.cssClass = 'ext-or-pdf-link'; //After the class there should be <span class="test"></span> should be added } } },
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
For your usecase customizing LinkDialog does not make sense to me. In case your use case is to skip link checker then I would have accepted overlaying. Instead I would recommend to create a custom plugin following [1] .
Views
Replies
Total Likes
For your usecase customizing LinkDialog does not make sense to me. In case your use case is to skip link checker then I would have accepted overlaying. Instead I would recommend to create a custom plugin following [1] .
Views
Replies
Total Likes
Sham HC wrote...
For your usecase customizing LinkDialog does not make sense to me. In case your use case is to skip link checker then I would have accepted overlaying. Instead I would recommend to create a custom plugin following [1] .
Thanks Sham,
Yes you are correct, the use case is to skip the link checker (i.e. "ok" button) and do a check on the type of link that is entered, hence the overlay. Now the overlay is working fine as expected. The only addition we require is addition of the span class to the anchor tag of the hyperlinked text, so that desired styling can be done through that span class. So is it possible to do that through this Linkdialog.js file?
Also, can you tell which jsp is called when the 'ok' button of the rte based component is clicked?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies