Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
dragonman123
@dragonman123
Hey anyone there, I need some help..
Rodion Borisov
@vintprox
Hello
Anybody here)
Rodion Borisov
@vintprox
WYMeditor is genius. All simple is genius! Author +1
Shahar Dawn Or
@mightyiam
Thanks, @VINTproYKT. I'm not the original author. I'm the current maintainer.
Rodion Borisov
@vintprox
Anyways, I have licensing issues on how I can provide my source to people, need I?
Shahar Dawn Or
@mightyiam
@VINTproYKT I'm no lawyer but according to this you shouldn't have to.
Rodion Borisov
@vintprox
@mightyiam So, I've found excellent license for me: GNU LGPL. So, anybody can adjust experience with "widgets", microelements that are used in ready product (HTML template that my program does)
One question here - can I use WYMeditor in my app that is under GNU GPL.
?
Shahar Dawn Or
@mightyiam
@VINTproYKT I have no experience with such licensing questions, really
Rodion Borisov
@vintprox
@mightyiam How can I setup WYMeditor correctly? I have read and re-read this article, and what I just get after $("#doc").wymeditor() is such picture...
blob
it looks kinda some JS and CSS are not loaded.
I have downloaded latest, 1.0.5, contributed by you, unzipped.
And here I can't get idea of what files I really need just to activate WYMeditor in my document
I have tried to copy dist/wymeditor folder to my main app folder, where my XHTML file is situated
then I properly added needed script to queue in head: <script src="wymeditor/jquery.wymeditor.min.js" type="text/javascript" />
yeah, after <script src="js/jquery-2.1.4.min.js" type="text/javascript" />
Rodion Borisov
@vintprox
$(document).ready(function() {
    /* other stuff */
    $("#doc").wymeditor();
}

My XHTML have this piece of code: ```

<form>
<textarea id="doc"></textarea>
</form>
```

And result is what use see on picture
Also when I put files from repo in src/wymeditor to wymeditor in my app folder, nothing changes
Looks like src has more advanced things, including core.js, that, I think, is very important in setting my editor.
Rodion Borisov
@vintprox
And that parser folder - hah, yeah, I can't just write my WYSIWYM content without XML parser, it will looks weird and broken
I can't compare two folders src and dist by necessity, cause one loads core modules and at the same time second loads jQuery module. Why are they seprated, and need I unite them actually?
Thanks in advance!
Wes Winham
@winhamwr
@VINTproYKT if you downloaded the pre-built release, you shouldn't have "src" or "dist" folders: https://github.com/wymeditor/wymeditor/releases/download/v1.0.5/wymeditor-1.0.5.tar.gz
That pre-built release is actually just the contents of the "dist" folder, though, if you'd like to use what you already have.
Rodion Borisov
@vintprox
@winhamwr Thank you! So I can place wymeditor folder in my root and place AUTHORS and licenses files in wymeditor, if I'm right? Hm, anyways, I tried to download wymeditor v1.0.5 from Releases page in .zip format. Maybe it's cause?
Rodion Borisov
@vintprox
Got it, it was a source code in .zip. Yeah, I need to learn more about GitHub :D
Rodion Borisov
@vintprox
Shahar Dawn Or
@mightyiam
@VINTproYKT here you go
Rodion Borisov
@vintprox
@mightyiam Alrighty!
Rodion Borisov
@vintprox
Oh no, I hate this app "GitHub" for Windows!
It removed all my files for repo
  1. Created branch "develop".
  2. Just suddenly commited my first upload under wrong name/account.
  3. I have removed branch "develop".
  4. PROFIT, all my files gone!
Rodion Borisov
@vintprox
Erm, it's good that I have saved my OLD copy of project. It's so boring to recreate after all errors have been resolved. :(((
P.S.: GitHub Desktop must burn
Rodion Borisov
@vintprox
OK, I have reproduced my previous state with little efforts, so all is fine :) (but with strange error)
This message was deleted
oh, whaaaaaat. this strange error disappeared itself, bravo :clap:
Shahar Dawn Or
@mightyiam
Phew
Rodion Borisov
@vintprox
or... not. Dam*, I need to resolve it myself. But it looks like exec doesn't work properly... I can't understand why it's happening, cause error addressed to edited.js. This file makes really bad in debug. Before that I have error with skin, and I just cannot understand how you're requiring css and js files inside jquery.wymeditor.js
Rodion Borisov
@vintprox
Console just says that undefined is not a function
Rodion Borisov
@vintprox
AND now it disappeared itself again
what's the heck?
oh, i get it. It appears only when page loads really quick.
Rodion Borisov
@vintprox
Such errors are appearing when I click on iframe, call exec, etc.
WYMeditor.editor.hasSelection, line 3380:
        rangy.isSelectionValid(wym._iframe.contentWindow) !== true