Results 1 to 7 of 7

Thread: Tinymce problem

  1. #1
    User
    Join Date
    05-21-18.
    Posts
    126

    Default Tinymce problem

    When i type custom code in tinymce like <div> <div> , tinymce will automatically close it. Can i somehow disable tinyce autoclosing tags? When i add <div> <div> it will be written like that??
    Last edited by rawelja; 07/20/2018 at 00:57.

  2. #2
    User
    Join Date
    05-21-18.
    Posts
    126

    Default

    Quote Originally Posted by rawelja View Post
    When i type custom code in tinymce like <div> <div> , tinymce will automatically close it. Can i somehow disable tinyce autoclosing tags? When i add <div> <div> it will be written like that??
    Is this possible?

  3. #3
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Why do you want to open <div>s without closing them? If you want to use pure HTML, you should use the HTML content element, not a text content element.

  4. #4
    User
    Join Date
    05-21-18.
    Posts
    126

    Default

    Quote Originally Posted by Spooky View Post
    Why do you want to open <div>s without closing them? If you want to use pure HTML, you should use the HTML content element, not a text content element.


    I modified my template and added content_css and templates so my content will be added via templates. I have content element which need to be inside tinymce template.
    So i want to add custom code in tinymce then add content element and close tags with other tinymce.
    like this:

    <div>
    Content element
    </div>

  5. #5
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    I would not recommend to do this. If you want to create custom content element "templates", maybe you should consider using RockSolid Custom Elements instead.

  6. #6
    User
    Join Date
    05-21-18.
    Posts
    126

    Default

    Quote Originally Posted by Spooky View Post
    I would not recommend to do this. If you want to create custom content element "templates", maybe you should consider using RockSolid Custom Elements instead.
    i need this fast. U know possilbe solution? How to disable autoclosing tags in tinmce?

  7. #7
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default

    AFAIK you can not force TinyMCE to create invalid HTML code. If you need it fast use the CE HTML as Spooky told.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •