Forum closed. New forum available at http://community.wymeditor.org/
WYMeditor.editor.prototype.pasteHtml = function(sData) {
var container = this.selected();
if(container && container.tagName.toLowerCase() != WYMeditor.BODY) {
jQuery(container).after(sData);
} else {
jQuery(this._doc.body).append(sData);
}
};
Surt wrote:Hi,
i was working on it at:
viewtopic.php?f=3&t=383
using some code from a french post, you could see the code at the 3rd post.
yourWymInstance.insertAtCaret('a html snippet');
yourWymInstance = jQuery.wymeditors(0);
netnak wrote:Having started this thread, I'm very,very grateful you guys have found a solution. Thank you!
netnak wrote:Unfortunately I do want to manipulate the selection in some instances. Yes, I can now insert my own HTML (derived from code that, typically, picks data from some database or other), but if the user comes back to edit their inserted snippet, they will select it and expect my code to understand its contents. So for this I guess I await 0.6 (and continue to grumble about all things IE...).
netnak wrote:The road map has 0.6 a mere week away. Is this still the case or have you a revised estimate?
Users browsing this forum: No registered users and 1 guest