V
V
Vladimir Kashirin2015-05-15 18:55:00
CMS
Vladimir Kashirin, 2015-05-15 18:55:00

Easywyg visual editor for wordpress not connecting?

found an interesting visual editor easywyg
the instructions on the website read:

Insert this code into your website layout. We recommend to put it straight before </body> tag.

<article role="easywyg">...</article>
<script src="//storage.easywyg.com/57207116-76e4-40c5-aae4-80b37d843bce/easywyg.js"></script>
<script>
  // Note: you can pass element instead of #some_id
  new Easywyg('#some_id', { autoresize : false });
</script>

For multilpe editors on one page use following code:

<textarea>one</textarea>
<textarea>two</textarea>

<script src="//storage.easywyg.com/57207116-76e4-40c5-aae4-80b37d843bce/easywyg.js"></script>
<script>
  var textareas = document.querySelectorAll('textarea');

  // Loop through all textareas
  [].forEach.call(textareas, function(textarea) {
    new Easywyg(textarea, { autoresize: true })
  });
</script>

I opened footer.php and stuck the first piece of code before the closed body.
on the page of a new message - a regular visual editor, and not this one,
tell me what I'm doing wrong

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Petrov, 2015-05-21
@Slami6e

Personally, their website is not available to me at all, and he takes the script for work from there.
Yes, and it’s worth thinking a hundred times about using graphic editors, they generate shitty code at the very best. I personally refused.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question