How to add code in tinymce - asp.net-mvc-3

I'm trying to write a tinyMce plugin to add and also separate code from text like this website , actually to show code in a simple box
how can I do that ?

You may use the code plugin. Just add code to your tinymce button list.

Related

Problems with plugin Codesnippet ckeditor Textarea

I'm using Ckeditor version 4.5
I want to use pulgin Codesnippet with Textarea. But it does not show well.
I used to tag Div, everything is normal:
Please help me use textarea
Have you looked at the official demo http://sdk.ckeditor.com/samples/codesnippet.html. There is also a sample code at the bottom page, you can try to use it. You may also look into the dev console for any errors.

Is there a config option to add a field for link text in Ckeditor Link dialog?

I know that in order to make a link in Ckeditor you type in the text and then highlight it and then click the Link button and add the URL and then press OK. Problem is that many of our customers are used to having it also to be able to add the link text, name or description whatever you want to call it in the Link dialog. So is there a way to add that field? We are using Ckeditor version 4.5.6.
I would like to have something like this:
But currently it's like this:
No. Currently that feature is not available. There's a feature request for that, but you can't be sure when it will be available.
You can use the API instead to modify the link dialog on the fly and add that field.

CKEditor: Customizing the Table Dialog Window

I am using the CKEditor module for Drupal7.
I want to customize the Table dialog window.
I saw this thread, But I am not clear where to add the code that #oleq added.
Here is the URL: Set default table properties for CKEditor?
In what file should I add the code?
Thanks.
If you're using the regular ckeditor module (ie not through wysiwyg module), then you can just add it to the bottom of:
sites/all/modules/contrib/ckeditor/ckeditor.config.js
If you're using wysiwyg module and ckeditor library, then it's more complicated, and I'll post it as a separate question since a few people have asked this.

Add Custom Button to TinyMCE in Joomla 2.5

I am currently creating a component for Joomla 2.5.
I would like to add a custom button to the TinyMCE editor, but being in the context of a Joomla component, I can not add files or code inside the TinyMCE editor plugin...
Is someone able to tell me what I am suppose to use to do so?
Thank you
Editor buttons are built as editors-xtd plugins. You may look at the readmore button, which is only added in article context.

Magento : Add to Cart function not working on Product details page

I am facing a strange problem and have no idea how to fix this since i am new to magento. The Add-to-cart button is not working on the product details page here
http://www.eyaas.com/products/home/decor/thai-benjarong/benjarong-dainty-cats.html
But it's working on the category page here
http://www.eyaas.com/products/home/decor/thai-benjarong.html
Why can this be happening. I have given the links above so that you can see the button code and tell me if somethings getting wrong.
EDIT
I removed the declaration for jquery library and my navigation file. Then the add to cart button started working. What i need to know is why does thing works well in localhost. Same files, same library and same code, but they just seem to encounter a conflict on server. Please suggest something
I can't see that you've added the jquery library in your code - the error seems to say jQuery is undefined - I think either remove all jquery or add the library should solve it
jQuery is added after your calling scripts.
Make sure you add your jQuery to the page BEFORE any other script that relies on it.
The reason for all this was the conflict between the jquery and prototoype.js library. I solved the same by using jQuery.noConflict() function and then replacing all the $ references in my javascript code with the jQuery
Just disable the js files added in page.xml and head.phtml added for that particular theme.
things will work :-)

Resources