Get content from jquery CLEditor

How can I get content data what I am write in CLEditor using jquery keyup?

-------------Problems Reply------------

Wouldn't it make more sense to use CLEditor's .change event? From the documentation:

change - This event is triggered whenever the contents of the editor have changed. Since change detection is done using the keyup and mouseup events, this event occurs frequently as the user types.

I'm using version 1.3.0 of the cleditor, the following code is unofficial, I might be bad code, because I'm oop noob AND for many other reasons, but until the next release it does the trick for me : here is what I did :

In file jquery.cleditor.js :

add a trickyMethod option : line 100 :

replace this

imagesPath: function() { return imagesPath(); },

by this :

imagesPath: function() { return imagesPath(); },
trickyMethod: function(){}

Make the trickyMethod be called on keyup event : line :878

replace this :

.bind("keyup mouseup", function() {

by this :

.bind("keyup mouseup", function() {

Now you can go in your application code and invoke the cleditor with the trickyMethod option :

width: 600,
height: 600,
trickyMethod: function(){ alert("sdf"); }

Category:jquery Views:0 Time:2011-01-24
Tags: jquery

Related post

  • jQuery Cleditor wysiwyg text editor: keyup() works in webkit browsers but not Firefox or IE 2011-10-23

    I'm trying to follow up on a previous Stackoverflow question about how to display content from a Cleditor textbox in an external HTML element such as a <p>. Here's the question and the fiddle which solves my problem in webkit browsers but not F

  • jQuery Cleditor get textarea value on keyup 2011-10-15

    I'm using Cleditor I want to get the value on keyup and insert the text into another div. cleditor comes with change() event that i'm currently using in the jsfiddle example below, but tha

  • jQuery cleditor plugin: creating a new button 2012-03-11

    Using cleditor, I'm trying to set up a custom button with the following code: (function($) { $.cleditor.buttons.link_species = { name: "link_species", image: "fish.gif", title: "Species Link", command: "inserthtml", popupName: "link_species", popupCl

  • Set transparency of a DIV and its contents using jQuery 2009-08-20

    What is the best way to set the transparency of a HTML DIV element and its contents using jQuery? --------------Solutions------------- $('#my_element').css({ 'opacity' : 0.7 }); Do you want to actually set the opacity to each of the contained element

  • how to make table of content in jQuery 2010-06-25

    as I am beginer please tell me how I can make toc for my web page using jQuery. my page would look like this ====== sample Table of Content ==== Introduction |> What is Web |_> What is JavaScript Programming HTML5 |> Learn HTML5 |> Your F

  • How can you dynamically alter blogger content with jquery? 2010-09-24

    $('.body-fauxcolumns').load(''); I was experimenting with jquery and blogger and noticed that I can't change the content dynamically through manipulation functions. Am I doing something wrong? The code

  • Conditional formatting based on CONTENT with jQuery / Javascript when parsing xml 2010-11-03

    Conditional formatting jQuery / Javascript when parsing xml seems easy, but trying to do Conditional formatting based on CONTENT with jQuery / Javascript just don't work, I mean I can't get it to work... .-) If I want to change color of output () acc

  • How can I load dynamic content with jQuery? 2011-01-22

    I'm following "How to Load In and Animate Content with jQuery" and everything works fine, but if I have other links in the loaded <div/> the script doesn't work. Can anyone spot the bug in the following code? $(document).ready(function() { var

  • Dynamic content in jQuery Mobile? 2011-03-14

    Hey there- I'm testing jQuery Mobile and have a question. I wrote a simple jQuery plug-in that animates a few images based on some parameters. Very basic stuff. Now this works on any page I link to externally (rel="external"). However, if I use the b

  • load Content with jQuery without refresh 2011-07-21

    i want load Content(is html) with jQuery. why following code not worked for me? i use of this tutorial: html: click on each of this link load page it(hr

  • Make a scrollable content with jquery datatable 2011-07-31

    is there any way to make a scrollable content with jquery datatable?? here is my script : oTable = $('#tablex').dataTable ({ "sDom": "<'scrollContent't>T<'fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix'lfr>t<'

  • Get URL content with jquery 2011-12-01

    I know get content in PHP with file_get_contents('url') but I don't know how to get content with jQuery. please guide me how to load content of URL: --------------Solutions------------- You can use either the $.get() or $.load()

  • Tracking and Manipualting the contents via Jquery Ajax on database update 2012-01-08

    I am querying the database to retrieve contents via Jquery Ajax, and by using SetInterval function it queries the database for new contents every 1 min. My question is How can i keep track of New contents ? For ex: If database has new contents, I wan

  • How to show page loading spinner in my html page content using jquery mobile or jquery 2012-03-29

    I want to show page loading spinner in my html page content using jquery mobile or jquery .i tried some coding in jquery and ajax. its not working there any solution ..can anyone suggest me --------------Solutions------------- These should help

  • How to load a button from external page into a div content using Jquery load() 2012-04-25

    Currently I have the following navigation menu on my homepage: <div id="menu"> <ul> <li><a href="#" id="home">Home</a></li> <li><a href="#" id="portfolio">Portfolio</a></li> <li><a

  • Rebinding functions on dynamic content using jQuery and AJAX 2009-02-03

    I'm in the process of building a back-end admin panel for a site and I'm having an issue with the jQuery and AJAX code is use to build the page. On load, I bind actions to certain table fields allowing users to add or delete a colour or size. When th

  • How can I update a page content with jQuery Ajax and ASP.NET MVC? 2009-02-11

    I have a ActionResult named "MyPeriods(string dateSelected)" and in the end of it, I have a ViewData["periods"] = listOfPeriods (and after that, I have my return View(), fininshing up my method). When no "date" is passed, "date" is today, otherwise,

  • how to display 'loading' before content from jquery tabs is loaded 2009-06-19

    I am using jquery UI tabs and content loaded into the tab is on another page. so it is loading via ajax. There is some lag between the page loading during which the part of the screen where tab content will load is completley empty. Is there a way I

  • Equal the size of sidebar and content using jQuery 2009-06-21

    I've several <div class="sidebar"></div><div class="content"></div> The backgrounds of the sidebar and content are different. So, if they are not equal of height, the page behind shows up. I want to equal their heights using j

Copyright (C), All Rights Reserved.

processed in 0.153 (s). 11 q(s)