What is PrimeFaces p:editor based on? - jsf-2

I want to add some client-side functionality to the PrimeFaces p:editor, but for some reason I am not able to uncover what JavaScript client side code they used to build the component. Could anyone point me to that?
P.S. two things I want to do is make the component resizable (PrimeFaces doesn't support that) and I want to add shortcut buttons to insert pre-programmed text. Any hints about how this will done will be appreciated.

PrimeFaces p:editor uses CLEditor
look at this thread
also you should take a look at the PrimeFaces Extensions Project they implemented an editor that uses the CKEditor

<p:editor/> JavaScript source is located in /META-INF/resources/primefaces/editor/editor.js inside primefaces-xxx.jar.

Related

How to display an custom editor inside a form page?

Is it possible to display or embed a custom editor inside a form page(form toolkit)? I have created a eclipse plugin where i need to embed a custom editor inside a multi - page form editor.
Is it possible?
If possible, How?
Am a newbie in eclipse plugin, This question may look easy for you people. Please help with this. I have searched a lot in internet but i couldn't find any perfect solution.
Updated :

jQuery UI dropdown select

I wanna have a dropdown menu like this link: http://datatables.net/release-datatables/examples/basic_init/table_sorting.html
(The one that are right below "Live example" line);
I haven't got many experience of working with jQuery UI, and I guess that result is produced by using it. Could you suggest me a way to create that dropdown.
Thank you.
P/S: that may be ok if it is not using jQuery UI (it's just my guess)
That solution doesn't appear too complex - they've got all the data already, and they're just hiding rows depending on what's selected.
On the other hand, as that's an open source project, you could just download it or use the hosted versions and integrate it on your site, which is probably easier than rolling your own solution.
Ok, got it. This is just default style in Firefox (There's no style applying for it yet). I got this misunderstand due to changing browser.

Does wicket has any Drag and drop component

I have 5-6 containers which I want to drag and drop across the viewable window.
Not on it's own but there are several jquery integrations to provide this functionality.
There are two interesting Wicket integrations for such stuff:
wicket-dnd: https://github.com/svenmeier/wicket-dnd
wicket-select2: https://github.com/ivaynberg/wicket-select2
I use both and am pleased with them, they both work with Wicket 6 and the Wicket jquery integration.
Yes, Wicket has such functionality in its wicket-ajax.js. It is being used by wicket-ajax-debug.js - the code used by the floating Ajax Debug window that you can see in DEVELOPMENT mode. But I also recommend to use the DnD functionality provided by the JavaScript library that use eventually use in your project.

Menu dropdown messed up after translating page using Google translator

My menu drop-down is now messed up, after I translated the page using on-the-fly Google translater. It refuses to recognize CSS classes I have created and used for exclusion (e.g, I have a class like this class="notranslate", which is no no longer working).
For demostration purpose, I have source code
here
Note: Must register to the site first. Any help would be appreciate it. Thanks
Not sure what is going on but look at this tool: Translate This
This uses the Google Translate but is easier to use.
Hope this can help you.

Adding an RTE to salesforce text areas

Does anyone know if there's a way to add an RTE to textarea fields within salesforce? I'm fairly new to the platform but i haven't been able to find any useful documentation on this.
In addition to the component, there's also an example of integrating the open source FckEditor component into Visualforce here:
http://blog.sforce.com/sforce/2009/05/a-rich-editor-component-for-visualforce.html
If you're using VisualForce, you can use the inputTextArea tag to edit/save rich text. Set the "richText" attribute to true.

Resources