2017-05-11 5 views
0

Je veux que mon tinymce convertisse le bbcode en code html. J'ajoute tinymce dans Extjs 6. Quand je veux faire le Bold, il m'écrit dans le code html [b] et c'est la même chose pour: italique, souligné, taille. Je suis ce lien, mais cela ne fonctionne pas trop: Convert BBcode to HTML using JavaScript/jQuery Comment changer cela s'il vous plaît, parce qu'il montre sur mon site comme celui-ci: [b] Test [/ b] au lieu de test Ce mon code:tinymce convertir bbcode en code html

tinyMCEConfig: { 
           content_style: "iframe { width:100%}", 

           plugins : [ 
            'advlist anchor autolink autoresize autosave bbcode charmap link code image imagetools codesample contextmenu colorpicker code lists charmap print hr anchor pagebreak spellchecker', 
            'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking example fullscreen importcss media ', 
            'save paste preview table template textcolor textpattern visualblocks visualchars wordcount searchreplace spellchecker tabfocus contextmenu directionality emoticons template textcolor textpattern insertdatetime layer lists' 
           ], 
           menubar: 'insert edit view', 

           image_advtab: true , 

           external_filemanager_path:"/ext/ux/newtinymce/js/responsive_filemanager/filemanager/", 
           filemanager_title:"Responsive Filemanager" , 
           external_plugins: { "filemanager" : "/ext/ux/newtinymce/js/responsive_filemanager/filemanager/plugin.min.js"}, 
           toolbar1: 'responsivefilemanager bold italic underline strikethrough alignleft aligncenter alignright alignjustify numlist bullist anchor ', 
           toolbar2: 'code codesample preview hr textcolor fullpage textpattern layer lists emoticons media image imagetools fontsizeselect fontselect', 
           toolbar3: 'ltr rtl visualblocks searchreplace insertdatetime nonbreaking fullscreen indent pagebreak template ', 
           toolbar4: 'save cancel pastetext paste print table importcss textcolor backcolor textpattern wordcount lists contextmenu restoredraft bbcode charmap link instagram', 
           bbcode_dialect: "punbb", 
           autoresize_max_height: 50, 
           fontsize_formats : "8pt 8.25pt 8.5pt 8.75pt 9pt 9.25pt 9.5pt 10pt 11pt 12pt 14pt 18pt 24pt 36pt", 
           font_formats: 'Schriftart=Schriftart;Microsoft Sans Serif=Microsoft Sans Serif;Sans-serif = sans-serif;Andale Mono=andale mono,times;Arial=arial, helvetica, sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua; Palatino = palatino;'+ 
           'Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;'+ 
           'Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif; Serif = serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;'+ 
           'Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats', 
          } 

Répondre

0

vous permettent de PunBB.INFO → administration → Paramètres → Features Option

Options de message Autoriser le BBCode dans les messages (recommandé).

+0

Merci pour votre message, mais je viens de supprimer le plugin bbcode et j'ai obtenu le code HTML de mon contenu. –