Please open your browser's debug console to see the output.

Extending Core

Live Demo

Form Content

This is the data that will be submitted with HTML form.



	

	

Source

This is the original input HTML.

<textarea id="core-ext" class="example" rows="1"></textarea>

This is the JavaScript source that was used to initialize this demo instance of TextExt.

<script type="text/javascript">
    $('#core-ext').textext({
        ext: {
            core: {
                trigger: function()
                {
                    console.log('TextExt.trigger', arguments);
                    $.fn.textext.TextExt.prototype.trigger.apply(this, arguments);
                }
            }
        }
    });
</script>

Extending A Plugin

Live Demo

Form Content

This is the data that will be submitted with HTML form.



	

	

Source

This is the original input HTML.

<textarea id="tags-ext" class="example" rows="1"></textarea>

This is the JavaScript source that was used to initialize this demo instance of TextExt.

<script type="text/javascript">
    $('#tags-ext').textext({
        plugins: 'tags',
        ext: {
            tags: {
                addTags: function(tags)
                {
                    console.log('TextExtTags.addTags', tags);
                    $.fn.textext.TextExtTags.prototype.addTags.apply(this, arguments);
                }
            }
        }
    });
</script>

Extending ItemManager

Live Demo

Form Content

This is the data that will be submitted with HTML form.



	

	

Source

This is the original input HTML.

<textarea id="itemmanager-ext" class="example" rows="1"></textarea>

This is the JavaScript source that was used to initialize this demo instance of TextExt.

<script type="text/javascript">
    $('#itemmanager-ext').textext({
        plugins: 'tags',
        ext: {
            itemManager: {
                stringToItem: function(str)
                {
                    console.log('ItemManager.stringToItem', str);
                    return $.fn.textext.ItemManager.prototype.stringToItem.apply(this, arguments);
                }
            }
        }
    });
</script>
Fork me on GitHub