Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^8: TinyMCE javascript toolbar ( perlmonks/plugin.js v2 )

by Steve_BZ (Chaplain)
on Dec 16, 2014 at 08:54 UTC ( [id://1110462]=note: print w/replies, xml ) Need Help??


in reply to Re^7: TinyMCE javascript toolbar ( perlmonks/plugin.js v2 )
in thread TinyMCE javascript toolbar

Hi Anonimous Monk,

Well, I tried out your code, but I couldn't get it running.  This is what I did:

I downloaded the the dev version of tinyMCE version 4.1.7 , unpacked it and put it on the server.

I uploaded your pluggin (the version on the above post).

I checked the paths.

I loaded up your local html file on my pc and ran it in firefox.  I get

ReferenceError: "tinymce is not defined pm_test_editor.html:23"

Pointing to "tinymce.init".

Have I missed a step?

Meanwhile the updated version in my first post is still working, but clearly without your multiline "code" pluggin and the PM command set.

Thanks for doing this.

Do you want to send me a private message with your email address and we can converse offline?

Regards

Steve.

Replies are listed 'Best First'.
Re^9: TinyMCE javascript toolbar ( perlmonks/plugin.js v2 )
by Anonymous Monk on Dec 16, 2014 at 11:03 UTC

    Have I missed a step?

    step one, test stuff without webserver :)

    step zero, did you use d/l download code link?

    step two, don't write stuff like checked the paths especially when it didn't work as that isn't specific enough

    This probably means you didn't use download link ReferenceError: "tinymce is not defined pm_test_editor.html:23"

    That is the simplest explanation not involving webserver

    Now it could be that I didn't upload the right thing, or that perlmonks fudged something up, so I'll check that now update: I checked, i uploaded the right thing, it works when downloading from perlmonks

    Use /?abspart=1;displaytype=displaycode;node_id=1110370;part=1 and /?abspart=1;displaytype=displaycode;node_id=1110370;part=2 to download

      Hi Anon,

      step one, test stuff without webserver :),

      I didn't do this. You mean on my local PC, without apache? So:

      <script src="file:///home/steve/Downloads/tinymce/js/tinymce/tinymce.dev.js">

      step zero, did you use d/l download code link?

      Yes.

      I don't think it's a problem with your code, it's getting tinymce developer running.  I used the .min all the way through.  I feel it should work with your script too.  .dev seems to have a lot less code than .min.

      I think if I add your perlmonks pluggin and your valid_elements and other stuff it should be fine.  I'm adding it a bit at a time and I'll let you know how it goes.

      Regards,

      Steve.

        I didn't do this. You mean on my local PC, without apache? So

        Why don't you use the files as downloaded? Without editing the files? Its what I did

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1110462]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found