When I create a new custom rules on 4.4.1.
I add the xPath query to the textbox but when I save it doesn't really save as when I try to edit the rule, the xquery textbox is empty. Then after when I type it again and save, the xquery textbox disapears from the edit panel, see below screen shot.
Also, when I try to analyze my code with that custom rule enabled it doesn't catch any error.
I created a custom with the xpath query //IDENTIFIER[string-length(#tokenValue) >= 10] just to test if I could make a custom rule works
Any help would be appreciated. Thanks
Looks like you have encountered http://jira.codehaus.org/browse/SONAR-5575 and http://jira.codehaus.org/browse/SONAR-5574, they will be fixed in the upcoming 4.5.1
Related
I implemented a version of the image insert Simple Plugin example from CKEditor 5's framework docs.
But the example doesn't cover how to disable the item when the editor's isReadOnly property is set (like it does by default for all the standard buttons). I found docs for an isEnabled prop as well as a bind method for ButtonView, but it quotes examples using a command item, rather than a view item. Problem is, the Simple Plugin example doesn't create a command to bind to.
So question is whether I need to create a command, or if there is some other way to make the view item's state sensitive to the readonly state of the editor instance.
Thanks, and my apologies if I've left out any needed context (new to posting here on SO). Feedback is welcome (and I know y'all will whip me into shape).
D'oh, I think I figured it out:
view.bind('isEnabled').to(editor, 'isReadOnly', isReadOnly => !isReadOnly);
Just needed to bind to the observable property of the editor. Seems to be working as I desired/expected.
I am wondering if anyone knows how to convert an convert a Sitecore Validator to display a warning instead of an error. Specifically the Full Page XHTML validation. Basically we want to keep the warning on the page as a CYA and not remove it completely but still allow content editors to proceed.
How would I accomplish this best if possible? Any pointers are welcome!
You can find the validation rules under /sitecore/system/Settings/Validation Rules.
In the example of Full Page XHTML validation, that would be /sitecore/system/Settings/Validation Rules/Item Rules/Item/Full Page XHtml. You can actually edit the Parameters field. To change the severity of the validation, add the Result parameter, with one of the following values:
Valid
Suggestion
Warning
Error
CriticalError
FatalError
In your example to have the error show as warning, set the Parameters field to Result=Warning
Note that this change will show everywhere the rule is used (and breached).
I am need to achieve the following behavior.
I have added some stuff to the mailItem.HTMLbody, a table with some data and a couple of links.
My plugin has a button, which when adds some html after the position of the cursor. This event may occure several times.
I have tried using WordDocument.selection class for this, but it works with the mailItem.body rather than the mailItem.HTMLBody.
How should I go about this?
Thank you in advance.
Outlook does not use an HTML editor on top of HTMLBody. It uses the Word editor accessible from Inspector.WordEditor.
Is my expectation valid? If yes, please guide me.
Local machine->local server process-> I generate Birt report-> which contain hyperlinks hard coded for example: http://www.ip_one.com/birtserver/parameters...(this is fine and points to another report and get me the report also when I hit the Url from inside the generated pdf report).
Now, what I need is to change ip_one to suppose ip_two once I hit the hyperlink which is inside the pdf(on the fly) keeping all the other parts of the url intact.
I am using birt-rcp-report-designer-4_2_2.
Thanks in advance.
It sounds like you are trying to dynamically create a hyperlink at report run time.
In the properties editor of the report item that has your link (i.e. label), edit the hyperlink. In the Hypelink Options (pop-up) to the left of "Location" field is the button ab| select 'JavaScript' Syntax.
You will be able to create the URL using JavaScript.
I created a few small widgets for magento. Everything fine, but I can`t seem to figure out how to add a richtext (tinymce wysiwyg) field to my widget.
Only thing I find on this is: "use ‘wysiwyg’ => true" in "$fieldset->addField". But I cannot use this in my custom widget, can I?
I understand that I can use addField to add a field to for example a product or CMS page.
But the only way of adding fields in my custom widget, as far as I know, is by adding parameters in my widget.xml. Other widget I build by following some tutorial returns a button, by using a custom type as parameter:
$removeButton = $this->getLayout()->createBlock('adminhtml/widget_button')
->setType('button')
->setClass('delete')
->setLabel($this->__('Remove Image'))
->setOnclick('document.getElementById(\''.$element->getId().'\').value=\'\';if(document.getElementById(\''.$element->getId().'_image\'))document.getElementById(\''.$element->getId().'_image\').parentNode.remove()')
->setDisabled($element->getReadonly())
->setStyle('margin-left:10px;margin-top:7px');
But i just can`t figure out how to add a richtext field in either my Widget.xml or my phpfile for the custom type.
What am I missing? Hope someone can help me out.
There are a few related entries here on stackoverflow, try searching if you are still having problem with this. Also, have a look at this brilliant article: http://www.behrendt.io/2013/04/12/using-a-wysiwyg-editor-in-a-magento-widget/
It helped me getting started. I got it working as a plain text field but whenever I turn the field to true WYSIWYG the content is never updated and the AJAX call does not contain the new HTML.