Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^5: TinyMCE javascript toolbar ( tinymce/js/tinymce/plugins/perlmonks/plugin.js )

by Anonymous Monk
on Dec 15, 2014 at 00:36 UTC ( [id://1110345]=note: print w/replies, xml ) Need Help??


in reply to Re^4: TinyMCE javascript toolbar (valid_elements perlmonksapprovedtags)
in thread TinyMCE javascript toolbar

I was looking at http://www.tinymce.com/wiki.php/Configuration:valid_children figuring it is going to take more work , it dawned on my tinymce might not be designed for programmers ...

Take a look at tinymce/js/tinymce/plugins/bbcode/plugin.js

Then a look at classes/html/Schema.js

So perlmonks plugin or schema? ... there are no good examples :)

  • Comment on Re^5: TinyMCE javascript toolbar ( tinymce/js/tinymce/plugins/perlmonks/plugin.js )

Replies are listed 'Best First'.
Re^6: TinyMCE javascript toolbar ( perlmonks/plugin.js v1 )
by Anonymous Monk on Dec 15, 2014 at 03:50 UTC

      Hi Anon,

      Ok, I've been out all day and I'm going through your posts. Thanks for all this, you've done a lot. Have you downloaded a local tinyMCE? And then created a local PerlMonks plugin?

      Can you put it on a server?  If you can't I can do it.

      Going though html lines:

      remove_linebreaks: false, // This is current, but I didn't find it helped. I'll try again.

       forced_root_block : 'p', // This is current, but I didn't find it helped. I'll try again.

      convert_newlines_to_brs : true, // Again, this is current, but I didn't find it helped.

       force_p_newlines : false, // This option is deprecated as of 3.5

       remove_redundant_brs: false, // This option was removed in 3.4, this is now default behavior.

      preformatted : true, //  I'll try again.

      Ok, these seem to work now.  (I omitted the deprected ones.).

      Regards

      Steve.

      (Posted with tinyMCE)

Re^6: TinyMCE javascript toolbar ( tinymce/js/tinymce/plugins/perlmonks/plugin.js )
by Steve_BZ (Chaplain) on Dec 15, 2014 at 09:37 UTC

    Turning bbcode off got a whole load of things to spring into life.

      Turning bbcode off got a whole load of things to spring into life.

      Yeah, I did that ages ago :)

      And its finished , for the most part :) buttons work, switching from raw to mce to raw works, no multiline code inside tt code ...

      plugin.js not v1

      the html with important stuff thats hard to config from plugin

        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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-20 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found