Pure js cross-browser WYSIWYM editor with a focus on the clean separation of content and styling.
<script src="js/jquery-2.1.4.min.js" type="text/javascript" />
$(document).ready(function() {
/* other stuff */
$("#doc").wymeditor();
}
My XHTML have this piece of code: ```
<form>
<textarea id="doc"></textarea>
</form>
```
src/wymeditor
to wymeditor
in my app folder, nothing changes
parser
folder - hah, yeah, I can't just write my WYSIWYM content without XML parser, it will looks weird and broken
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?
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
WYMeditor.editor.hasSelection
, line 3380
: rangy.isSelectionValid(wym._iframe.contentWindow) !== true
rangy
is missing function isSelectionValid
WYMeditor.editor.prototype.hasSelection = function () {
var wym = this;
console.log(rangy);
if (
// `isSelectionValid` is undocumented in current Rangy (`1.2.2`).
// It seems to be required because the `rangeCount` in `IE <= 8` seems
// to be misleading.
rangy.isSelectionValid(wym._iframe.contentWindow) !== true
) return false;
if (wym.selection().rangeCount === 0) return false;
return true;
};
Object
addCreateMissingNativeApiListener: function (listener) {
addInitListener: function (listener) {
config: Object
createMissingNativeApi: function createMissingNativeApi(win) {
createModule: function (name, initFunc) {
fail: function fail(reason) {
features: Object
init: function init() {
initialized: false
modules: Object
requireModules: function (modules) {
supported: true
util: Object
version: "1.2.2"
warn: function warn(msg) {
__proto__: Object