Open astroxoom opened 7 years ago
Check url to wysihtml.js Open Developer console, switch to network tab and reload page. Filter by Javascript.
Sorry for late reply.
I've also put the wysihtml javascript files below the jQuery.
Here is the statistics (in particular order) [note that all time is 0ms] jquery.min.js wysihtml.js wysihtml-toolbar.min.js advanced.js bootstrap.min.js
@astroxoom see
If you see 0 in "Transferred" or "Size" column it's because script isn't loaded at all.
@Globulopolis
@astroxoom try to disable any cache for test.
@Globulopolis I disabled it (when DevTools is opened) but still it is undefined, sorry for the late comment tho.
I changed
$(function() {
var editor = new wysihtml.Editor("wysihtml-textarea", {
toolbar: "wysihtml-toolbar",
parserRules: wysihtml5ParserRules
});
});
to:
(function($) {
var editor = new wysihtml.Editor("wysihtml-textarea", {
toolbar: "wysihtml-toolbar",
parserRules: wysihtml5ParserRules
});
});
There is no error anymore. However, the textarea is not displaying so well, even the toolbar is not showing up.
Hmmm... This is my code for editor and toolbar(using bootstrap for some menus and famfamfam iconpack for buttons) http://demo.киноархив.com/static/wysihtml/
I updated my jquery and bootstrap javascript files, used jQuery(document).ready(function($){...});
, and now I can use CTRL+B to bold text around my text-area, but now I cannot use the toolbar. Cannot read property 'querySelectorAll' of null
@astroxoom can you provide a demo of you code? Or jsfiddle example.
I replaced the wysihtml, all-commands, table_editing, toolbar with the one provided in the dist folder.
Now this errors came up, checked Network tab in Google Chrome, they have status of 200 which means OK.
Note that I didn't build this from npm, just cloned the repository then copied the files from the dist folder over to my own dist folder.
I'm using the latest version so far (installed with bower but relocated the files) then I have already set up everything.
By the way, i'm also using jQuery + Bootstrap + a Modal for my "Create Post"
When everything is already finished setting up, when I see my
textarea
it is just like a normal one, then I see my console log and it says that: