content-editor

Launch Content Editor from code

血红的双手。 提交于 2020-01-24 13:45:03
问题 I have an application that is creating an new item in Sitecore then opening up the Content Editor to that item, it is loading fine but whenever i try to open the html editor i get a 'NullReferenceException'. This is only happening when i launch the application in this method. Source Code: [Serializable] public class PushToCMS : Command { public override void Execute(CommandContext context) { //Context.ClientPage.Start(this, "Action_PushToCMS"); Database dbCore = Sitecore.Configuration.Factory

Launch Content Editor from code

早过忘川 提交于 2020-01-24 13:42:47
问题 I have an application that is creating an new item in Sitecore then opening up the Content Editor to that item, it is loading fine but whenever i try to open the html editor i get a 'NullReferenceException'. This is only happening when i launch the application in this method. Source Code: [Serializable] public class PushToCMS : Command { public override void Execute(CommandContext context) { //Context.ClientPage.Start(this, "Action_PushToCMS"); Database dbCore = Sitecore.Configuration.Factory

parsley 2.0.3 not working with boostrap 3

谁都会走 提交于 2019-12-12 02:04:33
问题 i am trying to use parsely.js on my html page to validate input box. currently this html page contains one input box and one submit button. the structure is created using bootstrap 3 and this page does not contain Form tag. <div role='form'> <div class="row form-group"> <div class="col-xs-3"> <label title="fullname">Full Name</label> </div> <div class="col-xs-4"> <input type="text" class='form-control' id="name" name="fullName" data-parsley-required="true" data-parsley-required-message=

sharepoint: Using a Content Editor Web Part this error occurred:“Cannot retrieve properties at this time.”

百般思念 提交于 2019-12-10 12:52:17
问题 I have a content editor web part. Whenever I edit the content and then click save, the following errors occurred: "Cannot retrieve properties at this time." "Cannot save your changes" How do you fix this? I tried googling it.. there are some similar cases but not exactly the same. I tried this link: www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/MS-SharePoint/Q_21975446.html and this one: support.microsoft.com/kb/830342 and this one: blogs.msdn.com/gyorgyh/archive/2009/03/04

How to place cursor at the end of text after replacing HTML with jQuery?

本小妞迷上赌 提交于 2019-12-01 22:17:47
问题 I have a contenteditable div and trying to replace <font> tag with <span> tag but after replacing the html using jQuery replaceWith() function cursor defaults to the beginning of the text however I want it at the end of the replacing html. Here is the DEMO to reproduce the issue. Let me know if there is any problem reproducing the issue. Here is demo code gist <div id="test" contenteditable=true> <p> <font color="blue">Text to be replaced</font> </p> </div> <a id="replace" href="javascript