| Page 1 of 4 | [ 34 posts ] | Go to page 1, 2, 3, 4 Next |
Khoa Bui
|
Hello YUI guys,
Do you have a plan for a fully function Editor with UI on YUI3. I migrate to YUI3 for long, but still have to use YUI2 Editor widget. |
|
There is no set date to create the GUI for the Editor any time soon, it will likely be a Gallery module if one were to be created.
|
Marco AsbreukYUI Contributor
|
Dav, if I'm right, some time ago, I read you were saying something about Yahoo!-mail that was using the YUI3-editor.
I'm not using Yahoo!-mail so I can't confirm which GUI it is using. But can't that GUI be placed in the gallery? I've started to build my own, but the problem is not the toolbar/buttons. The difficulty lies in a cross-browser safe execCommand together with the fact that a custom Y.Panel instance makes the focus lost of the editorframe. It's quite complex to create one of your own (I'm not there yet)... Kind Regards, Marco. |
|
I can't speak for the Y Mail team or their ability to open source the toolbar.
There should be no difficulty with "cross-browser safe execCommand" that's what EditorBase handles. If there is an issue there, then that's a bug. But the GUI absolutely should not be doing that. That's the point of the separation, Editor-Base should do all the heavy lifting while the GUI just makes it pretty. As for the focus issue, the trick is to execute a fake command first (like wrap) and hold the output of that command. Then open your panel and do your thing, but execute it on the wrapped elements from the first execution. |
Marco AsbreukYUI Contributor
|
All right then!
I'll give it a try. When I think its at a publish-level, I'll post it in the gallery. Thx, Marco. |
|
Feel free to send me any questions you have, I'm always more than happy to help
|
Marco AsbreukYUI Contributor
|
All right, that's good to know.
I already have some, but first some work to do and get on Github. Kind regards, Marco |
Khoa Bui
|
Marco, I just check with Yahoo mail, it actually uses the rich text editor widget with YUI 3.2.0.
About building the editor widget yourself, can you please share your idea, although it's in progress. If there is no such plan for an official editor, we have no way but build our own and share in the gallery. Regards, Khoa |
Marco AsbreukYUI Contributor
|
Hey Khoa,
I'll post it on github in about two/three weeks. It's almost ready (I'm using it right now) but has some difficulties as described above, and I need to clean the code a bit before publishing. At github you can have a look, use the code already, or perhaps alter it. I hope Dav will take a look at it that time as well. But I'll publish it as soon as I think other users can use it. It will be a plugin. Coming soon, I'll let you know the github-link. Kind regards, Marco. |
Marco AsbreukYUI Contributor
|
Hi Dav,
Could you help me out of this: I'm trying to manipulate the text by using the EditorSelection class. Code: editorY = myEditor.getInstance(); editorSelection = new editorY.EditorSelection(); But when the cursor is placed somewhere in the text, I see the following happen: editorSelection.getCursor() --> is empty editorSelection.setCursor(); --> will create the cursor's placeholder at start of the text (not at the cursor's position editorSelection.insertContent(); --> will insert the text at the start of the text (not at the cursor's position That is in firefox. In Safari totaly nothing happens… Am I using/defining the EditorSelection class in a wrong way? Thangs in advance, Marco |
| Page 1 of 4 | [ 34 posts ] | Go to page 1, 2, 3, 4 Next |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group